MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / reserveMemory

Method reserveMemory

examples/TinyRenderer/model.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void Model::reserveMemory(int numVertices, int numIndices)
93{
94 verts_.reserve(numVertices);
95 norms_.reserve(numVertices);
96 uv_.reserve(numVertices);
97 faces_.reserve(numIndices);
98}
99
100void Model::addVertex(float x, float y, float z, float normalX, float normalY, float normalZ, float u, float v)
101{

Callers 1

registerMeshShapeMethod · 0.80

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected