![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Graphics class that represents the pass for rendering in deferred rendering. More...
Public Member Functions | |
| DeferredRenderPass () | |
| Constructs a DeferredRenderPass object by default. | |
| DeferredRenderPass (const DeferredRenderPass &)=delete | |
| void | Enable (bool enable) |
| Enables the deferred rendering. More... | |
| virtual void | Initialize (DeferredRenderTechnique *technique) |
| Initializes the deferred forward pass which needs the deferred technique. More... | |
| bool | IsEnabled () const |
| Checks whether the deferred rendering is enabled. More... | |
| virtual bool | Process (const SceneData &sceneData, unsigned int workTexture, unsigned int sceneTexture) const =0 |
| virtual bool | Resize (const Vector2ui &GBufferSize) |
| Resizes the texture sizes. More... | |
| DeferredRenderPass & | operator= (const DeferredRenderPass &)=delete |
Protected Attributes | |
| Vector2ui | m_dimensions |
| DeferredRenderTechnique * | m_deferredTechnique |
| DeferredRenderQueue * | m_renderQueue |
| RenderTexture * | m_GBufferRTT |
| RenderTexture * | m_workRTT |
| Texture * | m_depthStencilTexture |
| Texture * | m_GBuffer [4] |
| Texture * | m_workTextures [2] |
Graphics class that represents the pass for rendering in deferred rendering.
| void Nz::DeferredRenderPass::Enable | ( | bool | enable | ) |
Enables the deferred rendering.
| enable | Should deferred rendering be activated |
|
virtual |
Initializes the deferred forward pass which needs the deferred technique.
| technique | Rendering technique |
Reimplemented in Nz::DeferredForwardPass.
| bool Nz::DeferredRenderPass::IsEnabled | ( | ) | const |
Checks whether the deferred rendering is enabled.
|
virtual |
Resizes the texture sizes.
| dimensions | Dimensions for the compute texture |
Reimplemented in Nz::DeferredBloomPass, Nz::DeferredDOFPass, and Nz::DeferredGeometryPass.