CombineRenderer class
#include <Jazz2/Rendering/CombineRenderer.h>
Combines all previous passes of a scene into a resulting image.
Final compositing pass of a PlayerViewport that blends the rendered scene with the lighting buffer and the blur targets, applying ambient light and an optional underwater shader variant, and emits the result into the viewport's output region.
Base classes
- class nCine::SceneNode
- Base node of the scene graph transformation hierarchy.
Constructors, destructors, conversion operators
- CombineRenderer(PlayerViewport* owner)
- Creates a new instance attached to a given viewport.
Public functions
-
void Initialize(std::
int32_t x, std:: int32_t y, std:: int32_t width, std:: int32_t height) - Initializes the renderer to a given region.
- auto GetBounds() const -> Rectf
- Returns bounds of the combined region.
- auto OnDraw(RenderQueue& renderQueue) -> bool override
- Called when the node needs to be drawn, returning
trueif a command was added.
Function documentation
void Jazz2:: Rendering:: CombineRenderer:: Initialize(std:: int32_t x,
std:: int32_t y,
std:: int32_t width,
std:: int32_t height)
Initializes the renderer to a given region.
| Parameters | |
|---|---|
| x | Horizontal position of the region |
| y | Vertical position of the region |
| width | Width of the region |
| height | Height of the region |