16#if NEBULA_LEGACY_SUPPORT
34 void SetRawMode(
bool b);
36 bool IsRawMode()
const;
46 void SetBuffersCopySource(
bool b);
58 float* GetVertexData()
const;
60 ushort* GetIndexData()
const;
62 SizeT GetNumVertices()
const;
64 SizeT GetNumIndices()
const;
66 SizeT GetVertexWidth()
const;
68 SizeT GetNumEdges()
const;
70 SizeT GetBaseVertexOffset()
const;
72 SizeT GetBaseIndexOffset()
const;
81 void ReadHeaderData();
83 void ReadPrimitiveGroups();
85 void SetupVertexComponents();
87 void UpdateGroupBoundingBoxes();
94 enum N2VertexComponent
108 N2TangentB4N = (1<<12),
109 N2Binormal = (1<<13),
110 N2BinormalB4N = (1<<14),
112 N2ColorUB4N = (1<<16),
114 N2WeightsUB4N = (1<<18),
115 N2JIndices = (1<<19),
116 N2JIndicesUB4 = (1<<20),
118 N2NumVertexComponents = 21,
119 N2AllComponents = ((1<<N2NumVertexComponents) - 1),
140 SizeT vertexDataSize;
148 uint vertexComponentMask;
157Nvx2StreamReader::SetRawMode(
bool b)
166Nvx2StreamReader::IsRawMode()
const
168 return this->rawMode;
175Nvx2StreamReader::GetVertexBuffer()
const
184Nvx2StreamReader::GetIndexBuffer()
const
193Nvx2StreamReader::GetPrimitiveGroups()
const
195 return this->primGroups;
202Nvx2StreamReader::GetVertexData()
const
204 return (
float*) this->vertexDataPtr;
211Nvx2StreamReader::GetIndexData()
const
213 return (
ushort*) this->indexDataPtr;
220Nvx2StreamReader::GetNumVertices()
const
222 return this->numVertices;
229Nvx2StreamReader::GetNumIndices()
const
231 return this->numIndices;
238Nvx2StreamReader::GetVertexWidth()
const
240 return this->vertexWidth;
247Nvx2StreamReader::GetNumEdges()
const
249 return this->numEdges;
256Nvx2StreamReader::GetBaseVertexOffset()
const
258 return this->vertexAllocation.offset;
265Nvx2StreamReader::GetBaseIndexOffset()
const
267 return this->indexAllocation.offset;
274Nvx2StreamReader::GetVertexComponents()
const
276 return this->vertexComponents;
285 this->usage = usage_;
292Nvx2StreamReader::GetUsage()
const
303 this->access = access_;
310Nvx2StreamReader::GetAccess()
const
319Nvx2StreamReader::SetBuffersCopySource(
bool b)
321 this->copySourceFlag = b;
Stream reader classes provide a specialized read-interface for a stream.
Definition streamreader.h:24
A stream reader which reads legacy nvx2 binary mesh files.
Nebula's dynamic array class.
Definition array.h:60
A StringAtom.
Definition stringatom.h:22
Nebula compiler specific defines and configuration.
Usage
resource usage flags
Definition gpubuffertypes.h:20
Access
Definition gpubuffertypes.h:28
const CoreGraphics::BufferId GetVertexBuffer()
Get vertex buffer.
Definition vkgraphicsdevice.cc:2152
const CoreGraphics::BufferId GetIndexBuffer()
Get index buffer.
Definition vkgraphicsdevice.cc:2200
CoreGraphics::VertexLayoutId layout
Definition particlecontext.cc:51
#define __DeclareClass(type)
Definition vertexlayout.h:16
int SizeT
Definition types.h:49
unsigned int uint
Definition types.h:31
unsigned short ushort
Definition types.h:32