![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
GLuint visuOpenGLinit_fontList (); guchar* visuOpenGLGet_pixmapData (guint width, guint height, gboolean hasAlpha); void visuOpenGLFree_pixmapContext (DumpImage *dumpData); XVisualInfo* visuOpenGLGet_visualInfo (Display *dpy, int screenId); GdkGLConfig* visuOpenGLGet_glConfig (GdkScreen *screen); void visuOpenGLSetup_pixelFormat (HDC hDC); DumpImage* visuOpenGLNew_pixmapContext (guint width, guint height);
GLuint visuOpenGLinit_fontList ();
This method create a list with a default font.
Returns : | the GL id of the list storing the font. |
guchar* visuOpenGLGet_pixmapData (guint width, guint height, gboolean hasAlpha);
Dump the pixels of the current GL area, assuming that its size
is given by widthx
height
. This method should not be used directly, see
openGLWidgetGet_pixmapData()
to dump a given OpenGL area.
width : |
an integer ; |
height : |
an integer ; |
hasAlpha : |
if TRUE, read also the alpha channel. |
Returns : | newly allocated dump data (use g_free() after use).
|
void visuOpenGLFree_pixmapContext (DumpImage *dumpData);
Free an allocated DumpImage.
dumpData : |
an allocated DumpImage object. |
XVisualInfo* visuOpenGLGet_visualInfo (Display *dpy, int screenId);
Call glXChooseVisual()
, trying to acquire a RGBA visual with stereo
capabilities. This method is used internaly and should not be used elsewhere.
dpy : |
an X display ; |
screenId : |
an X screen id. |
Returns : | an allocated XVisualInfo. |
GdkGLConfig* visuOpenGLGet_glConfig (GdkScreen *screen);
Call gdk_gl_config_new_for_screen()
, trying to acquire a RGBA visual with stereo
capabilities. This method is used internaly and should not be used elsewhere.
screen : |
a GdkScreen. |
Returns : | a matching GdkGLConfig. |
void visuOpenGLSetup_pixelFormat (HDC hDC);
Call ChoosePixelFormat()
and SetPixelFormat()
, trying to acquire a RGBA visual.
This method is used internaly and should not be used elsewhere.
hDC : |
an HDC. |
DumpImage* visuOpenGLNew_pixmapContext (guint width, guint height);
Create a pixmap storage and a context associated to it. This pixmap can then be used to dump pixel data from an OpenGL area.
width : |
an integer ; |
height : |
an integer. |
Returns : | a newly allocated DumpImage object. |