Clear Screen

Blitz3D Forums/Blitz3D Beginners Area/Clear Screen

Hello, can someone possibly tell me why my current code below will not clear the current loading text and add the new one.

; Graphics
Graphics3D 640,480,0,0

; Set Application Title

AppTitle "Game Demo V1"

; Hide Our Pointer

HidePointer


; Executing Update File

Text 260,460,"Executing Update...(1/1)"

ExecFile "Update/Update.exe"


Delay 1000

Cls



; Loading Music

Text 260,460,"Loading Music...(1/1)"

Delay 1000

Emotional1Music = LoadSound("Music/Emotional1.mp3")

add the command
flip
at the end.

Does Graphics3D automatically render to the backbuffer?

I think it might. Not sure, cant check from this computer. Unless its in the online docs or something. Ill check

Yes it does. Well I never bother with SetBuffer BackBuffer()..... so it must I suppose :)
but the docs say
Use this command to set the current drawing buffer. If not used the default buffer, FrontBuffer() is used

No, it doesn't! when you don't set it, the output goes randomly to front or back buffer, at least in windowed mode on my machine with a common lowcost radeon chipset.

thats odd, anyway

you might also want to change the graphics line to this:

Graphics3d 640,480,16,2


or something of the like, specifying the bit mode and screenmode