.h -> .hh
This commit is contained in:
parent
8e628ec884
commit
8833348ce2
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
extern int intel_texalpha_bug;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
extern vec hitsurface;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// client.cpp, mostly network related client game code
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
ENetHost *clienthost = NULL;
|
||||
ENetPeer *curpeer = NULL, *connpeer = NULL;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// command.cpp: implements the parsing and execution of a tiny script language which
|
||||
// is largely backwards compatible with the quake console language.
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
hashnameset<ident> idents; // contains ALL vars/commands/aliases
|
||||
vector<ident *> identmap;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// console.cpp: the console buffer, its display, and command line control
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
#define MAXCONLINES 1000
|
||||
struct cline { char *line; int type, outtime; };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
VARNP(dynlights, usedynlights, 0, 1, 1);
|
||||
VARP(dynlightdist, 0, 1024, 10000);
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
#ifndef __ENGINE_H__
|
||||
#define __ENGINE_H__
|
||||
|
||||
#include "cube.h"
|
||||
#include "world.h"
|
||||
#include "cube.hh"
|
||||
#include "world.hh"
|
||||
|
||||
#ifndef STANDALONE
|
||||
|
||||
#include "octa.h"
|
||||
#include "light.h"
|
||||
#include "texture.h"
|
||||
#include "bih.h"
|
||||
#include "model.h"
|
||||
#include "octa.hh"
|
||||
#include "light.hh"
|
||||
#include "texture.hh"
|
||||
#include "bih.hh"
|
||||
#include "model.hh"
|
||||
|
||||
extern dynent *player;
|
||||
extern physent *camera1; // special ent that acts as camera, same object as player1 in FPS mode
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
VARP(grass, 0, 1, 1);
|
||||
VAR(dbggrass, 0, 0, 1);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
CVAR1R(ambient, 0x191919);
|
||||
FVARR(ambientscale, 0, 1, 16);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// main.cpp: initialisation & main loop
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
extern void cleargamma();
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#define __FD_SETSIZE 4096
|
||||
#endif
|
||||
|
||||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
#include <signal.h>
|
||||
#include <enet/time.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
struct QuadNode
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
void notifywelcome()
|
||||
{
|
||||
|
|
|
@ -7,12 +7,7 @@
|
|||
// avidemux - ok - 3Apr09-RockKeyman:had to swap UV channels as it showed up blue
|
||||
// kino - ok
|
||||
|
||||
#include "engine.h"
|
||||
#ifdef __APPLE__
|
||||
#include "SDL2_mixer/SDL_mixer.h"
|
||||
#else
|
||||
#include "SDL_mixer.h"
|
||||
#endif
|
||||
#include "engine.hh"
|
||||
|
||||
VAR(dbgmovie, 0, 0, 1);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
struct normalkey
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// core world management routines
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
static struct emptycube : cube
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
extern int outline;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// octarender.cpp: fill vertex arrays with different cube surfaces.
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
struct vboinfo
|
||||
{
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// they "felt right", and have no basis in reality. Collision detection is simplistic but
|
||||
// very robust (uses discrete steps at fixed fps).
|
||||
|
||||
#include "engine.h"
|
||||
#include "mpr.h"
|
||||
#include "engine.hh"
|
||||
#include "mpr.hh"
|
||||
|
||||
const int MAXCLIPOFFSET = 4;
|
||||
const int MAXCLIPPLANES = 1024;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// rendergl.cpp: core opengl rendering stuff
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
bool hasVAO = false, hasTR = false, hasTSW = false, hasPBO = false, hasFBO = false, hasAFBO = false, hasDS = false, hasTF = false, hasCBF = false, hasS3TC = false, hasFXT1 = false, hasLATC = false, hasRGTC = false, hasAF = false, hasFBB = false, hasFBMS = false, hasTMS = false, hasMSS = false, hasFBMSBS = false, hasUBO = false, hasMBR = false, hasDB2 = false, hasDBB = false, hasTG = false, hasTQ = false, hasPF = false, hasTRG = false, hasTI = false, hasHFV = false, hasHFP = false, hasDBT = false, hasDC = false, hasDBGO = false, hasEGPU4 = false, hasGPU4 = false, hasGPU5 = false, hasBFE = false, hasEAL = false, hasCR = false, hasOQ2 = false, hasES3 = false, hasCB = false, hasCI = false;
|
||||
bool mesa = false, intel = false, amd = false, nvidia = false;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
int gw = -1, gh = -1, bloomw = -1, bloomh = -1, lasthdraccum = 0;
|
||||
GLuint gfbo = 0, gdepthtex = 0, gcolortex = 0, gnormaltex = 0, gglowtex = 0, gdepthrb = 0, gstencilrb = 0;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
VAR(oqdynent, 0, 1, 1);
|
||||
VAR(animationinterpolationtime, 0, 200, 1000);
|
||||
|
||||
model *loadingmodel = NULL;
|
||||
|
||||
#include "ragdoll.h"
|
||||
#include "animmodel.h"
|
||||
#include "vertmodel.h"
|
||||
#include "skelmodel.h"
|
||||
#include "hitzone.h"
|
||||
#include "ragdoll.hh"
|
||||
#include "animmodel.hh"
|
||||
#include "vertmodel.hh"
|
||||
#include "skelmodel.hh"
|
||||
#include "hitzone.hh"
|
||||
|
||||
static model *(__cdecl *modeltypes[NUMMODELTYPES])(const char *);
|
||||
|
||||
|
@ -26,12 +26,12 @@ static model *__loadmodel__##modelclass(const char *filename) \
|
|||
} \
|
||||
UNUSED static int __dummy__##modelclass = addmodeltype((modeltype), __loadmodel__##modelclass);
|
||||
|
||||
#include "md2.h"
|
||||
#include "md3.h"
|
||||
#include "md5.h"
|
||||
#include "obj.h"
|
||||
#include "smd.h"
|
||||
#include "iqm.h"
|
||||
#include "md2.hh"
|
||||
#include "md3.hh"
|
||||
#include "md5.hh"
|
||||
#include "obj.hh"
|
||||
#include "smd.hh"
|
||||
#include "iqm.hh"
|
||||
|
||||
MODELTYPE(MDL_MD2, md2);
|
||||
MODELTYPE(MDL_MD3, md3);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// renderparticles.cpp
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
Shader *particleshader = NULL, *particlenotextureshader = NULL, *particlesoftshader = NULL, *particletextshader = NULL;
|
||||
|
||||
|
@ -825,9 +825,9 @@ typedef varenderer<PT_PART> quadrenderer;
|
|||
typedef varenderer<PT_TAPE> taperenderer;
|
||||
typedef varenderer<PT_TRAIL> trailrenderer;
|
||||
|
||||
#include "explosion.h"
|
||||
#include "lensflare.h"
|
||||
#include "lightning.h"
|
||||
#include "explosion.hh"
|
||||
#include "lensflare.hh"
|
||||
#include "lightning.hh"
|
||||
|
||||
struct softquadrenderer : quadrenderer
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
Texture *sky[6] = { 0, 0, 0, 0, 0, 0 }, *clouds[6] = { 0, 0, 0, 0, 0, 0 };
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
static hashnameset<font> fonts;
|
||||
static font *fontdef = NULL;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// renderva.cpp: handles the occlusion and rendering of vertex arrays
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
static inline void drawtris(GLsizei numindices, const GLvoid *indices, ushort minvert, ushort maxvert)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// server.cpp: little more than enhanced multicaster
|
||||
// runs dedicated or as client coroutine
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
#define LOGSTRLEN 512
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
struct resolverthread
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// shader.cpp: OpenGL GLSL shader management
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
Shader *Shader::lastshader = NULL;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
struct stainvert
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// texture.cpp: texture slot management
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include "SDL2_image/SDL_image.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "engine.h"
|
||||
#include "textedit.h"
|
||||
#include "engine.hh"
|
||||
#include "textedit.hh"
|
||||
|
||||
namespace UI
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
#define NUMCAUSTICS 32
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// world.cpp: core map management stuff
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
VARR(mapversion, 1, MAPVERSION, 0);
|
||||
VARNR(mapscale, worldscale, 1, 0, 0);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// worldio.cpp: loading & saving of maps and savegames
|
||||
|
||||
#include "engine.h"
|
||||
#include "engine.hh"
|
||||
|
||||
void validmapname(char *dst, const char *src, const char *prefix = NULL, const char *alt = "untitled", size_t maxlen = 100)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
extern int fog;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace game
|
||||
{
|
||||
|
@ -122,7 +122,7 @@ namespace game
|
|||
if(dead) gle::end();
|
||||
}
|
||||
|
||||
#include "ctf.h"
|
||||
#include "ctf.hh"
|
||||
|
||||
clientmode *cmode = NULL;
|
||||
ctfclientmode ctfmode;
|
||||
|
@ -1938,7 +1938,7 @@ namespace game
|
|||
}
|
||||
|
||||
#define PARSEMESSAGES 1
|
||||
#include "ctf.h"
|
||||
#include "ctf.hh"
|
||||
#undef PARSEMESSAGES
|
||||
|
||||
case N_NEWMAP:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace entities
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace game
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __GAME_H__
|
||||
#define __GAME_H__
|
||||
|
||||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
// animations
|
||||
|
||||
|
@ -280,7 +280,7 @@ static const struct guninfo { const char *name, *file, *vwep; int attacks[NUMACT
|
|||
{ "pulse rifle", "pulserifle", "worldgun/pulserifle", { -1, ATK_PULSE_SHOOT, ATK_PULSE_MELEE } }
|
||||
};
|
||||
|
||||
#include "ai.h"
|
||||
#include "ai.hh"
|
||||
|
||||
// inherited by gameent and server clients
|
||||
struct gamestate
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace game
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// creation of scoreboard
|
||||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace game
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace game
|
||||
{
|
||||
|
@ -839,7 +839,7 @@ namespace server
|
|||
};
|
||||
|
||||
#define SERVMODE 1
|
||||
#include "ctf.h"
|
||||
#include "ctf.hh"
|
||||
|
||||
ctfservmode ctfmode;
|
||||
servmode *smode = NULL;
|
||||
|
@ -3539,7 +3539,7 @@ namespace server
|
|||
break;
|
||||
|
||||
#define PARSEMESSAGES 1
|
||||
#include "ctf.h"
|
||||
#include "ctf.hh"
|
||||
#undef PARSEMESSAGES
|
||||
|
||||
case -1:
|
||||
|
@ -3571,7 +3571,7 @@ namespace server
|
|||
int masterport() { return TESSERACT_MASTER_PORT; }
|
||||
int numchannels() { return 3; }
|
||||
|
||||
#include "extinfo.h"
|
||||
#include "extinfo.hh"
|
||||
|
||||
void serverinforeply(ucharbuf &req, ucharbuf &p)
|
||||
{
|
||||
|
@ -3600,6 +3600,6 @@ namespace server
|
|||
|
||||
int protocolversion() { return PROTOCOL_VERSION; }
|
||||
|
||||
#include "aiman.h"
|
||||
#include "aiman.hh"
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
extern selinfo sel;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// weapon.cpp: all shooting and effects code, projectile management
|
||||
#include "game.h"
|
||||
#include "game.hh"
|
||||
|
||||
namespace game
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
///////////////////////// cryptography /////////////////////////////////
|
||||
|
||||
|
|
|
@ -53,18 +53,18 @@
|
|||
|
||||
#include <zlib.h>
|
||||
|
||||
#include "tools.h"
|
||||
#include "geom.h"
|
||||
#include "ents.h"
|
||||
#include "command.h"
|
||||
#include "tools.hh"
|
||||
#include "geom.hh"
|
||||
#include "ents.hh"
|
||||
#include "command.hh"
|
||||
|
||||
#ifndef STANDALONE
|
||||
#include "glexts.h"
|
||||
#include "glemu.h"
|
||||
#include "glexts.hh"
|
||||
#include "glemu.hh"
|
||||
#endif
|
||||
|
||||
#include "iengine.h"
|
||||
#include "igame.h"
|
||||
#include "iengine.hh"
|
||||
#include "igame.hh"
|
||||
|
||||
#endif
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
static inline double det2x2(double a, double b, double c, double d) { return a*d - b*c; }
|
||||
static inline double det3x3(double a1, double a2, double a3,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
extern int glversion;
|
||||
extern int intel_mapbufferrange_bug;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
///////////////////////// character conversion ///////////////
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// implementation of generic tools
|
||||
|
||||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
void *operator new(size_t size)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "cube.h"
|
||||
#include "cube.hh"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue