glgtk.GLWidget

Undocumented in source.

Public Imports

gtkglc.glgtktypes
public import gtkglc.glgtktypes;

Members

Functions

beginGl
bool beginGl(Widget widget)
createGlContext
GLContext createGlContext(Widget widget, GLContext shareList, bool direct, int renderType)

Creates a new gdk.GLContext with the appropriate GdkGLDrawable for this widget. The GL context must be freed when you're finished with it. See also Widget.getGlContext.

getGlConfig
GLConfig getGlConfig(Widget widget)

Returns the glgdk.GLConfig referred by the widget.

getGlContext
GLContext getGlContext(Widget widget)

Returns the gdk.GLContext with the appropriate GdkGLDrawable for this widget. Unlike the GL context returned by Widget.createGlContext, this context is owned by the widget.

getGlWindow
GLWindow getGlWindow(Widget widget)

Returns the glgdk.GLWindow owned by the widget.

isGlCapable
bool isGlCapable(Widget widget)

Returns whether the widget is OpenGL-capable.

setGlCapability
bool setGlCapability(Widget widget, GLConfig glconfig, GLContext shareList, bool direct, int renderType)

Set the OpenGL-capability to the widget. This function prepares the widget for its use with OpenGL.

widgetEndGl
void widgetEndGl(Widget widget, bool doSwap)