MCPcopy Create free account
hub / github.com/axmolengine/axmol / ensureCapacity

Method ensureCapacity

tests/lua-tests/Source/lua_test_bindings.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void DrawNode3D::ensureCapacity(int count)
134{
135 AXASSERT(count >= 0, "capacity must be >= 0");
136
137 if (_buffer.size() + count > _buffer.capacity())
138 {
139 auto newSize = MAX(_buffer.capacity() + (_buffer.capacity() >> 1), count + _buffer.size());
140 _buffer.reserve(newSize);
141 }
142}
143
144bool DrawNode3D::init()
145{

Callers 15

allocateIndicesMethod · 0.45
allocateIndicesMethod · 0.45
readSkeletonDataMethod · 0.45
readAnimationMethod · 0.45
readVerticesMethod · 0.45
IkConstraintMethod · 0.45
AttachmentTimelineMethod · 0.45
readVerticesMethod · 0.45
TransformConstraintMethod · 0.45
DrawOrderTimelineMethod · 0.45
applyMethod · 0.45
Triangulator.cppFile · 0.45

Calls 3

sizeMethod · 0.45
capacityMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected