MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Render

Method Render

Source/Engine/Graphics/Models/MeshBase.cpp:863–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void 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
872ScriptingObject* MeshBase::GetParentModel() const
873{

Callers

nothing calls this directly

Calls 5

DrawIndexedMethod · 0.80
IsInitializedFunction · 0.70
ToSpanFunction · 0.50
BindVBMethod · 0.45
BindIBMethod · 0.45

Tested by

no test coverage detected