OpenGL PixmapOpenGL Pixmap — OpenGL pixmap which is maintained off-screen |
#include <gdk/gdkgl.h> GdkGLPixmap; GdkGLPixmap* gdk_gl_pixmap_new (GdkGLConfig *glconfig,GdkPixmap *pixmap, constint *attrib_list);void gdk_gl_pixmap_destroy (GdkGLPixmap *glpixmap);GdkPixmap * gdk_gl_pixmap_get_pixmap (GdkGLPixmap *glpixmap); GdkGLPixmap* gdk_pixmap_set_gl_capability (GdkPixmap *pixmap, GdkGLConfig *glconfig, constint *attrib_list);void gdk_pixmap_unset_gl_capability (GdkPixmap *pixmap);gboolean gdk_pixmap_is_gl_capable (GdkPixmap *pixmap); GdkGLPixmap* gdk_pixmap_get_gl_pixmap (GdkPixmap *pixmap); #define gdk_pixmap_get_gl_drawable (pixmap)
GdkGLPixmap* gdk_gl_pixmap_new (GdkGLConfig *glconfig,GdkPixmap *pixmap, constint *attrib_list);
Creates an off-screen rendering area. attrib_list is currently unused. This must be set to NULL or empty (first attribute of None). See GLX 1.3 spec.
|
a GdkGLConfig. |
|
the |
|
this must be set to NULL or empty (first attribute of None). |
Returns : |
the new GdkGLPixmap. |
void gdk_gl_pixmap_destroy (GdkGLPixmap *glpixmap);
Destroys the OpenGL resources associated with glpixmap
and
decrements glpixmap
's reference count.
|
a GdkGLPixmap. |
GdkPixmap * gdk_gl_pixmap_get_pixmap (GdkGLPixmap *glpixmap);
Returns the glpixmap
.
Notice that GdkGLPixmap is not
|
a GdkGLPixmap. |
Returns : |
the glpixmap .
|
GdkGLPixmap* gdk_pixmap_set_gl_capability (GdkPixmap *pixmap, GdkGLConfig *glconfig, constint *attrib_list);
Set the OpenGL-capability to the pixmap
.
This function creates a new GdkGLPixmap held by the pixmap
.
attrib_list is currently unused. This must be set to NULL or empty
(first attribute of None).
|
the |
|
a GdkGLConfig. |
|
this must be set to NULL or empty (first attribute of None). |
Returns : |
the GdkGLPixmap used by the pixmap if it is successful,
NULL otherwise.
|
void gdk_pixmap_unset_gl_capability (GdkPixmap *pixmap);
Unset the OpenGL-capability of the pixmap
.
This function destroys the GdkGLPixmap held by the pixmap
.
|
a |
gboolean gdk_pixmap_is_gl_capable (GdkPixmap *pixmap);
Returns whether the pixmap
is OpenGL-capable.
|
a |
Returns : |
TRUE if the pixmap is OpenGL-capable, FALSE otherwise.
|
GdkGLPixmap* gdk_pixmap_get_gl_pixmap (GdkPixmap *pixmap);
Returns the GdkGLPixmap held by the pixmap
.
|
a |
Returns : |
the GdkGLPixmap. |
#define gdk_pixmap_get_gl_drawable(pixmap)
Returns the GdkGLDrawable held by the pixmap
. In fact, this is macro
that casts the result of gdk_pixmap_get_gl_pixmap to GdkGLDrawable.
|
a GdkGLPixmap. |
Returns : |
the GdkGLDrawable. |