ClearBufferTarget

Category: Images and Rendering

Back to System Functions


Signature

ClearBufferTarget()

Returns

Void

Description

Stops drawing into the current off-screen buffer and returns drawing to the main screen created by Graphics.

Use this after finishing your buffer drawing pass. Once the target is cleared, drawing commands such as DrawImage, DrawFilledRect, and DrawText affect the screen again instead of the buffer.

Example

Graphics 640, 480 Dim miniMap As Integer miniMap = CreateBuffer(128, 128) SetBufferTarget miniMap Cls DrawFilledRect 0, 0, 128, 128 ClearBufferTarget DrawBuffer miniMap, 16, 16