![]() |
Gondwana Game Engine
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, mobile, and web platforms using SkiaSharp for graphics and NAudio for sound.
|
Public Member Functions | |
| void | Present (SKImage bufferImage, SKRectI bufferRect, SKRect destRect) |
| Presents the specified portion of the Backbuffer image to the destination rectangle on the RenderSurfaceAdapter. | |
Protected Member Functions | |
| RenderSurfaceAdapterBase (int destWidth, int destHeight) | |
| Initializes a new instance of the RenderSurfaceAdapterBase class with the specified dimensions. | |
| void | SetDestinationSize (int destWidth, int destHeight) |
| Sets the destination size of the render surface and raises the Resized event if the dimensions have changed. | |
Properties | |
| int | Width [get, protected set] |
| Gets the current width of the render surface in pixels. | |
| int | Height [get, protected set] |
| Gets the current height of the render surface in pixels. | |
Events | |
| Action< RenderSurfaceAdapterResizedEventArgs >? | Resized |
| Occurs when the render surface adapter is resized. | |
|
protected |
Initializes a new instance of the RenderSurfaceAdapterBase class with the specified dimensions.
| destWidth | The initial width of the render surface in pixels. |
| destHeight | The initial height of the render surface in pixels. |
|
abstract |
Presents the specified portion of the Backbuffer image to the destination rectangle on the RenderSurfaceAdapter.
The method maps the specified region of the buffer image to the destination rectangle, scaling or transforming as necessary. Callers must ensure that the dimensions and coordinates of bufferRect and destRect are valid.
| bufferImage | The source image from which to present. Cannot be null. |
| bufferRect | The rectangular region of the buffer image to present. Coordinates are in the buffer image's space. |
| destRect | The rectangular region in the destination space where the presented content will be drawn. |
|
protected |
Sets the destination size of the render surface and raises the Resized event if the dimensions have changed.
| destWidth | The new width of the render surface in pixels. |
| destHeight | The new height of the render surface in pixels. |
If the specified dimensions are the same as the current dimensions, this method returns without making changes or raising the Resized event.
|
getprotected set |
Gets the current height of the render surface in pixels.
The height of the render surface.
|
getprotected set |
Gets the current width of the render surface in pixels.
The width of the render surface.
| Action<RenderSurfaceAdapterResizedEventArgs>? Gondwana.Rendering.RenderSurfaceAdapterBase.Resized |