Next | Prev | Up | Top | Contents | Index

What are OpenGL Drawing-Area Widgets?

Using an OpenGL drawing-area widget facilitates rendering OpenGL into an X window. The widget

OpenGL provides two drawing-area widgets: GLwMDrawingArea--note the M in the name--for use with IRIS IM (or with OSF/Motif), and GLwDrawingArea for use with any other widget sets. Both drawing-area widgets provide two convenience functions:

The functions allow you to supply a widget instead of the display and window required by the corresponding GLX functions glXMakeCurrent() and glXSwapBuffers().

Because the two widgets are nearly identical, and because IRIS IM is available on all Silicon Graphics systems, this chapter uses only the IRIS IM version, even though most of the information also applies to the general version. Here are some of the distinguishing characteristics of GLwMDrawingArea:

For information specific to GLwDrawingArea, see the reference page.


Next | Prev | Up | Top | Contents | Index