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
IDrawable.cs
1using System.Drawing;
4
5namespace Gondwana.Drawing;
6
13public interface IDrawable
14{
18 Guid Id { get; }
19
23 string? Nickname { get; }
24
28 bool Visible { get; }
29
34 int ZOrder { get; }
35
47 RectangleF GetDrawLocationScreen(View view);
48
60 void Draw(BackbufferBase backbuffer, RectangleF destRectScreen);
61}
Represents a base class for managing a graphical backbuffer, and is the in-memory surface where rende...
Represents a rendered view of a scene, combining a camera position with a viewport configuration to c...
Definition View.cs:14
Represents an object that can be drawn on a visual surface, with properties for visibility and stacki...
Definition IDrawable.cs:14
void Draw(BackbufferBase backbuffer, RectangleF destRectScreen)
Draws the object to the Backbuffer using the provided SCREEN-space destination rectangle....
bool Visible
Gets a value indicating whether the object is visible.
Definition IDrawable.cs:28
RectangleF GetDrawLocationScreen(View view)
Computes the object's destination rectangle in SCREEN pixels for rendering on the Backbuffer,...
string? Nickname
Optional human-readable name associated with the object.
Definition IDrawable.cs:23
Guid Id
Auto-assigned unique identifier for the object.
Definition IDrawable.cs:18
int ZOrder
Gets the z-order of the element, which determines its visual stacking order relative to other element...
Definition IDrawable.cs:34