Logo Search packages:      
Sourcecode: zaz version File versions  Download package

common.h

/*
 * Zaz
 * Copyright (C) Remigiusz Dybka 2009 <remigiusz.dybka@gmail.com>
 *
 Zaz 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 3 of the License, or
 (at your option) any later version.

 Zaz 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, see <http://www.gnu.org/licenses/>.
 */

#pragma once
#ifndef __COMMON_H__

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#ifdef WIN32
#include <windows.h>
#include <direct.h>
typedef unsigned int uint;
typedef unsigned long ulong;
#pragma warning(disable:4996)
#endif

#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <SDL/SDL.h>
#include <FTGL/ftgl.h>
#include <GL/gl.h>

#include "gettext.h"
#include "error.h"
#include "settings.h"
#include "hiscores.h"

extern SDL_Surface *screen;
extern FTFont *font;
extern FTFont *font2;
extern FTFont *font3;
extern FTFont *font4;

extern Scenes::Settings settings;
extern Scenes::HiScores hiScores;
extern bool wantReinit;
extern SDL_Rect **screenModes;
void Strip(string &str);

#define PI 3.1415926535

#define iround(x) floor((x)+0.5)

#define _(string) gettext(string)

#define __COMMON_H__
#endif // __COMMON_H__

Generated by  Doxygen 1.6.0   Back to index