visu_openGL

visu_openGL

Functions

Types and Values

Description

Functions

visu_pixmap_context_new ()

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.

Parameters

width

an integer ;

 

height

an integer.

 

Returns

a newly allocated DumpImage object.

[transfer none]


visu_pixmap_context_free ()

void
visu_pixmap_context_free (VisuPixmapContext *dumpData);

Free an allocated DumpImage.

Parameters

dumpData

an allocated DumpImage object.

 

visu_gl_initFontList ()

GLuint
visu_gl_initFontList (guint size);

This method create a list with a default font.

Parameters

size

the size of the text.

 

Returns

the GL id of the list storing the font.

[type guint32][transfer none]


visu_gl_getGLConfig ()

GdkGLConfig *
visu_gl_getGLConfig (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.

Parameters

screen

a GdkScreen.

 

Returns

a matching GdkGLConfig.


visu_gl_getVisualInfo ()

XVisualInfo *
visu_gl_getVisualInfo (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.

Parameters

dpy

an X display ;

 

screenId

an X screen id.

 

Returns

an allocated XVisualInfo.


visu_gl_setupPixelFormat ()

void
visu_gl_setupPixelFormat (HDC hDC);

Call ChoosePixelFormat() and SetPixelFormat(), trying to acquire a RGBA visual. This method is used internaly and should not be used elsewhere.

Parameters

hDC

an HDC.

 

Types and Values

GDKGLEXT_MULTIHEAD_SUPPORT

  #define GDKGLEXT_MULTIHEAD_SUPPORT

GtkGlExt support.


IMPL_GTKGLEXT

  #define IMPL_GTKGLEXT

GtkGlExt support.


IMPL_BUILTIN_X11

  #define IMPL_BUILTIN_X11

X11 support.


IMPL_BUILTIN_WIN32

  #define IMPL_BUILTIN_WIN32

Win32 support.


VisuPixmapContext

typedef struct _VisuPixmapContext VisuPixmapContext;

Short way to address _VisuPixmapContext objects.