100 lines
2.5 KiB
C++
100 lines
2.5 KiB
C++
/* --------------------------------------------------------------------
|
|
EXTREME TUXRACER
|
|
|
|
Copyright (C) 1999-2001 Jasmin F. Patry (Tuxracer)
|
|
Copyright (C) 2010 Extreme Tuxracer Team
|
|
|
|
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.
|
|
---------------------------------------------------------------------*/
|
|
|
|
#ifndef BH_H
|
|
#define BH_H
|
|
|
|
// --------------------------------------------------------------------
|
|
// includes
|
|
// --------------------------------------------------------------------
|
|
|
|
#include <cstdint>
|
|
#include <climits>
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <sys/stat.h>
|
|
|
|
#include <cmath>
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
|
|
#include <GL/gl.h>
|
|
#include <GL/glu.h>
|
|
#include <SDL/SDL.h>
|
|
#include <SDL/SDL_joystick.h>
|
|
#include <SDL/SDL_image.h>
|
|
#include <SDL/SDL_mixer.h>
|
|
|
|
#ifndef HAVE_CONFIG_H
|
|
# ifdef _WIN32 // Windows platform
|
|
# ifdef _MSC_VER // MSVC compiler
|
|
# define OS_WIN32_MSC
|
|
# else // Assume MinGW compiler
|
|
# define OS_WIN32_MINGW
|
|
# endif
|
|
# else // Assume Unix platform (Linux, Mac OS X, BSD, ...)
|
|
# ifdef __APPLE__
|
|
# define OS_MAC
|
|
# elif defined(__linux__)
|
|
# define OS_LINUX
|
|
# endif
|
|
# endif
|
|
#endif // CONFIG_H
|
|
|
|
#if defined OS_WIN32_MSC // Windows platform
|
|
# include <windows.h>
|
|
# include "glext.h"
|
|
# pragma warning (disable:4244)
|
|
# pragma warning (disable:4305)
|
|
# define SEP "\\"
|
|
# undef DrawText
|
|
#elif defined OS_WON32_MINGW
|
|
# include <dirent.h>
|
|
# include <GL/glext.h>
|
|
# define SEP "/"
|
|
#else // Assume Unix platform (Linux, Mac OS X, BSD, ...)
|
|
# include <unistd.h>
|
|
# include <sys/types.h>
|
|
# include <pwd.h>
|
|
# include <dirent.h>
|
|
# include <sys/time.h>
|
|
# include <GL/glx.h>
|
|
# define SEP "/"
|
|
#endif
|
|
|
|
// --------------------------------------------------------------------
|
|
// defines
|
|
// --------------------------------------------------------------------
|
|
|
|
#define USE_STENCIL_BUFFER
|
|
|
|
#include "version.h"
|
|
#define PROG_NAME "ETR"
|
|
#define PACKAGE "etr"
|
|
#define WINDOW_TITLE "Extreme Tux Racer " ETR_VERSION_STRING
|
|
|
|
using namespace std;
|
|
|
|
#include "etr_types.h"
|
|
#include "mathlib.h"
|
|
#include "common.h"
|
|
#include "game_config.h"
|
|
|
|
extern TGameData g_game;
|
|
|
|
#endif // BH_H
|