[go: up one dir, main page]

Menu

[r21]: / include / nitrito.h  Maximize  Restore  History

Download this file

108 lines (89 with data), 1.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
/**
* Nitrito 3D
* Created:
* Last Modified: 28/03/06
*/
#ifndef _NITRITO_H_
#define _NITRITO_H_
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <AL/al.h>
#include <AL/alc.h>
#include <AL/alut.h>
#include <SDL/SDL.h>
#include <ode/ode.h>
#include <zzip/zzip.h>
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <deque>
#include "misc.h"
#include "input.h"
#include "obj.h"
#include "camera.h"
#include "world.h"
#include "coche.h"
#include "graphics.h"
#include "timer.h"
#include "font.h"
#include "obj.h"
#include "audio.h"
#include "console.h"
#include "editor.h"
#include "menu.h"
#include "race.h"
#include "sdl_rwops_zzip.h"
#define W_CLEAR 0
#define W_FOG 1
#define W_DENSE_FOG 2
#define W_NIGHT 3
#define BOOL bool
#define FALSE 0
#define TRUE 1
#define NVERSION "0.2-sombras"
class Options{
public:
bool done;
int screen_w,screen_h,bpp;
bool fullscreen;
int camera_mode;
int weather;
bool mipmaps;
float gravity;
bool tiempo_bala;
float view_far;
float view_close;
bool joystick;
int audio_rate;
float t_bala_time_speed;
float normal_time_speed;
unsigned int console_max_lines;
int num_coches;
bool motion_blur;
string data_path;
float music_vol;
float sfx_vol;
int texture_quality; // 1- high, 2- medium, 3- low
int shadows;
};
extern World *world;
extern Coche *coche;
extern Camera *cam;
extern Timer timer;
extern ObjLoader LoaderClass;
extern Speaker snd;
extern Options options;
extern Console console;
extern Menu menu;
extern Race race;
extern SDL_Surface *screen;
extern freetype::font_data font;
extern freetype::font_data font_big;
extern freetype::font_data console_font;
extern float gvar_1,gvar_2;
char* add_data_path(string filename);
void game_reset();
#endif