Class Renderer#

Class Documentation#

class Renderer#

Public Static Functions

static void Init()#

Initialize Renderer.

static void Shutdown()#

Shutdown Renderer.

static void BeginScene(const OrthographicCamera &camera)#

Begin a Renderer scene.

Parameters:

camera – Orthographic camera.

static void BeginScene(const Camera &camera, const Math::Mat4 &transform)#

Begin a Renderer scene.

Parameters:
  • camera – Main camera.

  • transformCamera transform.

static void EndScene()#

End a running Renderer scene.

static void Submit(Shader &shader, const VertexBuffer &vertexBuffer, const Math::Mat4 &transform = Math::Mat4(1.0f))#

Submit a non-indexed draw call.

Parameters:
  • shaderShader to use.

  • vertexBuffer – Vertex buffer to use.

  • transform – Model transform. Default is identity.

static void Submit(Shader &shader, const VertexBuffer &vertexBuffer, const IndexBuffer &indexBuffer, const Math::Mat4 &transform = Math::Mat4(1.0f))#

Submit an indexed draw call.

Parameters:
  • shaderShader to use.

  • vertexBuffer – Vertex buffer to use.

  • indexBuffer – Index buffer to use.

  • transform – Model transform. Default is identity.