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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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: ()