The Renderer class provides a comprehensive set of interfaces for managing and rendering scene. More...
#include <renderer.h>
Public Member Functions | |
| Renderer () | |
| void | render (const std::shared_ptr< Scene > &scene) |
| Renders the given scene. | |
| std::shared_ptr< Image2D > | read (const std::shared_ptr< ImageBuffer > &buffer) |
| Reads data from the given image buffer. | |
| void | add (const std::shared_ptr< Scene > &scene) |
| Adds the given scene to the renderer. | |
| void | remove (const std::shared_ptr< Scene > &scene) |
| Removes the given scene from the renderer. | |
| void | update (const std::shared_ptr< Scene > &scene) |
| Removes the given scene from the renderer. | |
| void | add (const std::shared_ptr< Pass > &pass) |
| Adds the given object. | |
| void | add (const std::shared_ptr< Node > &node) |
| void | add (const std::shared_ptr< Mesh > &mesh) |
| void | add (const std::shared_ptr< Target > &target) |
| void | add (const std::shared_ptr< Primitive > &primitive) |
| void | add (const std::shared_ptr< Material > &material) |
| void | add (const std::shared_ptr< Geometry > &geometry) |
| void | add (const std::shared_ptr< Program > &program) |
| void | add (const std::shared_ptr< Texture > &texture) |
| void | add (const std::shared_ptr< Vertices > &vertices) |
| void | add (const std::shared_ptr< ElementIndices > &indices) |
| void | add (const std::shared_ptr< Source > &source) |
| void | add (const std::shared_ptr< Image > &image) |
| void | add (const std::shared_ptr< Sampler > &sampler) |
| void | add (const std::shared_ptr< ArrayBuffer > &buffer) |
| void | remove (const std::shared_ptr< Pass > &pass) |
| Removes the given object. | |
| void | remove (const std::shared_ptr< Node > &node) |
| void | remove (const std::shared_ptr< Mesh > &mesh) |
| void | remove (const std::shared_ptr< Target > &target) |
| void | remove (const std::shared_ptr< Primitive > &primitive) |
| void | remove (const std::shared_ptr< Material > &material) |
| void | remove (const std::shared_ptr< Geometry > &geometry) |
| void | remove (const std::shared_ptr< Program > &program) |
| void | remove (const std::shared_ptr< Texture > &texture) |
| void | remove (const std::shared_ptr< Vertices > &vertices) |
| void | remove (const std::shared_ptr< ElementIndices > &indices) |
| void | remove (const std::shared_ptr< Source > &source) |
| void | remove (const std::shared_ptr< Image > &image) |
| void | remove (const std::shared_ptr< Sampler > &sampler) |
| void | remove (const std::shared_ptr< ArrayBuffer > &buffer) |
| void | update (const std::shared_ptr< Pass > &pass) |
| Updates the given object. | |
| void | update (const std::shared_ptr< Node > &node) |
| void | update (const std::shared_ptr< Mesh > &mesh) |
| void | update (const std::shared_ptr< Target > &target) |
| void | update (const std::shared_ptr< Primitive > &primitive) |
| void | update (const std::shared_ptr< Material > &material) |
| void | update (const std::shared_ptr< Geometry > &geometry) |
| void | update (const std::shared_ptr< Program > &program) |
| void | update (const std::shared_ptr< Texture > &texture) |
| void | update (const std::shared_ptr< Vertices > &vertices) |
| void | update (const std::shared_ptr< ElementIndices > &indices) |
| void | update (const std::shared_ptr< Source > &source) |
| void | update (const std::shared_ptr< Image > &image) |
| void | update (const std::shared_ptr< Sampler > &sampler) |
| void | update (const std::shared_ptr< ArrayBuffer > &buffer) |
| void | free () |
| Frees resources used by the renderer, ensuring that the renderer is properly terminated. | |
The Renderer class provides a comprehensive set of interfaces for managing and rendering scene.
| cil::Renderer::Renderer | ( | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< ArrayBuffer > & | buffer | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< ElementIndices > & | indices | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Geometry > & | geometry | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Image > & | image | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Material > & | material | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Mesh > & | mesh | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Node > & | node | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Pass > & | pass | ) |
Adds the given object.
| void cil::Renderer::add | ( | const std::shared_ptr< Primitive > & | primitive | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Program > & | program | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Sampler > & | sampler | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Scene > & | scene | ) |
Adds the given scene to the renderer.
| void cil::Renderer::add | ( | const std::shared_ptr< Source > & | source | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Target > & | target | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Texture > & | texture | ) |
| void cil::Renderer::add | ( | const std::shared_ptr< Vertices > & | vertices | ) |
| void cil::Renderer::free | ( | ) |
Frees resources used by the renderer, ensuring that the renderer is properly terminated.
| std::shared_ptr< Image2D > cil::Renderer::read | ( | const std::shared_ptr< ImageBuffer > & | buffer | ) |
Reads data from the given image buffer.
Its purpose is to retrieves image data from the buffer.
| buffer | A shared pointer to the image buffer to be read. |
| void cil::Renderer::remove | ( | const std::shared_ptr< ArrayBuffer > & | buffer | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< ElementIndices > & | indices | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Geometry > & | geometry | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Image > & | image | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Material > & | material | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Mesh > & | mesh | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Node > & | node | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Pass > & | pass | ) |
Removes the given object.
| void cil::Renderer::remove | ( | const std::shared_ptr< Primitive > & | primitive | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Program > & | program | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Sampler > & | sampler | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Scene > & | scene | ) |
Removes the given scene from the renderer.
| void cil::Renderer::remove | ( | const std::shared_ptr< Source > & | source | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Target > & | target | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Texture > & | texture | ) |
| void cil::Renderer::remove | ( | const std::shared_ptr< Vertices > & | vertices | ) |
| void cil::Renderer::render | ( | const std::shared_ptr< Scene > & | scene | ) |
Renders the given scene.
| scene | A shared pointer to the scene to be rendered. |
| void cil::Renderer::update | ( | const std::shared_ptr< ArrayBuffer > & | buffer | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< ElementIndices > & | indices | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Geometry > & | geometry | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Image > & | image | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Material > & | material | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Mesh > & | mesh | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Node > & | node | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Pass > & | pass | ) |
Updates the given object.
| void cil::Renderer::update | ( | const std::shared_ptr< Primitive > & | primitive | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Program > & | program | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Sampler > & | sampler | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Scene > & | scene | ) |
Removes the given scene from the renderer.
| void cil::Renderer::update | ( | const std::shared_ptr< Source > & | source | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Target > & | target | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Texture > & | texture | ) |
| void cil::Renderer::update | ( | const std::shared_ptr< Vertices > & | vertices | ) |