Main | API | WebRender | resetScreen

Function

resetScreen(width, height);

Sets all pixel buffers (pixel, depth) to default empty values and recreates them to the new size given.

Parameters

width - [Unsigned Integer]

The pixel width of the drawing area.

height - [Unsigned Integer]

The pixel height of the drawings area.

Return

Success - [Boolean]

Returns 0/false if an error is detected, else returns 1/true.

Description

Similar to the initialise function, resetScreen creates the pixel buffers. This function is used for changing the size of an existing drawing area without recreating the entire WebRender instance.

Additional Notes

None.