12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /* GCSx
- ** FRONTEND.H
- **
- ** Front-end module- leads to game, editor, configuration, etc.
- */
- /*****************************************************************************
- ** Copyright (C) 2003-2006 Janson
- **
- ** This program is free software; you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation; either version 2 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
- *****************************************************************************/
- #ifndef __GCSx_FRONTEND_H_
- #define __GCSx_FRONTEND_H_
- // Initialize default (user-selected) video mode
- // Called from main() and gcsxFrontEnd() and console
- void initDefaultVideo();
- // Start front end
- // Handles all non-fatal exceptions
- // Recursive (game module calls front end to handle menu requests)
- void gcsxFrontEnd();
- // Current program mode
- enum {
- MODE_FRONTEND = 0,
- MODE_GAMEPLAY,
- MODE_EDITOR,
- };
- int getProgramMode();
- #endif
|