#include <drawable.h>
Inheritance diagram for Gdk::GL::Drawable:

Public Member Functions | |
| virtual | ~Drawable () |
| GdkGLDrawable * | gobj () |
| Provides access to the underlying C GObject. | |
| const GdkGLDrawable * | gobj () const |
| Provides access to the underlying C GObject. | |
| bool | make_current (const Glib::RefPtr< Context > &glcontext) |
| bool | is_double_buffered () const |
| void | swap_buffers () |
| void | wait_gl () |
| void | wait_gdk () |
| bool | gl_begin (const Glib::RefPtr< Context > &glcontext) |
| void | gl_end () |
| Glib::RefPtr< Config > | get_gl_config () |
| Glib::RefPtr< const Config > | get_gl_config () const |
| void | get_size (int &width, int &height) |
Static Public Member Functions | |
| void | add_interface (GType gtype_implementer) |
| Glib::RefPtr< Drawable > | get_current () |
| void | draw_cube (bool solid, double size) |
| void | draw_sphere (bool solid, double radius, int slices, int stacks) |
| void | draw_cone (bool solid, double base, double height, int slices, int stacks) |
| void | draw_torus (bool solid, double inner_radius, double outer_radius, int nsides, int rings) |
| void | draw_tetrahedron (bool solid) |
| void | draw_octahedron (bool solid) |
| void | draw_dodecahedron (bool solid) |
| void | draw_icosahedron (bool solid) |
| void | draw_teapot (bool solid, double scale) |
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.
|
|
|
Delimits the end of the OpenGL execution. |
|
|
Provides access to the underlying C GObject.
Reimplemented in Gdk::GL::Pixmap, and Gdk::GL::Window. |
|
|
Provides access to the underlying C GObject.
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. |
|
||||||||||||
|
|
1.3.4