Category: Images and Rendering
ClearBufferTarget()
Void
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.
Graphics 640, 480
Dim miniMap As Integer
miniMap = CreateBuffer(128, 128)
SetBufferTarget miniMap
Cls
DrawFilledRect 0, 0, 128, 128
ClearBufferTarget
DrawBuffer miniMap, 16, 16