Skip to content

BackBuffer

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

BackBuffer

BackBuffer:Int32

Returns: The handle of the back buffer.

Description

Returns the back buffer: the hidden picture that all drawing goes to when it is selected with SetBuffer. Draw a whole frame into it and show it with Flip. This is the usual way to animate without flicker.

Differences

  • FrontBuffer returns this same handle, because a program cannot draw to the picture on the screen.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Local x = 0
While Not KeyHit(1)
	Cls
	Rect x, 100, 40, 40, 1
	x = (x + 2) Mod 320
	Flip
Wend

Related Commands

BufferDirty, FrontBuffer, GraphicsBuffer, LoadBuffer, LockBuffer, SaveBuffer, SetBuffer, UnlockBuffer

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally