This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::ObjectMeshCluster Class

UNIGINEUNIGINE 2Comments
Ptr< ObjectMeshCluster > create(const char * name)Ptr< ObjectMeshCluster > create(const char * name, int dynamic) An OnjectMeshCluster constructor that receives a mesh dynamic flag as the second argument.
-int createMesh(const char * name, int dynamic) Creates a mesh.
-static int type() ObjectMeshCluster type.
-int loadMesh(const char * name) Loads a new mesh, but doesn't change the mesh name. So, you should use it together with void setMeshName().
-virtual int saveMesh(const char * name) const =0 Saves the dynamic mesh into a file.
-virtual void setMeshTransform(int num, const mat4 & transform) =0
-virtual int setMesh(const MeshPtr & mesh) const =0 Sets mesh.
-virtual int getMesh(const MeshPtr & mesh) const =0 Gets mesh.
-virtual void flushMesh() const =0 Flushes the mesh geometry into the video memory.
-virtual void setMeshName(const char & name) const =0 Sets mesh name.
-virtual const char * getMeshName() const =0 Gets mesh name.
-virtual int getNumSurfaceTargets(int surface) const =0 Returns the number of surface targets.
-virtual const char * getSurfaceTargetName(int surface, int target) const =0 Returns the name of a given surface target.
-virtual int findSurfaceTarget(const char * name, int surface) const =0 Searches for an surface target with a given name.
Last update: 2017-07-03
Build: ()