This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
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
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::ObjectDynamic Class

UNIGINEUNIGINE 2.0Comments
-MODE_PATCHES Enumaration member was added.
-TYPE_DOUBLE Enumaration member was added.
-TYPE_USHORT Enumaration member was added.
-IMMUTABLE_VERTEX Enumaration member was added.
-IMMUTABLE_INDICES Enumaration member was added.
-DYNAMIC_VERTEX Enumaration member was added.
-DYNAMIC_INDICES Enumaration member was added.
-IMMUTABLE_ALL Enumaration member was added.
-DYNAMIC_ALL Enumaration member was added.
-static int type() ObjectDynamic type.
-virtual void removeVertex(int num, int size, int indices) const =0 Removes the specified number of vertices.
-virtual void removeIndices(int num, int size) const =0 Removes the specified number of indices.
-virtual void setSurfaceName(const char * name, int surface) const =0 Sets the name for the specified surface.
-int getNumAttributes() Returns the number of vertex attributes.
-const Attribute * getAttributes() Returns the array of vertex attributes.
-void setNumVertex(int num) Updates the number of mesh vertices.
-virtual void addPoints(int num_points) const =0 Adds a given number of points to the mesh.
-virtual void addLineStrip(int num_vertex) const =0 Adds a given number of line strips to the mesh.
-void addVertexDouble(int attribute, const double * value, int size) Adds a vertex of a double type to the object.
-void setVertexDouble(int attribute, const double * value, int size) Updates the last added vertex with the vertex of the double type.
-void addVertexUShort(int attribute, const unsigned short * value, int size) Adds a vertex of an unsigned short value to the object.
-void setVertexUShort(int attribute, const unsigned short * value, int size) Updates the last added vertex with the vertex of the unsigned short type.
-void setNumIndices(int num) Sets a number of vertex indices.
virtual void addIndex(unsigned short index) const =0virtual void addIndex(int index) const =0 Adds an index to the index buffer. Index type has been changed to integer.
virtual void setIndex(int num, unsigned short index) const =0virtual void setIndex(int num, int index) const =0 Updates an index in the index buffer. Index type has been changed to integer.
virtual void addIndicesArray(const unsigned short * indices, int num_indices) const =0virtual void addIndicesArray(const int * indices, int num_indices) const =0 Adds an array of the specified number of indices. Indices array pointer type has been changed to integer.
virtual void setIndicesArray(const unsigned short * indices, int num_indices) const =0virtual void setIndicesArray(const int * indices, int num_indices) const =0 Updates the specified indices array. Indices array pointer type has been changed to integer.
virtual const unsigned short * getIndicesArray() const =0virtual const int * getIndicesArray() const =0 Returns an array of indices. Return value type has been changed to integer.
virtual unsigned short getIndex(int num) const =0virtual int getIndex(int num) const =0 Returns an index of the vertex by the index number. Return value type has been changed to integer.
void addQuads(int num_quads)void addTriangleQuads(int num_quads) Renamed.
void setBoundBox(const vec3 & min, const vec3 & max, int surface)void setBoundBox(const BoundBox & bb, int surface) The function receives an instance of the BoundBox class as the first argument.
void setBoundBox(const vec3 & min, const vec3 & max)void setBoundBox(const BoundBox & bb) The function receives an instance of the BoundBox class as the argument.
void flush()- Removed. Flush the index and vertex buffers separately by using the following functions:
Last update: 2017-07-03
Build: ()