Next | Prev | Top | Contents | Index
Chapter 3: OpenGL and X: Examples
Some aspects of integrating your OpenGL program with the X Window System depend on whether you choose IRIS IM widgets or Xlib. This chapter's main focus is to help you with those aspects by looking at example programs:
- "Using Widgets" illustrates how to create a window using IRIS IM drawing-area widgets and how to handle input and other events using callbacks.
- "Using Xlib" illustrates how to create a colormap and a window for OpenGL drawing. It also provides a brief discussion of event handling with Xlib.
This chapter also briefly discusses fonts: "Using Fonts and Strings" looks at a simple example of using fonts with the glXUseFont() function.
Note: All integration aspects that aren't dependent on your choice of Xlib or Motif are discussed in "Integrating Your OpenGL Program With IRIS IM" in Chapter 2, "OpenGL and X: Getting Started."
- Using Widgets
-
- Using Xlib
-
- Using Fonts and Strings
-
Next | Prev | Top | Contents | Index