|
Cairo-Dock 2.4.0~1
|
Data Structures | |
| struct | _CairoDockGLConfig |
| This strucure summarizes the available OpenGL configuration on the system. More... | |
Functions | |
| gboolean | cairo_dock_initialize_opengl_backend (gboolean bForceOpenGL) |
| void | cairo_dock_create_icon_fbo (void) |
| void | cairo_dock_destroy_icon_fbo (void) |
| gboolean | cairo_dock_begin_draw_icon (Icon *pIcon, CairoContainer *pContainer, gint iRenderingMode) |
| void | cairo_dock_end_draw_icon (Icon *pIcon, CairoContainer *pContainer) |
| void | cairo_dock_set_perspective_view (CairoContainer *pContainer) |
| void | cairo_dock_set_ortho_view (CairoContainer *pContainer) |
| void | cairo_dock_apply_desktop_background_opengl (CairoContainer *pContainer) |
| void | cairo_dock_set_gl_capabilities (GtkWidget *pWindow) |
This class manages the OpenGL backend and context.
| gboolean cairo_dock_initialize_opengl_backend | ( | 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. |
| void cairo_dock_create_icon_fbo | ( | void | ) |
Create an FBO to render the icons inside a dock.
| void cairo_dock_destroy_icon_fbo | ( | void | ) |
Destroy the icons FBO.
| gboolean cairo_dock_begin_draw_icon | ( | Icon * | pIcon, |
| CairoContainer * | pContainer, | ||
| gint | iRenderingMode | ||
| ) |
Initiate an OpenGL drawing session on an icon's texture.
| pIcon | the icon on which to draw. |
| pContainer | its container, or NULL if the icon is not yet inside a container. |
| iRenderingMode | rendering mode. 0:normal, 1:don't clear the current texture, so that the drawing will be superimposed on it, 2:keep the current icon texture unchanged for all the drawing (the drawing is made on another texture). |
| void cairo_dock_end_draw_icon | ( | Icon * | pIcon, |
| CairoContainer * | pContainer | ||
| ) |
Finish an OpenGL drawing session on an icon.
| pIcon | the icon on which to draw. |
| pContainer | its container, or NULL if the icon is not yet inside a container. |
| void cairo_dock_set_perspective_view | ( | CairoContainer * | pContainer | ) |
Set a perspective view to the current GL context to fit a given ontainer. Perspective view accentuates the depth effect of the scene, but can distort it on the edges, and is difficult to manipulate because the size of objects depends on their position.
| pContainer | the container |
| void cairo_dock_set_ortho_view | ( | CairoContainer * | pContainer | ) |
Set an orthogonal view to the current GL context to fit a given ontainer. Orthogonal view is convenient to draw classic 2D, because the objects are not zoomed according to their position. The drawback is a poor depth effect.
| pContainer | the container |
| void cairo_dock_apply_desktop_background_opengl | ( | CairoContainer * | pContainer | ) |
Apply the desktop background onto a container, to emulate fake transparency.
| pContainer | the container |
| void cairo_dock_set_gl_capabilities | ( | GtkWidget * | pWindow | ) |
Set a shared default-initialized GL context on a window.
| pWindow | the window, not yet realized. |