|
Switching between graphical mode? |
Zdravko
Member #6,994
March 2006
|
I am writing a win32 console application under MVC++ 2005. After the iser inputs some data via std::cin, I graphical visualization begins. I have 2 questions: |
miran
Member #2,407
June 2002
|
set_gfx_mode(GFX_TEXT,80,25,0,0); But the real question here is, why do you want to force your user to type input at the command prompt. Why not make a proper user interface instead? -- |
Zdravko
Member #6,994
March 2006
|
miran , ok. Now tell me how do I input real numbers with Allegro? That is input like 1, 2, 300, 5.5454, -43.0021 ? |
miran
Member #2,407
June 2002
|
keypressed(); readkey(); uatof(); Or use the Allegro GUI or one of the GUI add-on libraries (such as for example MASkinG), put an editbox on the screen (or a slider or whatever you want) and get input from there... -- |
Zdravko
Member #6,994
March 2006
|
miran, thank you fot the help. |
miran
Member #2,407
June 2002
|
Read the Allegro manual, the section about the GUI. -- |
piccolo
Member #3,163
January 2003
|
hey take a look at my game i do some input there along with some other goodies http://www.allegro.cc/depot/Thegame/ look in "Textbox.h" good luck ps:right a review if you have a spear min . good luck wow |
|