Name
Gtk3dcanvas -- A 3d canvas on which you can put items, which can afterward be rendered.
Object Hierarchy
GObject
+----GtkObject
+----Gtk3dcanvas |
Description
Gtk3dCanvas is the 3D counterpart of the classical GnomeCanvas. It is a
powerful and extensible object-oriented 3D display engine. The widget
itself cannot be displayed, you have to declare camera on it, which are
visual rendering of the canvas content. For now, the only available camera
is Gtk3dCanvasCameraGl, which use OpenGl.
You can place Gtk3dCanvasItem on the canvas. A GnomeCanvasItem is a
GtkObject representing some element of the display, such as a ball, a
stick, a cube or a polygone.
You can refer to this architecture as structured graphics; the canvas lets
you deal with graphics in terms of items, rather than an undifferentiated
grid of pixels. Since a Gtk3dCanvasItem is a GtkObject, you can create your
own subclasses to supplement those that come with this library. This gives
you quite a bit of flexibility. Using custom canvas items, the canvas can
render almost anything.
Details
struct Gtk3dcanvas
The fields of the Gtk3dcanvas are private, and should be
accessed only through the properties and functions below.
gtk_3dcanvas_root ()
Queries the root group of a canvas.
gtk_3dcanvas_clear ()
empties the world of all objects
gtk_3dcanvas_draw ()
Ask for a redraw of the scene.