MCPcopy Create free account
hub / github.com/comaps/comaps / SetVAO

Method SetVAO

libs/drape/batcher.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 {}
22
23 void SetVAO(ref_ptr<VertexArrayBuffer> buffer)
24 {
25 // Invocation with non-null VAO will cause to invalid range of indices.
26 // It means that VAO has been changed during batching.
27 if (m_buffer != nullptr)
28 m_vaoChanged = true;
29
30 m_buffer = buffer;
31 m_indicesRange.m_idxStart = m_buffer->GetIndexCount();
32 }
33
34 void FlushData(ref_ptr<GraphicsContext> context, BindingInfo const & info, void const * data, uint32_t count) override
35 {

Callers 2

ChangeBufferMethod · 0.80
InsertPrimitivesMethod · 0.80

Calls 1

GetIndexCountMethod · 0.45

Tested by

no test coverage detected