/*! -------------------------------------------------------------------- \file main.cpp \brief Main application function \author \date // ------------------------------------------------------------------*/ #ifndef IGNORE_DEPEND #include #include #endif #include "main.h" #include "intro.h" #include "game.h" //--------------------------------------------------------------------- // main // //! main application function // //--------------------------------------------------------------------- int main (int argc, char** argv) { // initialize glut rendering glutInit(&argc, argv); // check for game description file argument if (argc != 2) { cerr << endl << " USAGE: " << argv[0] << " " << endl << " (please provide a game description file to load)" << endl << endl; return 1; } // create the game and initialize Intro introduction; Game gameloop; gameloop.gamefile=argv[1]; /*if (!gameloop.Init(argv[1])) { cerr << "Error Initializing game." << endl; return 1; }*/ introduction.Init(&gameloop); introduction.Run(); // everything went OK return 0; }