| Top |
Geometric Object RenderingGeometric Object Rendering — Functions for generating easily recognizable 3D geometric objects |
| void | gdk_gl_draw_cube () |
| void | gdk_gl_draw_sphere () |
| void | gdk_gl_draw_cone () |
| void | gdk_gl_draw_torus () |
| void | gdk_gl_draw_tetrahedron () |
| void | gdk_gl_draw_octahedron () |
| void | gdk_gl_draw_dodecahedron () |
| void | gdk_gl_draw_icosahedron () |
| void | gdk_gl_draw_teapot () |
void gdk_gl_draw_cube (gboolean solid,double size);
Renders a cube.
The cube is centered at the modeling coordinates origin with sides of
length size
.
void gdk_gl_draw_sphere (gboolean solid,double radius,int slices,int stacks);
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
.
void gdk_gl_draw_cone (gboolean solid,double base,double height,int slices,int stacks);
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
.
void gdk_gl_draw_torus (gboolean 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
gdk_gl_draw_tetrahedron (gboolean solid);
Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3.
void
gdk_gl_draw_octahedron (gboolean solid);
Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0.
void
gdk_gl_draw_dodecahedron (gboolean solid);
Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3.
void
gdk_gl_draw_icosahedron (gboolean solid);
Renders a icosahedron. The icosahedron is centered at the modeling coordinates origin and has a radius of 1.0.