#include <Renderer.hpp>
Definition at line 45 of file Renderer.hpp.
Constructor.
- Parameters
-
| mainTarget | Reference to the main render target |
template<typename T , typename... Args>
Create a new render pass.
If a pass with the same type and weight already exists, it will be replaced.
- Parameters
-
| pass | The render pas type |
| weight | The weight. Lesser weight means higher priority during rendering |
| args | The arguments to pass to the render pass' constructor |
- Returns
- Reference to the newly created render pass
Draw.
- Parameters
-
| pass | The render passes to draw |
| const CameraSet& jop::Renderer::getCameras |
( |
| ) |
const |
Get the camera set.
- Returns
- Reference to the camera set
| World& jop::Renderer::getCullingWorld |
( |
| ) |
|
| const LightSet& jop::Renderer::getLights |
( |
| ) |
const |
Get the light set.
- Returns
- Reference to the light set
Get a render pass.
- Parameters
-
| pass | The render pass type |
| weight | The weight |
- Returns
- Pointer to the render pass. nullptr if no pass exists with the given type and weight
| const RenderTarget& jop::Renderer::getRenderTarget |
( |
| ) |
const |
Get the bound render target.
- Returns
- Reference to the render target
Remove and delete a render pass.
You must only call this after all the bound drawables have been removed.
- Parameters
-
| pass | Render pass type |
| weight | The weight of the pass to remove |
The documentation for this class was generated from the following file: