Top | ![]() |
![]() |
![]() |
![]() |
GdkGLContext * gdk_gl_context_new (GdkGLDrawable *gldrawable
,GdkGLContext *share_list
,gboolean direct
,int render_type
);
Creates a new OpenGL rendering context.
gldrawable |
||
share_list |
the GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place. |
|
direct |
whether rendering is to be done with a direct connection to the graphics system. |
|
render_type |
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used). |
void
gdk_gl_context_destroy (GdkGLContext *glcontext
);
Destroys the OpenGL resources associated with glcontext
and
decrements glcontext
's reference count.
gboolean gdk_gl_context_copy (GdkGLContext *glcontext
,GdkGLContext *src
,unsigned long mask
);
Copy state from src
rendering context to glcontext
.
mask
contains the bitwise-OR of the same symbolic names that are passed to
the glPushAttrib()
function. You can use GL_ALL_ATTRIB_BITS to copy all the
rendering state information.
glcontext |
a GdkGLContext. |
|
src |
the source context. |
|
mask |
which portions of |
GdkGLDrawable *
gdk_gl_context_get_gl_drawable (GdkGLContext *glcontext
);
Gets GdkGLDrawable to which the glcontext
is bound.
GdkGLConfig *
gdk_gl_context_get_gl_config (GdkGLContext *glcontext
);
Gets GdkGLConfig with which the glcontext
is configured.
GdkGLContext *
gdk_gl_context_get_share_list (GdkGLContext *glcontext
);
Gets GdkGLContext with which the glcontext
shares the display lists and
texture objects.
gboolean
gdk_gl_context_is_direct (GdkGLContext *glcontext
);
Returns whether the glcontext
is a direct rendering context.
int
gdk_gl_context_get_render_type (GdkGLContext *glcontext
);
Gets render_type of the glcontext
.
GdkGLContext *
gdk_gl_context_get_current (void
);
Returns the current GdkGLContext.