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.IDirectCompositeChild Interface Reference

Defines a movable direct drawable that may be owned by a DirectComposite. More...

Inheritance diagram for Gondwana.Drawing.Direct.IDirectCompositeChild:
Gondwana.Drawing.Direct.IDirectDrawable Gondwana.Physics.Movement.IMovable Gondwana.Drawing.IDrawable Gondwana.Drawing.Direct.DirectComposite Gondwana.Drawing.Direct.DirectDrawingMovableBase Gondwana.Widgets.WidgetBase Gondwana.Drawing.Direct.DirectImage Gondwana.Drawing.Direct.DirectRectangle Gondwana.Drawing.Direct.DirectSvg Gondwana.Drawing.Direct.DirectVideo Gondwana.Drawing.Direct.ImageLayer.ImageInstanceLayer Gondwana.Drawing.Direct.Particles.ParticleSurface Gondwana.Drawing.Direct.TextBlock

Public Member Functions

void SetIsVisible (bool visible)
 Applies a visibility value to this child.
void SetZOrder (int zOrder)
 Applies a Z-order value to this child.
void SetOpacity (float opacity)
 Applies an opacity value to this child.
void FadeTo (float targetOpacity, float durationSec)
 Fades this child to the requested opacity.
Public Member Functions inherited from Gondwana.Drawing.Direct.IDirectDrawable
void Update (long tick)
 Updates the state of the object based on the specified tick value.
Public Member Functions inherited from Gondwana.Drawing.IDrawable
RectangleF GetDrawLocationScreen (View view)
 Computes the object's destination rectangle in SCREEN pixels for rendering on the Backbuffer, using the provided View to project from world-space.
void Draw (BackbufferBase backbuffer, RectangleF destRectScreen)
 Draws the object to the Backbuffer using the provided SCREEN-space destination rectangle. The rectangle is assumed to already be projected into screen-space; no world-to-screen conversion should occur within this method.
Public Member Functions inherited from Gondwana.Physics.Movement.IMovable
Vector2 GetPosition ()
 Get the current position in the mover's PositionSpace.
void SetPosition (Vector2 pos)
 Set the position in the mover's PositionSpace.

Properties

SceneLayer? SceneLayer [get]
 Gets the scene layer used by a scene-layer child, or null for a view child.
View? View [get]
 Gets the view used by a view child, or null for a scene-layer child.
Properties inherited from Gondwana.Drawing.Direct.IDirectDrawable
RenderSurfaceHostBase RenderSurfaceHost [get]
 The rendering surface to which this drawable belongs.
DirectDrawingMode Mode [get]
 Gets the drawing mode that determines where and how this drawable is rendered.
Rectangle ScreenBounds [get]
 The bounding rectangle of this drawable in SCREEN space.
Rectangle WorldBounds [get]
 The bounding rectangle of this drawable in WORLD space.
Properties inherited from Gondwana.Drawing.IDrawable
Guid Id [get]
 Auto-assigned unique identifier for the object.
string? Nickname [get]
 Optional human-readable name associated with the object.
bool Visible [get]
 Gets a value indicating whether the object is visible.
int ZOrder [get]
 Gets the z-order of the element, which determines its visual stacking order relative to other elements. Higher z-order values are drawn on top of lower ones.
Properties inherited from Gondwana.Physics.Movement.IMovable
MovementSpace PositionSpace [get]
 Which unit system this mover uses for its position.

Additional Inherited Members

Events inherited from Gondwana.Drawing.Direct.IDirectDrawable
EventHandler< IDirectDrawable >? Disposing
 Occurs when the object is being disposed.

Detailed Description

Defines a movable direct drawable that may be owned by a DirectComposite.

The interface provides the coordinate target and visual operations required for recursive composition without requiring DirectComposite to recognize concrete child types.

Container implementations should apply visibility, Z-order, opacity, and fade operations recursively to their descendants.

Definition at line 22 of file IDirectCompositeChild.cs.

Member Function Documentation

◆ FadeTo()

void Gondwana.Drawing.Direct.IDirectCompositeChild.FadeTo ( float targetOpacity,
float durationSec )

Fades this child to the requested opacity.

Parameters
targetOpacityThe target opacity in the range 0 through 1.
durationSecThe fade duration in seconds.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

◆ SetIsVisible()

void Gondwana.Drawing.Direct.IDirectCompositeChild.SetIsVisible ( bool visible)

Applies a visibility value to this child.

Parameters
visibleThe visibility value to apply.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

◆ SetOpacity()

void Gondwana.Drawing.Direct.IDirectCompositeChild.SetOpacity ( float opacity)

Applies an opacity value to this child.

Parameters
opacityThe opacity value in the range 0 through 1.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

◆ SetZOrder()

void Gondwana.Drawing.Direct.IDirectCompositeChild.SetZOrder ( int zOrder)

Applies a Z-order value to this child.

Parameters
zOrderThe Z-order value to apply.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

Property Documentation

◆ SceneLayer

SceneLayer? Gondwana.Drawing.Direct.IDirectCompositeChild.SceneLayer
get

Gets the scene layer used by a scene-layer child, or null for a view child.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

Definition at line 28 of file IDirectCompositeChild.cs.

◆ View

View? Gondwana.Drawing.Direct.IDirectCompositeChild.View
get

Gets the view used by a view child, or null for a scene-layer child.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

Definition at line 34 of file IDirectCompositeChild.cs.