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.
Loading...
Searching...
No Matches
Gondwana.Rendering.Backbuffers.GpuBackbuffer Class Reference
Inheritance diagram for Gondwana.Rendering.Backbuffers.GpuBackbuffer:
Gondwana.Rendering.Backbuffers.BackbufferBase

Public Member Functions

 GpuBackbuffer (int width, int height)
override void Dispose ()
 Releases all resources used by the BackbufferBase instance.
Public Member Functions inherited from Gondwana.Rendering.Backbuffers.BackbufferBase
virtual byte[] ToByteArray (SKEncodedImageFormat format=SKEncodedImageFormat.Png, int quality=100)
 Converts the current image to a byte array in the specified format and quality.

Properties

override SKCanvas Canvas [get]
Properties inherited from Gondwana.Rendering.Backbuffers.BackbufferBase
SKCanvas Canvas [get]
 Gets the SkiaSharp canvas used for drawing operations on this backbuffer.
SKPaint FogPaint [get, set]
 Gets or sets the paint object used to render fog effects.
SKPaint GridLinePaint [get, set]
 Gets or sets the paint settings used to render grid lines.
SKPaint CollisionBoxPaint [get, set]
 Gets or sets the paint settings used to render collision boxes.
int Width [get]
 Gets the current Backbuffer width in a thread-safe manner.
int Height [get]
 Gets the current Backbuffer height in a thread-safe manner.
SKColor ClearColor [get, set]
 Gets or sets the color used to clear the drawing surface.

Additional Inherited Members

Protected Member Functions inherited from Gondwana.Rendering.Backbuffers.BackbufferBase
 BackbufferBase (int width, int height)
 Initializes a new instance of the BackbufferBase class with the specified dimensions.
void UpdateSize (int width, int height)
 Updates the stored backbuffer dimensions and raises the SizeChanged event.
Protected Attributes inherited from Gondwana.Rendering.Backbuffers.BackbufferBase
readonly SKPaint _fillPaint

Constructor & Destructor Documentation

◆ GpuBackbuffer()

Gondwana.Rendering.Backbuffers.GpuBackbuffer.GpuBackbuffer ( int width,
int height )

Member Function Documentation

◆ Dispose()

override void Gondwana.Rendering.Backbuffers.GpuBackbuffer.Dispose ( )
virtual

Releases all resources used by the BackbufferBase instance.

This method disposes of managed resources including paint objects used for fog effects, grid lines, collision boxes, and fill operations. Derived classes can override this method to dispose of additional resources but should call the base implementation to ensure proper cleanup of base class resources.

After disposal, the backbuffer should not be used for further rendering operations.

Reimplemented from Gondwana.Rendering.Backbuffers.BackbufferBase.

Property Documentation

◆ Canvas

override SKCanvas Gondwana.Rendering.Backbuffers.GpuBackbuffer.Canvas
get