![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Graphics class that represents the technique used in deferred rendering. More...
Public Member Functions | |
| DeferredRenderTechnique () | |
| Constructs a DeferredRenderTechnique object by default. More... | |
| void | Clear (const SceneData &sceneData) const override |
| Clears the data. More... | |
| bool | Draw (const SceneData &sceneData) const override |
| Draws the data of the scene. More... | |
| void | EnablePass (RenderPassType renderPass, int position, bool enable) |
| Enables a pass. More... | |
| Texture * | GetDepthStencilTexture () const |
| Gets the stencil buffer. More... | |
| Texture * | GetGBuffer (unsigned int i) const |
| Gets the G-buffer. More... | |
| RenderTexture * | GetGBufferRTT () const |
| Gets the rendering texture of the G-buffer. More... | |
| const ForwardRenderTechnique * | GetForwardTechnique () const |
| Gets the forward technique. More... | |
| DeferredRenderPass * | GetPass (RenderPassType renderPass, int position=0) |
| Gets the pass. More... | |
| AbstractRenderQueue * | GetRenderQueue () override |
| Gets the render queue. More... | |
| RenderTechniqueType | GetType () const override |
| Gets the type of the current technique. More... | |
| RenderTexture * | GetWorkRTT () const |
| Gets the render texture used to work. More... | |
| Texture * | GetWorkTexture (unsigned int i) const |
| Gets the ith texture to work. More... | |
| bool | IsPassEnabled (RenderPassType renderPass, int position) |
| Checks whether the pass is enable. More... | |
| DeferredRenderPass * | ResetPass (RenderPassType renderPass, int position) |
| Resets the pass. More... | |
| void | SetPass (RenderPassType relativeTo, int position, DeferredRenderPass *pass) |
| Sets the pass. More... | |
Public Member Functions inherited from Nz::AbstractRenderTechnique | |
| AbstractRenderTechnique () | |
| Constructs a AbstractRenderTechnique object. | |
| AbstractRenderTechnique (const AbstractRenderTechnique &)=delete | |
| AbstractRenderTechnique (AbstractRenderTechnique &&)=default | |
| virtual void | EnableInstancing (bool instancing) |
| Enables the instancing. More... | |
| virtual String | GetName () const |
| Gets the name of the actual technique. More... | |
| virtual bool | IsInstancingEnabled () const |
| Checks whether the instancing is enabled. More... | |
| AbstractRenderTechnique & | operator= (const AbstractRenderTechnique &)=delete |
| AbstractRenderTechnique & | operator= (AbstractRenderTechnique &&)=default |
Static Public Member Functions | |
| static bool | IsSupported () |
| Checks whether the technique is supported. More... | |
Friends | |
| class | Graphics |
Additional Inherited Members | |
Protected Attributes inherited from Nz::AbstractRenderTechnique | |
| bool | m_instancingEnabled |
Graphics class that represents the technique used in deferred rendering.
| Nz::DeferredRenderTechnique::DeferredRenderTechnique | ( | ) |
Constructs a DeferredRenderTechnique object by default.
|
overridevirtual |
|
overridevirtual |
Draws the data of the scene.
| sceneData | Data of the scene |
Implements Nz::AbstractRenderTechnique.
| void Nz::DeferredRenderTechnique::EnablePass | ( | RenderPassType | renderPass, |
| int | position, | ||
| bool | enable | ||
| ) |
Enables a pass.
| renderPass | Enumeration for the pass |
| position | Position of the pass |
| enable | Should the pass be enabled |
| Texture * Nz::DeferredRenderTechnique::GetDepthStencilTexture | ( | ) | const |
Gets the stencil buffer.
| const ForwardRenderTechnique * Nz::DeferredRenderTechnique::GetForwardTechnique | ( | ) | const |
Gets the forward technique.
| Texture * Nz::DeferredRenderTechnique::GetGBuffer | ( | unsigned int | i | ) | const |
Gets the G-buffer.
| i | Index of the G-buffer |
| RenderTexture * Nz::DeferredRenderTechnique::GetGBufferRTT | ( | ) | const |
Gets the rendering texture of the G-buffer.
| DeferredRenderPass * Nz::DeferredRenderTechnique::GetPass | ( | RenderPassType | renderPass, |
| int | position = 0 |
||
| ) |
Gets the pass.
| renderPass | Enumeration for the pass |
| position | Position of the pass |
|
overridevirtual |
|
overridevirtual |
Gets the type of the current technique.
Implements Nz::AbstractRenderTechnique.
| RenderTexture * Nz::DeferredRenderTechnique::GetWorkRTT | ( | ) | const |
Gets the render texture used to work.
| Texture * Nz::DeferredRenderTechnique::GetWorkTexture | ( | unsigned int | i | ) | const |
Gets the ith texture to work.
| i | Index of the texture used to work |
| bool Nz::DeferredRenderTechnique::IsPassEnabled | ( | RenderPassType | renderPass, |
| int | position | ||
| ) |
Checks whether the pass is enable.
| renderPass | Enumeration for the pass |
| position | Position of the pass |
|
static |
Checks whether the technique is supported.
| DeferredRenderPass * Nz::DeferredRenderTechnique::ResetPass | ( | RenderPassType | renderPass, |
| int | position | ||
| ) |
Resets the pass.
| renderPass | Enumeration for the pass |
| position | Position of the pass |
| void Nz::DeferredRenderTechnique::SetPass | ( | RenderPassType | relativeTo, |
| int | position, | ||
| DeferredRenderPass * | pass | ||
| ) |
Sets the pass.
| relativeTo | Enumeration for the pass |
| position | Position of the pass |
| pass | Render pass to set |