Clear Screen

Blitz3D Forums/Blitz3D Beginners Area/Clear Screen

Regeneratez(Posted 2006) [#1]
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")


n8r2k(Posted 2006) [#2]
add the command
flip
at the end.


jhocking(Posted 2006) [#3]
Does Graphics3D automatically render to the backbuffer?


n8r2k(Posted 2006) [#4]
I think it might. Not sure, cant check from this computer. Unless its in the online docs or something. Ill check


H&K(Posted 2006) [#5]
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


jfk EO-11110(Posted 2006) [#6]
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.


n8r2k(Posted 2006) [#7]
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