home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 February / maximum-cd-2009-02.iso / DiscContents / SMC_1.6_win32.exe / src / core / main.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-07-01  |  1.4 KB  |  44 lines

  1. /***************************************************************************
  2.  * main.h  -  header for the corresponding cpp file
  3.  *
  4.  * Copyright (C) 2003 - 2008 Florian Richter
  5.  ***************************************************************************/
  6. /*
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 3 of the License, or
  10.    (at your option) any later version.
  11.    
  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  14. */
  15.  
  16. #ifndef SMC_MAIN_H
  17. #define SMC_MAIN_H
  18.  
  19. #include "../core/globals.h"
  20.  
  21. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  22.  
  23. // Initialize everything, called before everything else
  24. // Seed random numbers, init SDL, OpenGL, CEGUI, load preferences, and create globals
  25. void Init_Game( void );
  26.  
  27. // Delete globals. Also saves preferences and closes SDL
  28. void Exit_Game( void );
  29.  
  30. /*
  31.  * Top-level input function. Calls either KeyDown, KeyUp,
  32.  * or passes control to pMouseCursor or pJoystick
  33.  * Returns true if the event was handled.
  34. */ 
  35. bool Handle_Input_Global( SDL_Event *ev );
  36.  
  37. // Called continuously from Game Loop. Update current game state
  38. void Update_Game( void );
  39.  
  40. // Called continuously from Game Loop. Draw current game state
  41. void Draw_Game( void );
  42.  
  43. #endif
  44.