| 231 | } |
| 232 | |
| 233 | void MeshObject::UpdateIndexBuffer(ref_ptr<dp::GraphicsContext> context, std::vector<uint16_t> const & indices) |
| 234 | { |
| 235 | CHECK(!indices.empty(), ("Use SetIndexBuffer() to reset index buffer")); |
| 236 | CHECK_LESS_OR_EQUAL(indices.size(), m_indices.size(), ()); |
| 237 | memcpy(m_indices.data(), indices.data(), indices.size() * sizeof(uint16_t)); |
| 238 | |
| 239 | CHECK(m_impl != nullptr, ()); |
| 240 | m_impl->UpdateIndexBuffer(context); |
| 241 | } |
| 242 | |
| 243 | void MeshObject::DrawPrimitivesSubset(ref_ptr<dp::GraphicsContext> context, uint32_t vertexCount, uint32_t startVertex) |
| 244 | { |