Jazz2::Rendering::WaterRenderer class

Draws the water in front of a layer behind the others.

Node of the level scene, visited by the scene viewport of every player. It hands the water to the viewport that is visiting it, which draws it at its depth in the middle of the scene when it's in front of a layer that isn't the frontmost visible one, jjWaterLayer of JJ2+ (see PlayerViewport::DrawWater()). Otherwise the combine pass draws the water in front of everything and this does nothing.

Base classes

class nCine::SceneNode
Base node of the scene graph transformation hierarchy.

Constructors, destructors, conversion operators

WaterRenderer(LevelHandler* levelHandler)
Creates a new instance for a given level.

Public functions

auto OnDraw(RenderQueue& renderQueue) -> bool override
Called when the node needs to be drawn, returning true if a command was added.