Console SDL?
Hey. I am working on my The Two Towers NeHe contest entry (I know NeHe hasn''t announced it yet, but I''m starting on it anyways), and I want to keep things simple ask what resolutions the user wants from the console. The only problem is that I need to run a Windows app for SDL! Does anyone know how I can get around this? Instead of showing a console it just flashes a window for about a tenth of a second. Should I make a seperate config program? Is there someway I could ''make'' a console? Would it just be less trouble to make a dialog? Thanks!
When you go homeTell them of us, and say:For your tomorrow,We gave our today.
You can create an SDL app as a console application instead of a windows application. If you do the console will be open for the life of the program, but SDL will create a new window. So you could probably do exactly what you want by waiting until the user enters the resolution in the console for SDL to do anything.
-YoshiXGXCX ''99
If you start a project as a windows console project, SDL doesn''t create a window until you set the resolution with SDL.
Meaning that you can take whatever input you want through the console until you set the resolution for the main surface in SDL.
You can also return to console at any time by calling SDL_Quit().
But if you wish to come back to a window you''d have to call SDL_Init() and set resolutions all over again.
-----------------------------
Final Frontier Trader
Meaning that you can take whatever input you want through the console until you set the resolution for the main surface in SDL.
You can also return to console at any time by calling SDL_Quit().
But if you wish to come back to a window you''d have to call SDL_Init() and set resolutions all over again.
-----------------------------
Final Frontier Trader
-----------------------------Final Frontier Trader
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement