RenderBuffer

A RenderBuffer is similar to a PixelData, however it can't be modified directly from code.

VideoChips have an array of child RenderBuffers, with the VideoChip.RenderOnBuffer method you can set one as render target allowing you to use draw methods on the selected RenderBuffer.

A RenderBuffer can also be obtained with the Webcam module, to be displayed with VideoChip methods.

Properties

Name string read only

The name of the asset.

Type string read only

String containing "RenderBuffer"

Width number read only

Width in pixels.

Height number read only

Height in pixels.

Methods

IsValid( ) boolean

Returns true if the asset reference is still valid.
References can become invalid if the asset is unloaded.

GetPixelData( ) PixelData

Returns a PixelData object containing the RenderBuffer data.