Function TRAP::Graphics::RenderCommand::DrawIndexed#

Function Documentation#

void TRAP::Graphics::RenderCommand::DrawIndexed(u32 indexCount, u32 firstIndex = 0, i32 vertexOffset = 0, const Window &window = *TRAP::Application::GetWindow())#

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

Remark

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

Parameters:
  • indexCount – Number of indices to draw.

  • firstIndex – Index of the first indice to draw.

  • vertexOffset – Index of the first vertex to draw.

  • windowWindow to draw for. Default: Main Window.