mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Added immutable vertex and index buffers.
This commit is contained in:
parent
d08c0df85d
commit
28d303c5ea
13 changed files with 98 additions and 32 deletions
|
|
@ -637,7 +637,8 @@ protected:
|
|||
virtual GFXVertexBuffer *allocVertexBuffer( U32 numVerts,
|
||||
const GFXVertexFormat *vertexFormat,
|
||||
U32 vertSize,
|
||||
GFXBufferType bufferType ) = 0;
|
||||
GFXBufferType bufferType,
|
||||
void* data = NULL ) = 0;
|
||||
|
||||
/// Called from GFXVertexFormat to allocate the hardware
|
||||
/// specific vertex declaration for rendering.
|
||||
|
|
@ -674,7 +675,8 @@ protected:
|
|||
/// @note All index buffers use unsigned 16-bit indices.
|
||||
virtual GFXPrimitiveBuffer *allocPrimitiveBuffer( U32 numIndices,
|
||||
U32 numPrimitives,
|
||||
GFXBufferType bufferType ) = 0;
|
||||
GFXBufferType bufferType,
|
||||
void* data = NULL ) = 0;
|
||||
|
||||
/// @}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue