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

Method UpdateBuffer

libs/drape/mesh_object.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 void UpdateBuffer(ref_ptr<dp::GraphicsContext> context, uint32_t bufferInd) override
105 {
106 UNUSED_VALUE(context);
107 auto & buffer = m_mesh->m_buffers[bufferInd];
108 GLFunctions::glBindBuffer(buffer->m_bufferId, gl_const::GLArrayBuffer);
109 GLFunctions::glBufferData(gl_const::GLArrayBuffer, buffer->GetSizeInBytes(), buffer->GetData(),
110 gl_const::GLStaticDraw);
111 GLFunctions::glBindBuffer(0, gl_const::GLArrayBuffer);
112 }
113
114 void UpdateIndexBuffer(ref_ptr<dp::GraphicsContext> context) override
115 {

Callers 1

UpdateImplMethod · 0.45

Calls 2

GetSizeInBytesMethod · 0.80
GetDataMethod · 0.45

Tested by

no test coverage detected