Table of Contents

Interface IRenderContext

Namespace
TileWorld.Engine.Render
Assembly
TileWorld.Engine.dll

Defines the rendering operations exposed by a host backend to engine applications.

public interface IRenderContext

Properties

ViewportSizePixels

Gets the current viewport size in pixels.

Int2 ViewportSizePixels { get; }

Property Value

Int2

Methods

Clear(ColorRgba32)

Clears the current frame buffer to a solid color.

void Clear(ColorRgba32 color)

Parameters

color ColorRgba32

The clear color.

DrawSprite(SpriteDrawCommand)

Submits a sprite draw command to the current frame.

void DrawSprite(SpriteDrawCommand command)

Parameters

command SpriteDrawCommand

The backend-neutral sprite draw request.