23 assert(minXZ != maxXZ);
45 if (uIntNumV64 > UINT_MAX)
52 if (uIntNumV64 < 65535)
89 for (
SLuint i = 0; i <
P.size(); ++i)
#define SL_EXIT_MSG(message)
Toplevel holder of the assets meshes, materials, textures and shaders.
void buildMesh(SLMaterial *mat)
SLGrid::buildMesh fills in the underlying arrays from the SLMesh object.
SLGrid(SLAssetManager *assetMgr, SLVec3f minXZ, SLVec3f maxXZ, SLuint resX, SLuint resZ, SLstring name="grid mesh", SLMaterial *mat=nullptr)
ctor for rectangle w. min & max corner
SLuint _resZ
resolution in z direction
SLuint _resX
resolution in x direction
Defines a standard CG material with textures and a shader program.
An SLMesh object is a triangulated mesh, drawn with one draw call.
SLVuint I32
Vector of vertex indices 32 bit.
SLVushort I16
Vector of vertex indices 16 bit.
SLbool _isVolume
Flag for RT if mesh is a closed volume.
SLGLPrimitiveType _primitive
Primitive type (default triangles)
virtual void deleteData()
SLMesh::deleteData deletes all mesh data and vbo's.
SLVVec3f P
Vector for vertex positions layout (location = 0)
const SLstring & name() const