GLTFIndex.h Last update: 17.04.2023 1 /* 2 * Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited. 3 * 4 * Restricted Rights Legend 5 * 6 * Use, duplication, or disclosure of this 7 * software and its documentation by the 8 * Government is subject to restrictions as 9 * set forth in subdivision [(b)(3)(ii)] of 10 * the Rights in Technical Data and Computer 11 * Software clause at 52.227-7013. 12 */ 13 #ifndef __INCLUDED_GLTF_GLTFINDEX__ 14 #define __INCLUDED_GLTF_GLTFINDEX__ 15 16 #include "GLTFCommon.h" 17 #include "GLTFObject.h" 18 19 namespace ANSYS { namespace Nexus { namespace GLTFWriter { 20 class GLTF; 21 class Buffer; 22 28 class Index : public Object 29 { 30 protected: 31 virtual ~Index() {} 32 33 public: 36 static GLTFWRITERSPEC Index *Create(GLTF *gltf, 37 unsigned int count, 38 const unsigned short *indices, 39 Buffer *buffer = 0 40 ); 41 }; 42 43 } } } 44 45 #endif ANSYS::Nexus::GLTFWriter::BufferBuffers define files that are used to contain attribute and index data.Definition: GLTFBuffer.h:36 ANSYS::Nexus::GLTFWriter::GLTFThis is the main class of the GLTFWriter.Definition: GLTFGLTF.h:32 ANSYS::Nexus::GLTFWriter::IndexIndexes define elements within primitives.Definition: GLTFIndex.h:29 ANSYS::Nexus::GLTFWriter::Index::Createstatic Index * Create(GLTF *gltf, unsigned int count, const unsigned short *indices, Buffer *buffer=0) ANSYSGLTFWriter API Documentation.Definition: GLTFAnimation.h:19