Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource Class Referencesealed

Represents a single world-space reveal source used by a DirectSceneLayerDarknessOverlay. More...

Public Member Functions

void MoveTo (PointF centerWorldPx)
 Moves the reveal source to a new world-space position.
void SetRadius (float radiusWorldPx)
 Sets the reveal radius in world-space pixels.

Properties

string? Nickname [get]
 Optional human-readable name for debugging and lookup.
bool Enabled [get, set]
 Gets or sets whether this reveal source is currently active.
PointF CenterWorldPx [get, set]
 Gets or sets the reveal center in world-space pixels.
float RadiusWorldPx [get, set]
 Gets or sets the reveal radius in world-space pixels.
float Intensity [get, set]
 Gets or sets the reveal intensity from 0..1.

Detailed Description

Represents a single world-space reveal source used by a DirectSceneLayerDarknessOverlay.

Definition at line 620 of file DirectSceneLayerDarknessOverlay.cs.

Member Function Documentation

◆ MoveTo()

void Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.MoveTo ( PointF centerWorldPx)

Moves the reveal source to a new world-space position.

Parameters
centerWorldPxThe center in world pixels.

Definition at line 711 of file DirectSceneLayerDarknessOverlay.cs.

◆ SetRadius()

void Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.SetRadius ( float radiusWorldPx)

Sets the reveal radius in world-space pixels.

Parameters
radiusWorldPxThe radius in world pixels.

Definition at line 720 of file DirectSceneLayerDarknessOverlay.cs.

Property Documentation

◆ CenterWorldPx

PointF Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.CenterWorldPx
getset

Gets or sets the reveal center in world-space pixels.

Definition at line 660 of file DirectSceneLayerDarknessOverlay.cs.

◆ Enabled

bool Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.Enabled
getset

Gets or sets whether this reveal source is currently active.

Definition at line 644 of file DirectSceneLayerDarknessOverlay.cs.

◆ Intensity

float Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.Intensity
getset

Gets or sets the reveal intensity from 0..1.

Definition at line 693 of file DirectSceneLayerDarknessOverlay.cs.

◆ Nickname

string? Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.Nickname
get

Optional human-readable name for debugging and lookup.

Definition at line 639 of file DirectSceneLayerDarknessOverlay.cs.

◆ RadiusWorldPx

float Gondwana.Drawing.Direct.DirectSceneLayerDarknessOverlay.RevealSource.RadiusWorldPx
getset

Gets or sets the reveal radius in world-space pixels.

Definition at line 676 of file DirectSceneLayerDarknessOverlay.cs.