Interface IRenderContext
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
Methods
Clear(ColorRgba32)
Clears the current frame buffer to a solid color.
void Clear(ColorRgba32 color)
Parameters
colorColorRgba32The clear color.
DrawSprite(SpriteDrawCommand)
Submits a sprite draw command to the current frame.
void DrawSprite(SpriteDrawCommand command)
Parameters
commandSpriteDrawCommandThe backend-neutral sprite draw request.