But if I uncomment the three commented lines, I get an error in StartDrawing(ScreenOutput()). The error message is "Line 12: The specified output is NULL (0 value)".
What am I doing wrong?
Code: Select all
Define screenw, screenh
; Debug InitEngine3D()
Debug InitSprite()
ExamineDesktops()
screenw = DesktopWidth(0)
screenh = DesktopHeight(0)
Debug OpenScreen(screenw, screenh, 32, "Test Screen")
ClearScreen(#Blue)
StartDrawing(ScreenOutput())
Box(600, 100, 300, 300, #Red)
StopDrawing()
; Debug OpenWindow3D(1, 50, 50, 300, 300, "Test Window")
FlipBuffers()
Delay(5000)
; CloseWindow3D(1)
CloseScreen()
EndI am using PB 4.61 (final) on a dual-monitor PC running Windows 7 ultimate.

