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
ImageInstance.cs
1using System.Drawing;
2using SkiaSharp;
3
5
19public sealed class ImageInstance
20{
24 public required SKBitmap Bitmap { get; set; }
25
33 public required RectangleF Bounds { get; set; }
34
38 public float VelocityX { get; set; }
39
43 public float VelocityY { get; set; }
44
48 public float Rotation { get; set; }
49
53 public float AngularVelocity { get; set; }
54
62 public SKColor Tint { get; set; } = SKColors.White;
63
67 public object? Tag { get; set; }
68}
Represents a single image instance rendered by an ImageInstanceLayer.
required SKBitmap Bitmap
Gets or sets the bitmap rendered for this instance.
float AngularVelocity
Gets or sets the angular velocity in degrees per second.
float Rotation
Gets or sets the current rotation in degrees.
SKColor Tint
Gets or sets the tint applied when rendering the image.
float VelocityY
Gets or sets the vertical velocity in pixels per second.
object? Tag
Gets or sets an optional user-defined tag associated with this instance.
required RectangleF Bounds
Gets or sets the destination bounds of the image in the coordinate space used by the containing Image...
float VelocityX
Gets or sets the horizontal velocity in pixels per second.