GLData, OpenGL snippets, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv long | |
| pack-priv static final int | |
| pack-priv XVisualInfo | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private long | |
| public GLData | Returns: GLData description of the OpenGL context attributesReturns a GLData object describing the created context. |
| public boolean | Returns: true if the receiver holds the current OpenGL context, false otherwiseReturns a boolean indicating whether the receiver's OpenGL context is the current context. |
| public void | |
| public void |
| context | back to summary |
|---|---|
| pack-priv long context | |
| glWindow | back to summary |
|---|---|
| pack-priv long glWindow | |
| MAX_ATTRIBUTES | back to summary |
|---|---|
| pack-priv static final int MAX_ATTRIBUTES | |
| vinfo | back to summary |
|---|---|
| pack-priv XVisualInfo vinfo | |
| xWindow | back to summary |
|---|---|
| pack-priv long xWindow | |
| GLCanvas | back to summary |
|---|---|
| public GLCanvas(Composite parent, int style, GLData data) Create a GLCanvas widget using the attributes described in the GLData object provided.
| |
| gdk_x11_display_get_xdisplay | back to summary |
|---|---|
| private long gdk_x11_display_get_xdisplay(long window) | |
| getGLData | back to summary |
|---|---|
| public GLData getGLData() Returns a GLData object describing the created context.
| |
| isCurrent | back to summary |
|---|---|
| public boolean isCurrent() Returns a boolean indicating whether the receiver's OpenGL context is the current context.
| |
| setCurrent | back to summary |
|---|---|
| public void setCurrent() Sets the OpenGL context associated with this GLCanvas to be the current GL context.
| |
| swapBuffers | back to summary |
|---|---|
| public void swapBuffers() Swaps the front and back color buffers.
| |