High-level rendering system manager. More...
#include <Renderer.h>
Static Public Member Functions | |
static void | BeginScene (const OrthographicCamera &camera) |
Begins a new scene for rendering. | |
static void | EndScene () |
Ends the current scene. | |
static void | Submit (const std::shared_ptr< Shader > &shader, const std::shared_ptr< VertexArray > &vertexArray, const glm::mat4 &transform=glm::mat4(1.0f)) |
Submits a vertex array for rendering. | |
static RendererAPI::API | GetAPI () |
Gets the current graphics API. | |
High-level rendering system manager.
The Renderer class manages the high-level rendering pipeline. It:
This class works in conjunction with RenderCommand to provide both high-level scene management and low-level rendering operations.
|
static |
Begins a new scene for rendering.
Sets up any necessary state for beginning a new frame/scene.
|
static |
Ends the current scene.
Finalizes the current frame/scene and prepares for the next one.
|
inlinestatic |
Gets the current graphics API.
|
static |
Submits a vertex array for rendering.
shader | The shader used to render the vertex array |
vertexArray | The vertex array to be rendered |
transform | The position in the world |
Queues the given geometry for rendering in the current scene.