Jazz2::Rendering::XRayMaskRenderer class

Renders the coverage of the actors behind the x-ray tile layers.

The x-ray layers (see Tiles::LayerRendererType::XRay) show a different frame of their tiles where an actor is behind them, which is decided per pixel by a mask: the alpha of every actor sprite below the frontmost x-ray layer, drawn into a PlayerViewport's mask buffer before the scene itself. The mask is rendered only in a frame that follows one with an x-ray tile on screen, so a level that has none on screen pays nothing for it.

Base classes

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

Constructors, destructors, conversion operators

XRayMaskRenderer(PlayerViewport* owner)
Creates a new instance attached to a given viewport.

Public functions

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