Function TRAP::Graphics::RenderCommand::Draw#

Function Documentation#

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

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

Remark

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

Parameters:
  • vertexCount – Number of vertices to draw.

  • firstVertex – Index of the first vertex to draw.

  • windowWindow to draw for. Default: Main Window.