38 assert(
slices >= 3 &&
"Error: Not enough slices.");
39 assert(headLength < length);
40 assert(headWidth > arrowCylinderRadius);
SLVec3< SLfloat > SLVec3f
SLArrow is creates an arrow mesh based on its SLRevolver methods.
SLfloat _radius
radius of arrow cylinder
SLArrow(SLAssetManager *assetMgr, SLfloat arrowCylinderRadius, SLfloat length, SLfloat headLength, SLfloat headWidth, SLuint slices, const SLstring &name="arrow mesh", SLMaterial *mat=nullptr)
SLfloat _length
length of arrow
SLfloat _headLength
length of arrow head
SLfloat _headWidth
width of arrow head
Toplevel holder of the assets meshes, materials, textures and shaders.
Defines a standard CG material with textures and a shader program.
const SLstring & name() const
SLRevolver is an SLMesh object built out of revolving points.
SLVec3f _revAxis
axis of revolution
SLuint _slices
NO. of slices.
void buildMesh(SLMaterial *mat=nullptr)
SLVVec3f _revPoints
Array revolving points.
void set(const T X, const T Y, const T Z)