Cairo-Dock
3.4.0
|
Data Structures | |
struct | _CairoDockGLConfig |
This strucure summarizes the available OpenGL configuration on the system. More... | |
Macros | |
#define | gldi_gl_container_begin_draw(pContainer) |
Functions | |
gboolean | gldi_gl_backend_init (gboolean bForceOpenGL) |
gboolean | gldi_gl_container_make_current (GldiContainer *pContainer) |
gboolean | gldi_gl_container_begin_draw_full (GldiContainer *pContainer, GdkRectangle *pArea, gboolean bClear) |
void | gldi_gl_container_end_draw (GldiContainer *pContainer) |
void | gldi_gl_container_set_perspective_view (GldiContainer *pContainer) |
void | gldi_gl_container_set_perspective_view_for_icon (Icon *pIcon) |
void | gldi_gl_container_set_ortho_view (GldiContainer *pContainer) |
void | gldi_gl_container_set_ortho_view_for_icon (Icon *pIcon) |
void | gldi_gl_container_init (GldiContainer *pContainer) |
This class manages the OpenGL backend and context.
#define gldi_gl_container_begin_draw | ( | pContainer | ) |
Start drawing on a Container's OpenGL context (draw on the whole Container and clear buffers).
pContainer | the container |
gboolean gldi_gl_backend_init | ( | gboolean | bForceOpenGL | ) |
Initialize the OpenGL backend, by trying to get a suitable GLX configuration.
bForceOpenGL | whether to force the use of OpenGL, or let the function decide. |
gboolean gldi_gl_container_make_current | ( | GldiContainer * | pContainer | ) |
Make a Container's OpenGL context the current one.
pContainer | the container |
gboolean gldi_gl_container_begin_draw_full | ( | GldiContainer * | pContainer, |
GdkRectangle * | pArea, | ||
gboolean | bClear | ||
) |
Start drawing on a Container's OpenGL context.
pContainer | the container |
pArea | optional area to clip the drawing (NULL to draw on the whole Container) |
bClear | whether to clear the color buffer or not |
void gldi_gl_container_end_draw | ( | GldiContainer * | pContainer | ) |
Ends the drawing on a Container's OpenGL context.
pContainer | the container |
void gldi_gl_container_set_perspective_view | ( | GldiContainer * | pContainer | ) |
Set a perspective view to the current GL context to fit a given Container. You may want to ensure the Container's context is really the current one.
pContainer | the container |
void gldi_gl_container_set_perspective_view_for_icon | ( | Icon * | pIcon | ) |
Set a perspective view to the current GL context to fit a given Icon (which must be inside a Container). You may want to ensure the Icon's Container's context is really the current one.
pIcon | the icon |
void gldi_gl_container_set_ortho_view | ( | GldiContainer * | pContainer | ) |
Set a orthogonal view to the current GL context to fit a given Container. You may want to ensure the Container's context is really the current one.
pContainer | the container |
void gldi_gl_container_set_ortho_view_for_icon | ( | Icon * | pIcon | ) |
Set a orthogonal view to the current GL context to fit a given Icon (which must be inside a Container). You may want to ensure the Icon's Container's context is really the current one.
pIcon | the icon |
void gldi_gl_container_init | ( | GldiContainer * | pContainer | ) |
Set a shared default-initialized GL context on a window.
pContainer | the container, not yet realized. |