28     assert(
slices >= 3 && 
"Error: Not enough slices.");
 
   29     assert(
slices > 0 && 
"Error: Not enough stacks.");
 
SLVec3< SLfloat > SLVec3f
 
Toplevel holder of the assets meshes, materials, textures and shaders.
 
SLfloat _height
height of cylinder
 
SLCylinder(SLAssetManager *assetMgr, SLfloat cylinderRadius, SLfloat cylinderHeight, SLuint stacks=1, SLuint slices=16, SLbool hasTop=true, SLbool hasBottom=true, SLstring name="cylinder mesh", SLMaterial *mat=nullptr)
 
SLbool _hasBottom
Flag if cylinder has a bottom.
 
SLfloat _radius
radius of cylinder
 
SLbool _hasTop
Flag if cylinder has a top.
 
Defines a standard CG material with textures and a shader program.
 
SLRevolver is an SLMesh object built out of revolving points.
 
SLbool _smoothLast
flag if the normal of the last point is eqaual to revAxis
 
SLVec3f _revAxis
axis of revolution
 
SLbool _smoothFirst
flag if the normal of the first point is eqaual to -revAxis
 
SLuint _slices
NO. of slices.
 
void buildMesh(SLMaterial *mat=nullptr)
 
SLVVec3f _revPoints
Array revolving points.
 
SLuint _stacks
No. of stacks (mostly used)
 
void set(const T X, const T Y, const T Z)