#include <drawable.h>
Inheritance diagram for Gdk::GL::Drawable:
Public Member Functions | |
virtual | ~Drawable () |
GdkGLDrawable * | gobj () |
const GdkGLDrawable * | gobj () const |
bool | make_current (const Glib::RefPtr< Context > &glcontext) |
Attach an OpenGL rendering context to a gldrawable . | |
bool | is_double_buffered () const |
Returns whether the gldrawable supports the double-buffered visual. | |
void | swap_buffers () |
Exchange front and back buffers. | |
void | wait_gl () |
Complete OpenGL execution prior to subsequent GDK drawing calls. | |
void | wait_gdk () |
Complete GDK drawing execution prior to subsequent OpenGL calls. | |
bool | gl_begin (const Glib::RefPtr< Context > &glcontext) |
Delimits the begining of the OpenGL execution. | |
void | gl_end () |
Delimits the end of the OpenGL execution. | |
Glib::RefPtr< Config > | get_gl_config () |
Gets Gdk::GLConfig with which the gldrawable is configured. | |
Glib::RefPtr< const Config > | get_gl_config () const |
Gets Gdk::GLConfig with which the gldrawable is configured. | |
void | get_size (int &width, int &height) |
Fills *width and *height with the size of GL drawable. | |
Static Public Member Functions | |
void | add_interface (GType gtype_implementer) |
Glib::RefPtr< Drawable > | get_current () |
Returns the current Gdk::GLDrawable. | |
void | draw_cube (bool solid, double size) |
Renders a cube. | |
void | draw_sphere (bool solid, double radius, int slices, int stacks) |
Renders a sphere centered at the modeling coordinates origin of the specified radius . | |
void | draw_cone (bool solid, double base, double height, int slices, int stacks) |
Renders a cone oriented along the Z axis. | |
void | draw_torus (bool solid, double inner_radius, double outer_radius, int nsides, int rings) |
Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis. | |
void | draw_tetrahedron (bool solid) |
Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3. | |
void | draw_octahedron (bool solid) |
Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0. | |
void | draw_dodecahedron (bool solid) |
Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3. | |
void | draw_icosahedron (bool solid) |
Renders a icosahedron. | |
void | draw_teapot (bool solid, double scale) |
Renders a teapot. | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gdk::GL::Drawable > | wrap (GdkGLDrawable *object, bool take_copy=false) |
|
|
|
|
|
Renders a cone oriented along the Z axis. The base of the cone is placed at Z = 0, and the top at Z = height . The cone is subdivided around the Z axis into slices , and along the Z axis into stacks .
|
|
Renders a cube. The cube is centered at the modeling coordinates origin with sides of length size .
|
|
Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3.
|
|
Renders a icosahedron. The icosahedron is centered at the modeling coordinates origin and has a radius of 1.0.
|
|
Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0.
|
|
Renders a sphere centered at the modeling coordinates origin of the specified radius . The sphere is subdivided around the Z axis into slices and along the Z axis into stacks .
|
|
Renders a teapot. Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators.
|
|
Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3.
|
|
Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis.
|
|
Returns the current Gdk::GLDrawable.
|
|
Gets Gdk::GLConfig with which the gldrawable is configured.
|
|
Gets Gdk::GLConfig with which the gldrawable is configured.
|
|
Fills *width and *height with the size of GL drawable.
width or height can be
|
|
Delimits the begining of the OpenGL execution. The call makes the glcontext current to the gldrawable , and completes GDK drawing execution.
|
|
Delimits the end of the OpenGL execution. The call completes OpenGL execution. |
|
Reimplemented in Gdk::GL::Pixmap, and Gdk::GL::Window. |
|
Reimplemented in Gdk::GL::Pixmap, and Gdk::GL::Window. |
|
Returns whether the gldrawable supports the double-buffered visual.
|
|
Attach an OpenGL rendering context to a gldrawable .
|
|
Exchange front and back buffers.
|
|
Complete GDK drawing execution prior to subsequent OpenGL calls.
|
|
Complete OpenGL execution prior to subsequent GDK drawing calls.
|
|
|