DecalMesh Class
DecalMesh Class
Members
DecalMesh (const Ptr<Mesh> & mesh, float radius, const char * name)
Arguments
- const Ptr<Mesh> & mesh
- float radius
- const char * name
DecalMesh (const char * mesh_name, float radius, const char * name)
Arguments
- const char * mesh_name
- float radius
- const char * name
int setMesh (const Ptr<Mesh> & mesh)
Copies a given mesh into the current decal mesh.Arguments
- const Ptr<Mesh> & mesh - The mesh smart pointer.
Return value
1 if the mesh is copied successfully; otherwise, 0.int saveMesh (const char * name)
Saves the decal mesh into a file.Arguments
- const char * name - A name of the mesh file.
Return value
1 if the mesh is saved successfully; otherwise, 0.int loadMesh (const char * name)
Loads a mesh for the current mesh from the file. This function doesn't change the mesh name.Arguments
- const char * name - The name of the mesh file.
Return value
1 if the mesh is loaded successfully; otherwise, 0.void setRadius (float radius)
Sets the new height of the decal projection box along the Z axis.Arguments
- float radius - The height of the decal projection box along the Z axis, in units.
const char * getMeshName ()
Returns the name of the mesh used as a base for the decal.Return value
The mesh name.void setMeshName (const char * name)
Sets a new name for the mesh.Arguments
- const char * name - A new name to be set for the mesh.
float getRadius ()
Returns the current height of the decal projection box along the Z axis.Return value
The height of the decal projection box along the Z axis, in units.int getMesh (const Ptr<Mesh> & mesh)
Copies the current decal mesh into the received mesh.Arguments
- const Ptr<Mesh> & mesh - The mesh smart pointer.
Return value
1 if the mesh is copied successfully; otherwise, 0.Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter