ANSYS::Nexus::GLTFWriter::Index Class Reference
Last update: 17.04.2023Indexes define elements within primitives. More...
#include <GLTFWriter.h>
Inheritance diagram for ANSYS::Nexus::GLTFWriter::Index:
Static Public Member Functions | |
static Index * | Create (GLTF *gltf, unsigned int count, const unsigned short *indices, Buffer *buffer=0) |
Detailed Description
Indexes define elements within primitives.
The element data is found in the attributes appended to the primitives. Every primitive requires an index. The indices define how the attributes are rendered.
Definition at line 28 of file GLTFIndex.h.
Member Function Documentation
◆ Create()
|
static |
Creates a set of indices that define the renderable elements.
- Returns
- Index object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] count Number of indices. [in] indices Indexes into attributes for elements. [in] buffer Optional, Buffer into which to write indices. Indices are appended to buffer.
- Examples
- Test002.cpp, Test005.cpp, Test008.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.
The documentation for this class was generated from the following file:
- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFIndex.h