/*------------------------------------------------------------------
  main-pitrex.c:

    XINVADERS 3D - 3d Shoot'em up
    Copyright (C) 2000 Don Llopis

    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-1307  USA

------------------------------------------------------------------*/

#include <sys/types.h>
#include "game.h"

/*================================================================*/

/*------------------------------------------------------------------
 * main
 *
 *
------------------------------------------------------------------*/
int main (int argc, char **argv) {
   int i;


   if ( !Graphics_init ( WIN_WIDTH, WIN_HEIGHT ) ) {
      fprintf ( stderr, "Error: could not initialize graphics!\n" );
      exit ( -1 );
   }

   if ( !Game_init ( WIN_WIDTH, WIN_HEIGHT ) ) {
      Graphics_shutdown ();
      fprintf ( stderr, "Error: could not initialize game data!\n" );
      exit ( -1 );
   }

   Game_main ();

   Graphics_shutdown ();

   /* print contact information */
   i = 0;
   while ( game_about_info[i] )
   {
      fprintf ( stderr, "%s\n", game_about_info[i] );
      i++;
   }

   return 0;
}

/*================================================================*/

int Graphics_init ( unsigned int win_width, unsigned int win_height )
{
   return TRUE;
}

/*================================================================*/

void Graphics_shutdown ( void )
{
}

/*================================================================*/

int Update_display ( void )
{
   return TRUE;
}

/*================================================================*/

int Handle_events ( void )
{
   return TRUE;
}

/*================================================================*/

void Draw_line ( int x0, int y0, int x1, int y1, unsigned int color )
{
}

/*================================================================*/

void Draw_point ( int x0, int y0, unsigned int color )
{
}

/*================================================================*/

void Draw_text ( char *message, int x0, int y0, unsigned int color )
{
}

/*================================================================*/

/*------------------------------------------------------------------
 *
 * System msec & sec Timer functions
 *
------------------------------------------------------------------*/

void Timer_init ( TIMER *t )
{
}

/*================================================================*/

CLOCK_T Timer_ticks ( void )
{
   return 0;
}

/*================================================================*/

double Timer_sec ( TIMER *t )
{
   return 0;
}

/*================================================================*/

long Timer_msec ( TIMER *t )
{
   return 0;
}

/*================================================================*/
