If Windowed3D () Graphics3D 640, 480, 0, 2 Print "Windowed mode!" Else Graphics3D 640, 480, 0, 1 Print "Full screen modes only!" EndIf MouseWait End