| 861 | } |
| 862 | |
| 863 | void MeshBase::Render(GPUContext* context) const |
| 864 | { |
| 865 | if (!IsInitialized()) |
| 866 | return; |
| 867 | context->BindVB(ToSpan(_vertexBuffers, 3)); |
| 868 | context->BindIB(_indexBuffer); |
| 869 | context->DrawIndexed(_triangles * 3); |
| 870 | } |
| 871 | |
| 872 | ScriptingObject* MeshBase::GetParentModel() const |
| 873 | { |
nothing calls this directly
no test coverage detected