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

Method createVertexBuffer

core/renderer/CustomCommand.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void CustomCommand::createVertexBuffer(std::size_t vertexSize, std::size_t capacity, BufferUsage usage)
139{
140 AX_SAFE_RELEASE(_vertexBuffer);
141
142 _vertexCapacity = capacity;
143 _vertexDrawCount = capacity;
144
145 _vertexBuffer = backend::DriverBase::getInstance()->newBuffer(vertexSize * capacity, backend::BufferType::VERTEX, usage);
146}
147
148void CustomCommand::createIndexBuffer(IndexFormat format, std::size_t capacity, BufferUsage usage)
149{

Callers 15

initBufferMethod · 0.80
updateBufferMethod · 0.80
updateRadialMethod · 0.80
updateBarMethod · 0.80
drawMethod · 0.80
udpateCommandFunction · 0.80
initWithFadeMethod · 0.80
LayerRadialGradientMethod · 0.80
initProgramMethod · 0.80
initCustomCommandMethod · 0.80
initBuffersMethod · 0.80

Calls 2

getInstanceFunction · 0.85
newBufferMethod · 0.80

Tested by 5

initMethod · 0.64
drawMethod · 0.64
setProgramStateMethod · 0.64
initWithVertexMethod · 0.64
initCommandsMethod · 0.64