Function TRAP::Graphics::RenderCommand::DrawInstanced#

Function Documentation#

void TRAP::Graphics::RenderCommand::DrawInstanced(u32 vertexCount, u32 instanceCount, u32 firstVertex = 0, u32 firstInstance = 0, const Window &window = *TRAP::Application::GetWindow())#

Draw non-indexed, instanced geometry for the given window.

Remark

Headless mode: This function is not available in headless mode.

Parameters:
  • vertexCount – Number of vertices to draw.

  • instanceCount – Number of instances to draw.

  • firstVertex – Index of the first vertex to draw.

  • firstInstance – Index of the first instance to draw.

  • windowWindow to draw for. Default: Main Window.