Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Hardware/Video/Buffers/VertexBuffer/Headers/VertexBuffer.h

Diff revisions: vs.
  @@ -72,16 +72,22 @@
72 72 virtual void Draw(const vectorImpl<GenericDrawCommand>& commands, bool skipBind = false) = 0;
73 73
74 74 inline void setLODCount(const U8 LODcount) {_LODcount = LODcount;}
75 +
75 76 inline void useLargeIndices(bool state = true) {
76 77 DIVIDE_ASSERT(!_created, "VertexBuffer error: Index format type specified before buffer creation!");
77 78 _largeIndices = state; _format = _largeIndices ? UNSIGNED_INT : UNSIGNED_SHORT;
78 79 }
80 +
79 81 inline void reservePositionCount(U32 size) {_dataPosition.reserve(size);}
80 82 inline void reserveColourCount(U32 size) {_dataColor.reserve(size);}
81 83 inline void reserveNormalCount(U32 size) {_dataNormal.reserve(size);}
82 84 inline void reserveTangentCount(U32 size) {_dataTangent.reserve(size);}
83 85 inline void reserveBiTangentCount(U32 size) {_dataBiTangent.reserve(size);}
84 - inline void reserveIndexCount(U32 size) {_largeIndices ? _hardwareIndicesL.reserve(size) :_hardwareIndicesS.reserve(size);}
86 +
87 + inline void reserveIndexCount(U32 size) {
88 + _largeIndices ? _hardwareIndicesL.reserve(size) :
89 + _hardwareIndicesS.reserve(size);
90 + }
85 91
86 92 inline void resizePositionCount(U32 size, const vec3<F32>& defaultValue = VECTOR3_ZERO) {
87 93 _dataPosition.resize(size,defaultValue);