![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GDKGLEXT_MULTIHEAD_SUPPORT #define IMPL_GTKGLEXT #define IMPL_BUILTIN_X11 #define IMPL_BUILTIN_WIN32 VisuPixmapContext; GArray* visuOpenGLGet_pixmapData (guint width
,guint height
,gboolean hasAlpha
); VisuPixmapContext* visu_pixmap_context_new (guint width
,guint height
); void visu_pixmap_context_free (VisuPixmapContext *dumpData
); GLuint visuOpenGLinit_fontList (guint size
); GdkGLConfig* visuOpenGLGet_glConfig (GdkScreen *screen
); XVisualInfo* visuOpenGLGet_visualInfo (Display *dpy
,int screenId
); void visuOpenGLSetup_pixelFormat (HDC hDC
);
typedef struct _VisuPixmapContext VisuPixmapContext;
Short way to address VisuPixmapContext_struct objects.
GArray* 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.
|
an integer ; |
|
an integer ; |
|
if TRUE, read also the alpha channel. |
Returns : |
newly allocated dump data (use g_free() after use).. transfer none. element-type int8. |
VisuPixmapContext* visu_pixmap_context_new (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.
|
an integer ; |
|
an integer. |
Returns : |
a newly allocated DumpImage object.. transfer none. |
void visu_pixmap_context_free (VisuPixmapContext *dumpData
);
Free an allocated DumpImage.
|
an allocated DumpImage object. |
GLuint visuOpenGLinit_fontList (guint size
);
This method create a list with a default font.
|
the size of the text. |
Returns : |
the GL id of the list storing the font. |
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.
|
a GdkScreen. |
Returns : |
a matching GdkGLConfig. |
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.
|
an X display ; |
|
an X screen id. |
Returns : |
an allocated XVisualInfo. |