---
name: "MesaDrawingArea"
section: "3x"
platform: "linux"
package: "mesa"
version: "1.2.7-2"
release: "Debian 1.1 (Buzz)"
platforms: ["linux"]
url: "https://new.carta.tech/MesaDrawingArea"
---

# MesaDrawingArea(3x)

An Xt widget for Mesa/X with richer semantics

## NAME

MesaDrawingArea - An Xt widget for Mesa/X with richer semantics

## DESCRIPTION

The *MesaDrawingArea* widget is an extension of the *GLwDrawingArea* widget which takes advantage of some features of the **Mesa/X** implementation of the **OpenGL** API.

It also simplifies programming by associating a drawing context transparently to the widget.  This feature is particulary convenient in applications that have to deal with multiple instances of a *MesaDrawingArea* widget.

## Resources

The following X resources are available in addition to the *GLwDrawingArea* resources:

```
  ___________________________________________________________________________
  ⎪                    ⎪                    ⎪         ⎪                      ⎪
  ⎪ Name               ⎪ Class              ⎪ Type    ⎪ OpenGL attribute     ⎪
  ⎪____________________⎪____________________⎪_________⎪______________________⎪
  ⎪                    ⎪                    ⎪         ⎪                      ⎪
  ⎪ GLwNximage         ⎪ GLwCXImage         ⎪ Boolean ⎪ N/A                  ⎪
  ⎪____________________⎪____________________⎪_________⎪______________________⎪
  ⎪                    ⎪                    ⎪         ⎪                      ⎪
  ⎪ GLwNshareLists     ⎪ GLwCShareLists     ⎪ Boolean ⎪ N/A                  ⎪
  ⎪____________________⎪____________________⎪_________⎪______________________⎪
  ⎪                    ⎪                    ⎪         ⎪                      ⎪
  ⎪ GLwNshareListsWith ⎪ GLwCShareListsWith ⎪ Widget  ⎪ N/A                  ⎪
  ⎪____________________⎪____________________⎪_________⎪______________________⎪
```

- Boolean ximage

  Is *False* by default, setting it to *True* will cause **Mesa/X** to use an Ximage (in contrast to a pixmap) as second buffer.\

- Boolean shareLists

  Is *False* by default, setting it to *True* will cause **Mesa/X** to share display lists among all widgets that have this ressource set to *True*.\

- Boolean shareListsWith

  **\[Caveat: This resource is not honored yet.\]**

  Is *NULL* by default, setting it to another *MesaDrawingArea* widget will cause the two widgets to share display lists.

## Utility functions

The following utility functions are available\

- void GLwMakeCurrent (Widget w)

  switches the **Mesa/X** context to the one associated to the widget *w*.

## SEE ALSO

the *GLwDrawingArea* manpage, the *MesaWorkstation* manpage

## AUTHOR

Thorsten.Ohl @ Physik.TH-Darmstadt.de

## DATE

`$Id:` MesaDrawingArea.pod,v 1.5 1995/05/19 20:31:00 ohl Exp $
