B.Render.Device.Target()

Provides interface over the linked canvas element.

To get the object use device.target().

METHODS:

device()

Returns linked rendering device.

RETURNS:

width()

Returns width.

RETURNS:

{number}

height()

Returns height.

RETURNS:

{number}

size()

Returns width and height.

RETURNS:

multisamples()

Returns multisample coverage mask size.

RETURNS:

{number}

colorFormat()

Returns color format.

RETURNS:

depthFormat()

Returns depth format.

RETURNS:

{B.Render.Format | false}

false if the target isn't using depth buffer

clone(scale)

Clones this target to a new target object (it also clones all linked resources).

Note: it converts target size to closest power of two.

PARAMETERS:

{number} [scale] = 1.0

width & height factor

RETURNS:

METHODS: