gdk_gl_make_current

Langue: en

Version: 267649 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

gdk_gl_make_current - attach context to drawable

SYNOPSIS

#include <gtkgl/gdkgl.h>

gint gdk_gl_make_current( GdkDrawable *drawable,    GdkGLContext *" context " )"

DESCRIPTION

gdk_gl_make_current makes context current OpenGL rendering context, and it attaches context to gdk drawable. Drawable must have underlying X window and be created with the same visual as context. gdk_gl_make_current returns TRUE if successful.

The gdk_gl_* functions are quite straightforward wrappers around a few necessary GLX calls and should be easy to understand if you already know GLX.

LIBRARY USE

Use -lgtkgl as a flag to the loader.

SEE ALSO

glXMakeCurrent(3), gdk_gl_pixmap_make_current(3)

AUTHORS

The author of the GTKGLArea library is Janne Löf.

This manpage was created by Morten Kjeldgaard for the Debian project.