|
Muto 0.0.1
|
The main renderer class responsible for managing rendering operations. More...
#include <Renderer.h>
Classes | |
| struct | SceneData |
| Scene data structure containing view-projection matrix. More... | |
Static Public Member Functions | |
| static void | BeginScene (OrthographicCamera &camera) |
| Begins a new scene with the given orthographic camera. | |
| static void | EndScene () |
| Ends the current scene. | |
| static RenderAPI::API | GetAPI () |
| Retrieves the current rendering API. | |
| static void | Init () |
| Initializes the renderer. | |
| static void | OnWindowResize (uint32_t width, uint32_t height) |
| Handles window resize events by resizing the viewport. | |
| static void | Submit (const Ref< Shader > &shader, const Ref< VertexArray > &vertexArray, const glm::mat4 &transform=glm::mat4(1.0f)) |
| Submits a draw call with the specified shader, vertex array, and transform. | |
Static Private Attributes | |
| static SceneData * | s_SceneData = new Renderer::SceneData |
| Pointer to the current scene data. | |
The main renderer class responsible for managing rendering operations.
| struct Muto::Renderer::SceneData |
|
static |
Begins a new scene with the given orthographic camera.
| camera | The orthographic camera defining the view and projection for the scene. |
References s_SceneData.
|
static |
Ends the current scene.
|
inlinestatic |
Retrieves the current rendering API.
References Muto::RenderAPI::GetAPI().
Referenced by Muto::VertexArray::Create(), Muto::Framebuffer::Create(), Muto::Shader::Create(), Muto::Shader::Create(), Muto::Texture2D::Create(), Muto::VertexBuffer::Create(), Muto::IndexBuffer::Create(), Muto::VertexBuffer::Create(), Muto::UniformBuffer::Create(), and Muto::Texture2D::Create().
|
static |
Initializes the renderer.
References Muto::RenderCommand::Init(), and Muto::Renderer2D::Init().
Referenced by Muto::Application::Application(), and Muto::Application::Application().
Handles window resize events by resizing the viewport.
References Muto::RenderCommand::SetViewport().
Referenced by Muto::Application::OnWindowResize().
|
static |
Submits a draw call with the specified shader, vertex array, and transform.
| shader | The shader to use for rendering. |
| vertexArray | The vertex array to draw. |
| transform | The transformation matrix to apply. |
References s_SceneData.
|
staticprivate |
Pointer to the current scene data.
Referenced by BeginScene(), and Submit().