| Gtk 3d Canvas (libgtk3dcanvas) Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
#include <gtk-3dcanvas.h> struct Gtk3dcanvasBall; Gtk3dcanvasItem* gtk_3dcanvas_ball_new (Gtk3dcanvasGroup *parent, float x0, float y0, float z0, char *color, float radius, int smoothness); |
"center-x" gfloat : Read / Write "center-y" gfloat : Read / Write "center-z" gfloat : Read / Write "radius" gfloat : Read / Write "smoothness" gint : Read / Write |
This Gtk3dCanvasItem a plain regular ball. See the properties below to see how to interact with it.
struct Gtk3dcanvasBall; |
The fields of the Gtk3dcanvasBall are private, and should be accessed only through the properties and functions below.
Gtk3dcanvasItem* gtk_3dcanvas_ball_new (Gtk3dcanvasGroup *parent, float x0, float y0, float z0, char *color, float radius, int smoothness); |
Make a ball item.
X coordinate of the center
Y coordinate of the center
Z coordinate of the center
Radius of the ball
Smoothness of the ball. The bigger it is, the more points the ball will contain. About 10 is really ok.