Class Renderer#
Defined in File Renderer.h
Class Documentation#
-
class Renderer#
Public Static Functions
-
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.
transform – Camera transform.
-
static void Submit(Shader &shader, const VertexBuffer &vertexBuffer, const Math::Mat4 &transform = Math::Mat4(1.0f))#
Submit a non-indexed draw call.
- Parameters:
shader – Shader 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:
shader – Shader to use.
vertexBuffer – Vertex buffer to use.
indexBuffer – Index buffer to use.
transform – Model transform. Default is identity.
-
static void BeginScene(const OrthographicCamera &camera)#