Class RenderTarget

Base class for representing rendering surface.

Methods

RenderTarget(width, height) constructor

Creates new instance fo RenderTarget.

Parameters
width : number — The width of the surface.
height : number — The height of the surface.
resize(width, height) method

Resizes surface to the given size.

Parameters
width : number — The width of the surface.
height : number — The height of the surface.
clear() method
Clears whole surface.

Properties

width : number property
The width of the surface.
height : number property
The height of the surface.