![]() |
![]() |
![]() |
Libg3d Reference Manual | |
---|---|---|---|---|
G3DObject* g3d_primitive_cylinder (gfloat radius, gfloat height, guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material); G3DObject* g3d_primitive_tube (gfloat r_in, gfloat r_out, gfloat height, guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material);
G3DObject* g3d_primitive_cylinder (gfloat radius, gfloat height, guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material);
Generates an object containing a cylinder.
radius : |
the radius of the cylinder |
height : |
the height of the side faces |
sides : |
number of side faces (number of circle segments) |
top : |
add top faces |
bottom : |
add bottom faces |
material : |
material to use for faces |
Returns : | cylinder object |
G3DObject* g3d_primitive_tube (gfloat r_in, gfloat r_out, gfloat height, guint32 sides, gboolean top, gboolean bottom, G3DMaterial *material);
Generates an object containing a tube (a cylinder with a hole).
r_in : |
inner radius |
r_out : |
outer radius |
height : |
the height of the side faces |
sides : |
number of side faces (number of circle segments) |
top : |
add top faces |
bottom : |
add bottom faces |
material : |
material to use for faces |
Returns : | tube object |