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.ImageLayer.ImageInstance Class Referencesealed

Represents a single image instance rendered by an ImageInstanceLayer. More...

Properties

required SKBitmap Bitmap [get, set]
 Gets or sets the bitmap rendered for this instance.
required RectangleF Bounds [get, set]
 Gets or sets the destination bounds of the image in the coordinate space used by the containing ImageInstanceLayer.
float VelocityX [get, set]
 Gets or sets the horizontal velocity in pixels per second.
float VelocityY [get, set]
 Gets or sets the vertical velocity in pixels per second.
float Rotation [get, set]
 Gets or sets the current rotation in degrees.
float AngularVelocity [get, set]
 Gets or sets the angular velocity in degrees per second.
SKColor Tint = SKColors.White [get, set]
 Gets or sets the tint applied when rendering the image.
object? Tag [get, set]
 Gets or sets an optional user-defined tag associated with this instance.

Detailed Description

Represents a single image instance rendered by an ImageInstanceLayer.

An image instance is a lightweight visual object consisting of a bitmap, bounds, optional velocity, optional rotation, and tint.

This type is intended for larger, longer-lived visual elements such as drifting clouds, fog patches, leaves, embers, or similar ambient image-based effects.

Definition at line 19 of file ImageInstance.cs.

Property Documentation

◆ AngularVelocity

float Gondwana.Drawing.Direct.ImageLayer.ImageInstance.AngularVelocity
getset

Gets or sets the angular velocity in degrees per second.

Definition at line 53 of file ImageInstance.cs.

◆ Bitmap

required SKBitmap Gondwana.Drawing.Direct.ImageLayer.ImageInstance.Bitmap
getset

Gets or sets the bitmap rendered for this instance.

Definition at line 24 of file ImageInstance.cs.

◆ Bounds

required RectangleF Gondwana.Drawing.Direct.ImageLayer.ImageInstance.Bounds
getset

Gets or sets the destination bounds of the image in the coordinate space used by the containing ImageInstanceLayer.

Bounds are world pixels in scene-layer mode and screen pixels in view mode.

Definition at line 33 of file ImageInstance.cs.

◆ Rotation

float Gondwana.Drawing.Direct.ImageLayer.ImageInstance.Rotation
getset

Gets or sets the current rotation in degrees.

Definition at line 48 of file ImageInstance.cs.

◆ Tag

object? Gondwana.Drawing.Direct.ImageLayer.ImageInstance.Tag
getset

Gets or sets an optional user-defined tag associated with this instance.

Definition at line 67 of file ImageInstance.cs.

◆ Tint

SKColor Gondwana.Drawing.Direct.ImageLayer.ImageInstance.Tint = SKColors.White
getset

Gets or sets the tint applied when rendering the image.

Defaults to white, which leaves the bitmap colors unchanged. Alpha may be used to apply transparency.

Definition at line 62 of file ImageInstance.cs.

◆ VelocityX

float Gondwana.Drawing.Direct.ImageLayer.ImageInstance.VelocityX
getset

Gets or sets the horizontal velocity in pixels per second.

Definition at line 38 of file ImageInstance.cs.

◆ VelocityY

float Gondwana.Drawing.Direct.ImageLayer.ImageInstance.VelocityY
getset

Gets or sets the vertical velocity in pixels per second.

Definition at line 43 of file ImageInstance.cs.