Re: [TuxKart-devel] How about
Status: Alpha
Brought to you by:
sjbaker
From: Matze B. <ma...@br...> - 2004-10-11 20:16:59
|
On Mon, 11 Oct 2004, Ricardo Cruz wrote: > Em Segunda, 11 de Outubro de 2004 13:18, o James Gregory escreveu: > > On Mon, 2004-10-11 at 11:24, Matze Braun wrote: > > > same goes for sound and display settings). A display setting for > > > resolution and fullscreen would be a good idea though. > > > > Adding in a menu button called "fullscreen" is easy, but as far as I > > know when you do something like switch to/from fullscreen you have to > > reload all textures, which means someone who knows OpenGL/Plib would > > need to do it. > > > No, you don't. Just call: SDL_SetVideoMode(); and feed that to the screen > Surface, if any exists. > You might have to do that, but for change of resolutions. Even then, I don't > think you need. AFAIK you have to reaload textures when switching from windowed into fullscreen mode. At least on win32 all textures turned white when doing so and on linux I had a xserver crash from time to time when not reloading textures. I wasn't able to find an official statement about this, but since the openglcontext is completely destroyed and reconstructed when switching I assume that you have to reload the textures. An alternative to complicated reload stuff would be to shut everything down and start the app again from the beginning. Greetings, Matze |