Skip to content

EndGraphics

Narta Xaymar Dirks edited this page Oct 29, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

EndGraphics

EndGraphics:Void

Description

Closes the graphics window, which returns the program to the state it had before Graphics: everything that was drawn is gone and all images and textures are freed. Use Graphics again to open a new window, for example to switch between a window and full screen.

Differences

  • The original opens a new window of the default size, or a console. Here the window is closed and Print writes to the console.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Text 10, 10, "Press a key to close the window"
Flip
WaitKey
EndGraphics
Print "The window is closed, this goes to the console"

Related Commands

Graphics, GraphicsDepth, GraphicsFormat, GraphicsHeight, GraphicsLost, GraphicsPalette, GraphicsWidth

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally