.h -> .hh

This commit is contained in:
q66 2020-04-16 20:28:40 +02:00
parent 8e628ec884
commit 8833348ce2
88 changed files with 90 additions and 95 deletions

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
extern int intel_texalpha_bug;

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
extern vec hitsurface;

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
enum
{

View file

@ -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;

View file

@ -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;

View file

@ -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; };

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
VARNP(dynlights, usedynlights, 0, 1, 1);
VARP(dynlightdist, 0, 1024, 10000);

View file

@ -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

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
VARP(grass, 0, 1, 1);
VAR(dbggrass, 0, 0, 1);

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
CVAR1R(ambient, 0x191919);
FVARR(ambientscale, 0, 1, 16);

View file

@ -1,6 +1,6 @@
// main.cpp: initialisation & main loop
#include "engine.h"
#include "engine.hh"
extern void cleargamma();

View file

@ -6,7 +6,7 @@
#define __FD_SETSIZE 4096
#endif
#include "cube.h"
#include "cube.hh"
#include <signal.h>
#include <enet/time.h>

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
struct QuadNode
{

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
void notifywelcome()
{

View file

@ -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);

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
struct normalkey
{

View file

@ -1,6 +1,6 @@
// core world management routines
#include "engine.h"
#include "engine.hh"
static struct emptycube : cube
{

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
extern int outline;

View file

@ -1,6 +1,6 @@
// octarender.cpp: fill vertex arrays with different cube surfaces.
#include "engine.h"
#include "engine.hh"
struct vboinfo
{

View file

@ -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;

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
enum
{

View file

@ -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;

View file

@ -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;

View file

@ -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);

View file

@ -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
{

View file

@ -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 };

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
static hashnameset<font> fonts;
static font *fontdef = NULL;

View file

@ -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)
{

View file

@ -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

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
struct resolverthread
{

View file

@ -1,6 +1,6 @@
// shader.cpp: OpenGL GLSL shader management
#include "engine.h"
#include "engine.hh"
Shader *Shader::lastshader = NULL;

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
struct stainvert
{

View file

@ -1,6 +1,6 @@
// texture.cpp: texture slot management
#include "engine.h"
#include "engine.hh"
#ifdef __APPLE__
#include "SDL2_image/SDL_image.h"

View file

@ -1,5 +1,5 @@
#include "engine.h"
#include "textedit.h"
#include "engine.hh"
#include "textedit.hh"
namespace UI
{

View file

@ -1,4 +1,4 @@
#include "engine.h"
#include "engine.hh"
#define NUMCAUSTICS 32

View file

@ -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);

View file

@ -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)
{

View file

@ -1,4 +1,4 @@
#include "game.h"
#include "game.hh"
extern int fog;

View file

@ -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:

View file

@ -1,4 +1,4 @@
#include "game.h"
#include "game.hh"
namespace entities
{

View file

@ -1,4 +1,4 @@
#include "game.h"
#include "game.hh"
namespace game
{

View file

@ -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

View file

@ -1,4 +1,4 @@
#include "game.h"
#include "game.hh"
namespace game
{

View file

@ -1,5 +1,5 @@
// creation of scoreboard
#include "game.h"
#include "game.hh"
namespace game
{

View file

@ -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"
}

View file

@ -1,4 +1,4 @@
#include "game.h"
#include "game.hh"
extern selinfo sel;

View file

@ -1,5 +1,5 @@
// weapon.cpp: all shooting and effects code, projectile management
#include "game.h"
#include "game.hh"
namespace game
{

View file

@ -1,4 +1,4 @@
#include "cube.h"
#include "cube.hh"
///////////////////////// cryptography /////////////////////////////////

View file

@ -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

View file

@ -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,

View file

@ -1,4 +1,4 @@
#include "cube.h"
#include "cube.hh"
extern int glversion;
extern int intel_mapbufferrange_bug;

View file

@ -1,4 +1,4 @@
#include "cube.h"
#include "cube.hh"
///////////////////////// character conversion ///////////////

View file

@ -1,6 +1,6 @@
// implementation of generic tools
#include "cube.h"
#include "cube.hh"
void *operator new(size_t size)
{

View file

@ -1,4 +1,4 @@
#include "cube.h"
#include "cube.hh"
enum
{