Example #1
0
 //    *
 //	 * Gives an estimation of the number of indices needed for this triangle buffer.
 //	 * If this function is called several times, it means an extra indices count, not an absolute measure.
 //
 public void estimateIndexCount(uint indexCount)
 {
     mEstimatedIndexCount += (int)indexCount;
     //mIndices.Capacity = mEstimatedIndexCount;
     mIndices.reserve(mEstimatedIndexCount);
 }
Example #2
0
 //    *
 //	 * Gives an estimation of the number of vertices need for this triangle buffer.
 //	 * If this function is called several times, it means an extra vertices count, not an absolute measure.
 //
 public void estimateVertexCount(uint vertexCount)
 {
     mEstimatedVertexCount += (int)vertexCount;
     //mVertices.Capacity = mEstimatedVertexCount;
     mVertices.reserve(mEstimatedVertexCount);
 }