Home
Products
Community
Manuals
Contact
Login or Signup

Blitz3D Docs -> 2D - Category -> Graphics -> GraphicsBuffer

GraphicsBuffer()

Parameters:

None

Description:

Use this command to get which buffer Blitz is currently writing to.

Example:

; GraphicsWidth(), GraphicsHeight(), GraphicsDepth(), GraphicsBuffer() example

; Set a graphics mode and buffer
Graphics 640,480,16
SetBuffer FrontBuffer()

; Print the details
Print "Screen width is: " + GraphicsWidth()
Print "Screen height is: " + GraphicsHeight()
Print "Screen color depth is: " + GraphicsDepth()
Print "Current buffer handle is: " + GraphicsBuffer()

; Wait for ESC before exiting
While Not KeyHit(1)
Wend

Comments

mv333(Posted 1+ years ago)
I get a 7-8 digit number as the buffer handle. I thought it was supposed to come out as text, like "BackBuffer" or something? I'm using Win7.


Blitz3D Manual Forum

BlitzPlus Equivalent Command