![]() |
Raven Engine v0.1
|
Responsible for rendering a Scene, managing framebuffers, pipelines, and draw calls. More...
#include <SceneRenderer.h>
Public Member Functions | |
| void | Init () |
| Initializes renderer resources and pipelines based on current window size. | |
| void | Shutdown () |
| Releases all renderer resources and cleans up GPU allocations. | |
| void | BeginScene (const Ref< Scene > &scene) |
| Begins a new scene for rendering by binding the given scene reference. | |
| void | EndScene (const Camera &camera) |
| Ends the current scene rendering by submitting draw calls. | |
| Ref< RenderPass > | GetFinalRenderPass () const |
| Returns the final geometry render pass used for scene rendering. | |
| Ref< Image2D > | GetFinalImage () const |
| Returns the output image of the final render pass. | |
| ShaderSettingsData & | GetSettings () |
| PointLightData & | GetPointLightData () |
Responsible for rendering a Scene, managing framebuffers, pipelines, and draw calls.
Handles initialization and shutdown of renderer resources, manages rendering passes, uploads camera data, and issues draw commands for submitted meshes.
Begins a new scene for rendering by binding the given scene reference.
| scene | Reference-counted pointer to the active scene to render. |
This prepares the renderer to draw the specified scene.
| void Raven::SceneRenderer::EndScene | ( | const Camera & | camera | ) |
Ends the current scene rendering by submitting draw calls.
Updates camera data and issues draw commands for all submitted static meshes.
| camera | The active camera providing view and projection matrices. |
Returns the output image of the final render pass.
|
inline |
Returns the final geometry render pass used for scene rendering.
|
inline |
|
inline |
| void Raven::SceneRenderer::Init | ( | ) |
Initializes renderer resources and pipelines based on current window size.
Creates framebuffer, depth image, pipelines, uniform buffers, and other GPU resources. Should be called once before rendering begins.
| void Raven::SceneRenderer::Shutdown | ( | ) |
Releases all renderer resources and cleans up GPU allocations.
Should be called before application shutdown or when recreating renderer resources.