| 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 | { |
no test coverage detected