gwnavruntime/collision/indexedmeshblob.h Source File
Go to the documentation of this file.
20 KY_ROOT_BLOB_CLASS(CollisionData, IndexedMeshBlob, 0)
26 KyUInt32 GetVertexStride()
const {
return sizeof(Vec3f); }
27 const UByte * GetIndexBase()
const {
return (
const UByte*)m_indices.GetValues(); }
28 const UByte * GetVertexBase()
const {
return (
const UByte*)m_vertices.GetValues(); }
30 KyUInt32 GetTriangleCount()
const {
return m_indices.GetCount() / 3; }
32 BlobArray<Vec3f> m_vertices;
33 BlobArray<KyUInt32> m_indices;
38 SwapEndianness(e,
self.m_vertices);
39 SwapEndianness(e,
self.m_indices);
42 class IndexedMeshBlobBuilder :
public BaseBlobBuilder<IndexedMeshBlob>
51 IndexedMeshBlobBuilder() : m_indexedState(NotIndexed) {}
55 bool IsEmpty() {
return m_indices.GetCount() == 0; }
56 void AddTriangle(
const Vec3f& a,
const Vec3f& b,
const Vec3f& c);
58 virtual void DoBuild();
63 KyArrayPOD<KyUInt32> m_indices;
64 KyArray<Vec3f> m_vertices;
65 IndexedState m_indexedState;
68 class IndexedMeshArrayBlob
70 KY_ROOT_BLOB_CLASS(CollisionData, IndexedMeshArrayBlob, 0)
74 IndexedMeshArrayBlob() {}
75 BlobArray<IndexedMeshBlob> m_meshParts;
80 SwapEndianness(e,
self.m_meshParts);
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
std::uint8_t UByte
uint8_t
Definition: SF_Types.h:134
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17