|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
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 | Init () |
| Initializes the renderer. | |
| static void | OnWindowResize (uint32_t width, uint32_t height) |
| Handles window resize events by resizing the viewport. | |
| static void | BeginScene (OrthographicCamera &camera) |
| Begins a new scene with the given orthographic camera. | |
| static void | EndScene () |
| Ends the current scene. | |
| 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 RendererAPI::API | GetAPI () |
| Retrieves the current rendering API. | |
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 Vesper::Renderer::SceneData |
Scene data structure containing view-projection matrix.
| Class Members | ||
|---|---|---|
| mat4 | ViewProjectionMatrix | The combined view-projection matrix for the scene. |
|
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 Vesper::RendererAPI::GetAPI().
Referenced by Vesper::Framebuffer::Create(), Vesper::IndexBuffer::Create(), Vesper::Shader::Create(), Vesper::Shader::Create(), Vesper::Texture2D::Create(), Vesper::Texture2D::Create(), Vesper::UniformBuffer::Create(), Vesper::VertexArray::Create(), Vesper::VertexBuffer::Create(), and Vesper::VertexBuffer::Create().
|
static |
Initializes the renderer.
References Vesper::RenderCommand::Init(), and Vesper::Renderer2D::Init().
Referenced by Vesper::Application::Application().
|
static |
Handles window resize events by resizing the viewport.
References Vesper::RenderCommand::SetViewport().
Referenced by Vesper::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().