![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <Renderer.hpp>
Public Member Functions | |
Renderer (const RenderTarget &mainTarget, Scene &sceneRef) | |
Constructor. More... | |
const RenderTarget & | getRenderTarget () const |
Get the bound render target. More... | |
const CameraSet & | getCameras () const |
Get the camera set. More... | |
const LightSet & | getLights () const |
Get the light set. More... | |
template<typename T , typename... Args> | |
T & | createRenderPass (const RenderPass::Pass pass, const uint32 weight, Args &&...args) |
Create a new render pass. More... | |
template<typename T > | |
T * | getRenderPass (const RenderPass::Pass pass, const uint32 weight) |
Get a render pass. More... | |
void | removeRenderPass (const RenderPass::Pass pass, const uint32 weight) |
Remove and delete a render pass. More... | |
void | draw (const RenderPass::Pass pass) |
Draw. More... | |
World & | getCullingWorld () |
Get the culling world. More... | |
Friends | |
class | Camera |
class | LightSource |
class | EnvironmentRecorder |
class | Drawable |
Definition at line 45 of file Renderer.hpp.
jop::Renderer::Renderer | ( | const RenderTarget & | mainTarget, |
Scene & | sceneRef | ||
) |
Constructor.
mainTarget | Reference to the main render target |
T& jop::Renderer::createRenderPass | ( | const RenderPass::Pass | pass, |
const uint32 | weight, | ||
Args &&... | args | ||
) |
Create a new render pass.
If a pass with the same type and weight already exists, it will be replaced.
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 |
void jop::Renderer::draw | ( | const RenderPass::Pass | pass | ) |
Draw.
pass | The render passes to draw |
const CameraSet& jop::Renderer::getCameras | ( | ) | const |
Get the camera set.
World& jop::Renderer::getCullingWorld | ( | ) |
Get the culling world.
const LightSet& jop::Renderer::getLights | ( | ) | const |
Get the light set.
T* jop::Renderer::getRenderPass | ( | const RenderPass::Pass | pass, |
const uint32 | weight | ||
) |
Get a render pass.
pass | The render pass type |
weight | The weight |
const RenderTarget& jop::Renderer::getRenderTarget | ( | ) | const |
Get the bound render target.
void jop::Renderer::removeRenderPass | ( | const RenderPass::Pass | pass, |
const uint32 | weight | ||
) |
Remove and delete a render pass.
You must only call this after all the bound drawables have been removed.
pass | Render pass type |
weight | The weight of the pass to remove |
|
friend |
Definition at line 55 of file Renderer.hpp.
|
friend |
Definition at line 58 of file Renderer.hpp.
|
friend |
Definition at line 57 of file Renderer.hpp.
|
friend |
Definition at line 56 of file Renderer.hpp.