26 assert(
slices >= 3 &&
"Error: Not enough slices.");
SLVec3< SLfloat > SLVec3f
Toplevel holder of the assets meshes, materials, textures and shaders.
SLDisk(SLAssetManager *assetMgr, SLfloat radius=1.0f, const SLVec3f &revolveAxis=SLVec3f::AXISY, SLuint slices=36, SLbool doubleSided=false, SLstring name="disk mesh", SLMaterial *mat=nullptr)
SLbool _doubleSided
flag if disk has two sides
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.