Trying to display a Loading screen
BlitzMax Forums/BlitzMax Beginners Area/Trying to display a Loading screen
| ||
For my game I want to display a 'Loading...' text while the music and graphics load. It works on Mac, and also on PC in a window mode. If I use fullscreen mode on the PC, it does not work. Here is the code: Graphics(1024, 768, 32) DrawText("Loading...", GraphicsWidth() / 2, GraphicsHeight() / 2) Flip Delay (2000) --- Does not work Graphics(1024, 768, 0) DrawText("Loading...", GraphicsWidth() / 2, GraphicsHeight() / 2) Flip Delay (2000) --- Works I really can't understand why this does not work. Please help.. |
| ||
Hiya, This is due to the way the driver initializes in fullscreen mode. Putting a Flip immediately after the Graphics... should fix it and also have no effect when windowed. EDIT:- A little info as to the difference... On a PC the default graphics driver in Max2D will be DirectX9. On Macs it will be OpenGL as DirectX isnt available for Macs. You can set a graphics driver using the SetGraphicsDriver([...]) before calling the Graphics... command. Available Max2D graphics driver are GLMax2DDriver() :- For Macs and PC. D3D7Max2DDriver() and D3D9Max2DDriver() are PC only. Last edited 2012 |