Skip to main content
Version: 1.0.0-preview.36

Velaptor.Graphics.IRenderContext

Velaptor

Velaptor.Graphics

IRenderContext Interface

Represents where and how rendering will occur.

public interface IRenderContext

Methods

GetRenderAreaSize()

Gets the current size of the rendering area.

System.Drawing.Size GetRenderAreaSize();

Returns

System.Drawing.Size
The render area size.

Remarks

This is synonymous with the OpenGL viewport.

SetRenderAreaSize(int, int)

Sets the size of the rendering area.

void SetRenderAreaSize(int width, int height);

Parameters

width System.Int32

The width in pixels of the area.

height System.Int32

The height in pixels of the area.

Remarks

This is synonymous with the OpenGL viewport.