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.DirectDarknessOverlay.RevealSource Class Referencesealed

Represents a single world-space reveal source used by a DirectDarknessOverlay. 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 DirectDarknessOverlay.

Definition at line 626 of file DirectDarknessOverlay.cs.

Member Function Documentation

◆ MoveTo()

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

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

Parameters
centerWorldPxThe center in world pixels.

Definition at line 720 of file DirectDarknessOverlay.cs.

◆ SetRadius()

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

Sets the reveal radius in world-space pixels.

Parameters
radiusWorldPxThe radius in world pixels.

Definition at line 729 of file DirectDarknessOverlay.cs.

Property Documentation

◆ CenterWorldPx

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

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

Definition at line 666 of file DirectDarknessOverlay.cs.

◆ Enabled

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

Gets or sets whether this reveal source is currently active.

Definition at line 650 of file DirectDarknessOverlay.cs.

◆ Intensity

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

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

1 fully removes darkness at the center; lower values create weaker vision / dimmer reveal.

Definition at line 702 of file DirectDarknessOverlay.cs.

◆ Nickname

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

Optional human-readable name for debugging and lookup.

Definition at line 645 of file DirectDarknessOverlay.cs.

◆ RadiusWorldPx

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

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

Definition at line 682 of file DirectDarknessOverlay.cs.