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

Method createIndexBuffer

core/renderer/CustomCommand.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void CustomCommand::createIndexBuffer(IndexFormat format, std::size_t capacity, BufferUsage usage)
149{
150 AX_SAFE_RELEASE(_indexBuffer);
151
152 _indexFormat = format;
153 _indexSize = computeIndexSize();
154 _indexCapacity = capacity;
155 _indexDrawCount = capacity;
156
157 _indexBuffer = backend::DriverBase::getInstance()->newBuffer(_indexSize * capacity, backend::BufferType::INDEX, usage);
158}
159
160void CustomCommand::updateVertexBuffer(const void* data, std::size_t offset, std::size_t length)
161{

Callers 12

initBufferMethod · 0.80
updateBufferMethod · 0.80
updateRadialMethod · 0.80
drawMethod · 0.80
initBuffersMethod · 0.80
StencilStateManagerMethod · 0.80
initCommandsMethod · 0.80
initMethod · 0.80
initMethod · 0.80
batchDrawAllSubBonesMethod · 0.80
CreateIndexBufferMethod · 0.80

Calls 2

getInstanceFunction · 0.85
newBufferMethod · 0.80

Tested by 1

initCommandsMethod · 0.64