Exemple #1
0
void XLibStatusWindow::create(int depth)
{
    // let the parent create this window
    XLibWindow::create(depth);

    // initialize the graphic context to display strings and
    // others visual components.
    initGraphic(depth);
}
Exemple #2
0
int main() {
    initGraphic();
    while(true) {
        int res = MainMenu::showStandartMainMenu();
        switch(res) {
            case MainMenu::NEW_GAME_OPTION: 
                prepareFild();
                break;
            case MainMenu::LOAD_OPTION: 
                loadGame();
                break;
            case MainMenu::EXIT_OPTION: 
                exit(0);        
        }
    }
    return 1;
}