vector< SLVec2f > SLVVec2f
vector< SLVec3f > SLVVec3f
Toplevel holder of the assets meshes, materials, textures and shaders.
Defines a standard CG material with textures and a shader program.
An SLMesh object is a triangulated mesh, drawn with one draw call.
const SLstring & name() const
SLPolygon creates a convex polyon mesh.
SLVVec2f _uv1
texture coords for corners
void buildMesh(SLMaterial *mat)
SLPolygon::buildMesh fills in the underlying arrays from the SLMesh object.
SLVVec3f _corners
corners in ccw order
SLPolygon(SLAssetManager *assetMgr, const SLVVec3f &corner, const SLstring &name="polygon mesh", SLMaterial *mat=nullptr)
ctor for generic convex polygon