Graphics 

Getting into Graphics mode

Before you can do any flashy graphics, you need to set the graphics mode you're going to use. This is done using the 'Graphics' command.

'Graphics' takes 4 parameters, width, height, depth, and screenmode. These are, strangely enough, the width, height, depth, and screenmode of the graphics mode you want to use!

The depth parameter can be omitted, Blitz will then select a 'fast' depth for you - one that supports all your graphics cards whizzy features.

Screenmode is the type of screenmode you want the program to run in:

0 : auto - windowed in debug, fullscreen in non-debug (this is the default)
1 : fullscreen mode
2 : windowed mode
3 : scaled window mode

Once you're in graphics mode, you can start drawing stuff.

Here's a quick example that goes into graphics mode, draws a rectangle and waits for a key-press:

Graphics 640,480,16,1
Rect 64,64,512,352
WaitKey