#include <errno.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <AL/al.h>
#include <AL/alc.h>
#include <AL/efx.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <vector>
#include <functional>
#include <thread>
#include <float.h>
#include "huffman.h"
#include "net.h"
#include "vector.h"
#include "matrix.h"
#include "quaternion.h"
#include "plane.h"
#include "types.h"
#include "md5_types.h"
#include "shadow_volume.h"
#include "hashtable.h"
#include "graph.h"
#include "md5.h"
#include "graphics.h"
#include "bspTypes.h"
#include "audio.h"
#include "frame.h"
#include "edge.h"
#include "bsp.h"
#include "trigger.h"
#include "projectile.h"
#include "light.h"
#include "portal_camera.h"
#include "speaker.h"
#include "model.h"
#include "md5model.h"
#include "rigidbody.h"
#include "player.h"
#include "sin_table.h"
#include "common.h"
#include "entity.h"
#include "shader.h"
#include "parse.h"
#include "menu.h"
#include "basegame.h"
#include "quake3.h"
#include "commando.h"
#include "terrain.h"
#include "isosphere.h"
#include "engine.h"
Go to the source code of this file.
|
bool | RayBoxSlab (vec3 &origin, vec3 &dir, vec3 &min, vec3 &max, float &distance) |
|
int | load_texture (Graphics &gfx, char *file_name, bool clamp, bool bgr, int anisotropic) |
|
int | load_texture_pk3 (Graphics &gfx, char *file_name, char **pk3_list, int num_pk3, bool clamp, bool bgr, int anisotropic) |
|
byte * | tga_24to32 (int width, int height, byte *pBits, bool bgr) |
|
float | abs32 (float val) |
|
int | abs32 (int val) |
|
double | fsin (double rad) |
|
double | fcos (double rad) |
|
int | debugf (const char *format,...) |
|
#define _HAS_EXCEPTIONS 0 |
#define APP_HASH "fac891919c0d02efdcf76b8c300ec63f" |
#define APP_NAME "altEngine" |
#define closesocket close |
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__) |
#define FALL_DAMAGE_VELOCITY 7.0f |
#define FBO_RESOLUTION 1024 |
#define GLX_GLXEXT_PROTOTYPES |
#define GRAVITY_SCALE 1.4f |
#define IMPACT_VELOCITY 4.0f |
#define INVALID_SOCKET -1 |
#define JUMPPAD_SCALE 0.015f |
#define MAX |
( |
|
x, |
|
|
|
y |
|
) |
| (x) > (y) ? (x) : (y) |
#define MIN |
( |
|
x, |
|
|
|
y |
|
) |
| (x) < (y) ? (x) : (y) |
#define MY_HALF_PI 1.5707963268f |
#define MY_PI 3.14159265359f |
#define RIGID_IMPACT 0.5f |
#define UNITS_TO_METERS (8.0f * 8.0f * 3.3f) |
int debugf |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
double fcos |
( |
double |
rad | ) |
|
double fsin |
( |
double |
rad | ) |
|
int load_texture |
( |
Graphics & |
gfx, |
|
|
char * |
file_name, |
|
|
bool |
clamp, |
|
|
bool |
bgr, |
|
|
int |
anisotropic |
|
) |
| |
int load_texture_pk3 |
( |
Graphics & |
gfx, |
|
|
char * |
file_name, |
|
|
char ** |
pk3_list, |
|
|
int |
num_pk3, |
|
|
bool |
clamp, |
|
|
bool |
bgr, |
|
|
int |
anisotropic |
|
) |
| |
bool RayBoxSlab |
( |
vec3 & |
origin, |
|
|
vec3 & |
dir, |
|
|
vec3 & |
min, |
|
|
vec3 & |
max, |
|
|
float & |
distance |
|
) |
| |
byte* tga_24to32 |
( |
int |
width, |
|
|
int |
height, |
|
|
byte * |
pBits, |
|
|
bool |
bgr |
|
) |
| |