25 assert(
slices >= 3 &&
"Error: Not enough slices.");
26 assert(
slices > 0 &&
"Error: Not enough stacks.");
SLVec3< SLfloat > SLVec3f
Toplevel holder of the assets meshes, materials, textures and shaders.
SLCone(SLAssetManager *assetMgr, SLfloat coneRadius, SLfloat coneHeight, SLuint stacks=36, SLuint slices=36, SLbool hasBottom=true, SLstring name="cone mesh", SLMaterial *mat=nullptr)
SLbool _hasBottom
Flag if cone has a bottom.
SLfloat _height
height of cone
SLfloat _radius
radius of cone
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)