Gtk3dCanvas

Name

Gtk3dCanvas -- A 3d canvas on which you can put items, which can afterward be rendered.

Synopsis


#include <gtk-3dcanvas.h>


Gtk3dcanvasGroup* gtk_3dcanvas_root         (Gtk3dcanvas *canvas);
void        gtk_3dcanvas_clear              (Gtk3dcanvas *canvas);

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

gtk_3dcanvas_root ()

Gtk3dcanvasGroup* gtk_3dcanvas_root         (Gtk3dcanvas *canvas);

Queries the root group of a canvas.


gtk_3dcanvas_clear ()

void        gtk_3dcanvas_clear              (Gtk3dcanvas *canvas);

empties the world of all objects