![]() |
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.
|
Defines a movable direct drawable that may be owned by a DirectComposite. More...
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. | |
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.
| void Gondwana.Drawing.Direct.IDirectCompositeChild.FadeTo | ( | float | targetOpacity, |
| float | durationSec ) |
Fades this child to the requested opacity.
| targetOpacity | The target opacity in the range 0 through 1. |
| durationSec | The fade duration in seconds. |
Implemented in Gondwana.Drawing.Direct.DirectComposite.
| void Gondwana.Drawing.Direct.IDirectCompositeChild.SetIsVisible | ( | bool | visible | ) |
Applies a visibility value to this child.
| visible | The visibility value to apply. |
Implemented in Gondwana.Drawing.Direct.DirectComposite.
| void Gondwana.Drawing.Direct.IDirectCompositeChild.SetOpacity | ( | float | opacity | ) |
Applies an opacity value to this child.
| opacity | The opacity value in the range 0 through 1. |
Implemented in Gondwana.Drawing.Direct.DirectComposite.
| void Gondwana.Drawing.Direct.IDirectCompositeChild.SetZOrder | ( | int | zOrder | ) |
Applies a Z-order value to this child.
| zOrder | The Z-order value to apply. |
Implemented in Gondwana.Drawing.Direct.DirectComposite.
|
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.
|
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.