GLDrawable

Description

Constructors

this
this(GdkGLDrawable* gdkGLDrawable)

Sets our main struct and passes it to the parent class

Members

Functions

getGLConfig
GLConfig getGLConfig()

Gets GdkGLConfig with which the gldrawable is configured.

getGLDrawableStruct
GdkGLDrawable* getGLDrawableStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
void getSize(int width, int height)

Fills *width and *height with the size of GL drawable. width or height can be NULL if you only want the other one.

getStruct
void* getStruct()

the main Gtk struct as a void*

glBegin
int glBegin(GLContext glcontext)

Delimits the begining of the OpenGL execution.

glEnd
void glEnd()

Delimits the end of the OpenGL execution.

isDoubleBuffered
int isDoubleBuffered()

Returns whether the gldrawable supports the double-buffered visual.

makeCurrent
int makeCurrent(GLContext glcontext)

Attach an OpenGL rendering context to a gldrawable.

swapBuffers
void swapBuffers()

Exchange front and back buffers.

waitGdk
void waitGdk()

Complete GDK drawing execution prior to subsequent OpenGL calls.

waitGl
void waitGl()

Complete OpenGL execution prior to subsequent GDK drawing calls.

Static functions

getCurrent
GLDrawable getCurrent()

Returns the current GdkGLDrawable.

Variables

gdkGLDrawable
GdkGLDrawable* gdkGLDrawable;

the main Gtk struct

Meta