|
Unravel Engine C++ Reference
|
Base class for different rendering paths in the ACE framework. More...
#include <rendering_system.h>
Public Member Functions | |
| rendering_system ()=default | |
| ~rendering_system ()=default | |
| auto | init (rtti::context &ctx) -> bool |
| Initializes the rendering path with the given context. | |
| auto | deinit (rtti::context &ctx) -> bool |
| Deinitializes the rendering path with the given context. | |
| void | on_frame_end (rtti::context &ctx, delta_t) |
| void | on_frame_update (scene &scn, delta_t dt) |
| Prepares the scene for rendering. | |
| void | on_frame_before_render (scene &scn, delta_t dt) |
| void | on_play_begin (hpp::span< const entt::handle > entities, delta_t dt) |
| auto | render_scene (scene &scn, delta_t dt) -> gfx::frame_buffer::ptr |
| Renders the scene and returns the frame buffer. | |
| void | render_scene (const gfx::frame_buffer::ptr &output, scene &scn, delta_t dt) |
| Renders the scene to the specified output. | |
| auto | render_scene (entt::handle camera_ent, camera_component &comp, scene &scn, delta_t dt) -> gfx::frame_buffer::ptr |
| Renders the scene and returns the frame buffer. | |
| void | render_scene (const gfx::frame_buffer::ptr &output, entt::handle camera_ent, camera_component &comp, scene &scn, delta_t dt) |
| Renders the scene to the specified output. | |
| void | add_debugdraw_call (const std::function< void(gfx::dd_raii &dd)> &callback) |
Base class for different rendering paths in the ACE framework.
Definition at line 25 of file rendering_system.h.
|
default |
|
default |
| void unravel::rendering_system::add_debugdraw_call | ( | const std::function< void(gfx::dd_raii &dd)> & | callback | ) |
Definition at line 164 of file rendering_system.cpp.
| auto unravel::rendering_system::deinit | ( | rtti::context & | ctx | ) | -> bool |
Deinitializes the rendering path with the given context.
| ctx | The context to deinitialize. |
Definition at line 36 of file rendering_system.cpp.
| auto unravel::rendering_system::init | ( | rtti::context & | ctx | ) | -> bool |
Initializes the rendering path with the given context.
| ctx | The context to initialize with. |
Definition at line 25 of file rendering_system.cpp.
Definition at line 58 of file rendering_system.cpp.
| void unravel::rendering_system::on_frame_end | ( | rtti::context & | ctx, |
| delta_t | dt ) |
Definition at line 43 of file rendering_system.cpp.
Prepares the scene for rendering.
| scn | The scene to prepare. |
| dt | The delta time. |
Definition at line 48 of file rendering_system.cpp.
| void unravel::rendering_system::on_play_begin | ( | hpp::span< const entt::handle > | entities, |
| delta_t | dt ) |
Definition at line 68 of file rendering_system.cpp.
| void unravel::rendering_system::render_scene | ( | const gfx::frame_buffer::ptr & | output, |
| entt::handle | camera_ent, | ||
| camera_component & | comp, | ||
| scene & | scn, | ||
| delta_t | dt ) |
Renders the scene to the specified output.
| output | The output frame buffer. |
| scn | The scene to render. |
| dt | The delta time. |
Definition at line 109 of file rendering_system.cpp.
| void unravel::rendering_system::render_scene | ( | const gfx::frame_buffer::ptr & | output, |
| scene & | scn, | ||
| delta_t | dt ) |
Renders the scene to the specified output.
| output | The output frame buffer. |
| scn | The scene to render. |
| dt | The delta time. |
Definition at line 127 of file rendering_system.cpp.
| auto unravel::rendering_system::render_scene | ( | entt::handle | camera_ent, |
| camera_component & | comp, | ||
| scene & | scn, | ||
| delta_t | dt ) -> gfx::frame_buffer::ptr |
Renders the scene and returns the frame buffer.
| scn | The scene to render. |
| dt | The delta time. |
Definition at line 78 of file rendering_system.cpp.
| auto unravel::rendering_system::render_scene | ( | scene & | scn, |
| delta_t | dt ) -> gfx::frame_buffer::ptr |
Renders the scene and returns the frame buffer.
| scn | The scene to render. |
| dt | The delta time. |
Definition at line 95 of file rendering_system.cpp.