change file extensions to follow convention

Daniel Kolesa 2018-10-28 23:22:02 +01:00
parent 5fc5c37873
commit 62c2b8149f
98 changed files with 162 additions and 162 deletions

View File

@ -1,55 +1,55 @@
client_src = [
'../shared/crypto.cpp',
'../shared/geom.cpp',
'../shared/glemu.cpp',
'../shared/stream.cpp',
'../shared/tools.cpp',
'../shared/zip.cpp',
'../engine/aa.cpp',
'../engine/bih.cpp',
'../engine/blend.cpp',
'../engine/client.cpp',
'../engine/command.cpp',
'../engine/console.cpp',
'../engine/dynlight.cpp',
'../engine/grass.cpp',
'../engine/light.cpp',
'../engine/main.cpp',
'../engine/material.cpp',
'../engine/menus.cpp',
'../engine/movie.cpp',
'../engine/normal.cpp',
'../engine/octa.cpp',
'../engine/octaedit.cpp',
'../engine/octarender.cpp',
'../engine/physics.cpp',
'../engine/pvs.cpp',
'../engine/rendergl.cpp',
'../engine/renderlights.cpp',
'../engine/rendermodel.cpp',
'../engine/renderparticles.cpp',
'../engine/rendersky.cpp',
'../engine/rendertext.cpp',
'../engine/renderva.cpp',
'../engine/server.cpp',
'../engine/serverbrowser.cpp',
'../engine/shader.cpp',
'../engine/sound.cpp',
'../engine/stain.cpp',
'../engine/texture.cpp',
'../engine/ui.cpp',
'../engine/water.cpp',
'../engine/world.cpp',
'../engine/worldio.cpp',
'../game/ai.cpp',
'../game/client.cpp',
'../game/entities.cpp',
'../game/game.cpp',
'../game/render.cpp',
'../game/scoreboard.cpp',
'../game/server.cpp',
'../game/waypoint.cpp',
'../game/weapon.cpp'
'../shared/crypto.cc',
'../shared/geom.cc',
'../shared/glemu.cc',
'../shared/stream.cc',
'../shared/tools.cc',
'../shared/zip.cc',
'../engine/aa.cc',
'../engine/bih.cc',
'../engine/blend.cc',
'../engine/client.cc',
'../engine/command.cc',
'../engine/console.cc',
'../engine/dynlight.cc',
'../engine/grass.cc',
'../engine/light.cc',
'../engine/main.cc',
'../engine/material.cc',
'../engine/menus.cc',
'../engine/movie.cc',
'../engine/normal.cc',
'../engine/octa.cc',
'../engine/octaedit.cc',
'../engine/octarender.cc',
'../engine/physics.cc',
'../engine/pvs.cc',
'../engine/rendergl.cc',
'../engine/renderlights.cc',
'../engine/rendermodel.cc',
'../engine/renderparticles.cc',
'../engine/rendersky.cc',
'../engine/rendertext.cc',
'../engine/renderva.cc',
'../engine/server.cc',
'../engine/serverbrowser.cc',
'../engine/shader.cc',
'../engine/sound.cc',
'../engine/stain.cc',
'../engine/texture.cc',
'../engine/ui.cc',
'../engine/water.cc',
'../engine/world.cc',
'../engine/worldio.cc',
'../game/ai.cc',
'../game/client.cc',
'../game/entities.cc',
'../game/game.cc',
'../game/render.cc',
'../game/scoreboard.cc',
'../game/server.cc',
'../game/waypoint.cc',
'../game/weapon.cc'
]
threads_dep = dependency('threads')

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,7 +7,7 @@
// avidemux - ok - 3Apr09-RockKeyman:had to swap UV channels as it showed up blue
// kino - ok
#include "engine.h"
#include "engine.hh"
#ifdef __APPLE__
#include "SDL2_mixer/SDL_mixer.h"
#else

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

@ -0,0 +1,2 @@
#include "engine.hh"

View File

@ -1,2 +0,0 @@
#include "engine.h"

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 hasS3TC = false, hasFXT1 = false, hasLATC = false, hasAF = false, hasFBMSBS = false, hasDBT = false, hasDBGO = false, hasES3 = 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
@ -739,7 +739,7 @@ void localconnect()
#endif
#ifdef WIN32
#include "shellapi.h"
#include "shellapi.hh"
#define IDI_ICON1 1

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,6 +1,6 @@
// sound.cpp: basic positional sound using sdl_mixer
#include "engine.h"
#include "engine.hh"
#ifdef __APPLE__
#include "SDL2_mixer/SDL_mixer.h"

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;
@ -1917,7 +1917,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

2
src/game/pch.cc 100644
View File

@ -0,0 +1,2 @@
#include "game.hh"

View File

@ -1,2 +0,0 @@
#include "game.h"

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;
@ -3532,7 +3532,7 @@ namespace server
break;
#define PARSEMESSAGES 1
#include "ctf.h"
#include "ctf.hh"
#undef PARSEMESSAGES
case -1:
@ -3564,7 +3564,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)
{
@ -3593,6 +3593,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,9 +1,9 @@
client_src = [
'../shared/crypto.cpp',
'../shared/stream.cpp',
'../shared/tools.cpp',
'../engine/command.cpp',
'../engine/master.cpp'
'../shared/crypto.cc',
'../shared/stream.cc',
'../shared/tools.cc',
'../engine/command.cc',
'../engine/master.cc'
]
threads_dep = dependency('threads')

View File

@ -1,12 +1,12 @@
client_src = [
'../shared/crypto.cpp',
'../shared/stream.cpp',
'../shared/tools.cpp',
'../engine/command.cpp',
'../engine/server.cpp',
'../engine/worldio.cpp',
'../game/entities.cpp',
'../game/server.cpp'
'../shared/crypto.cc',
'../shared/stream.cc',
'../shared/tools.cc',
'../engine/command.cc',
'../engine/server.cc',
'../engine/worldio.cc',
'../game/entities.cc',
'../game/server.cc'
]
threads_dep = dependency('threads')

View File

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

View File

@ -24,7 +24,7 @@
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0500
#include "windows.h"
#include "windows.hh"
#ifndef _WINDOWS
#define _WINDOWS
#endif
@ -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"
namespace gle
{

View File

@ -0,0 +1 @@
#include "cube.hh"

View File

@ -1 +0,0 @@
#include "cube.h"

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
{