GraphicsBuffer:clear

Available since LÖVE 12.0
This function is not supported in earlier versions.

Clears the entire GraphicsBuffer or a specified byte range within it to zero.

Function

Clears the entire GraphicsBuffer's contents to zero.

Synopsis

GraphicsBuffer:clear( )

Arguments

None.

Returns

Nothing.


Function

Clears a specified byte range within the GraphicsBuffer to zero.

Synopsis

GraphicsBuffer:clear( offset, size )

Arguments

number offset
The offset in bytes within the Buffer.
number size
The size in bytes to clear to zero.

Returns

Nothing.


See Also

Other Languages