public: rename mathlib to xash3d_mathlib.

This commit is contained in:
Andrey Akhmichin 2020-02-10 15:07:06 +05:00
parent 49445f0663
commit e3b547c8a9
40 changed files with 46 additions and 44 deletions

View File

@ -18,7 +18,7 @@ GNU General Public License for more details.
#include "studio.h"
#include "world.h" // BOX_ON_PLANE_SIDE
#include "client.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
/*
===============================================================================

View File

@ -17,7 +17,7 @@ GNU General Public License for more details.
#define CLIENT_H
#include "xash3d_types.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "cdll_int.h"
#include "menu_int.h"
#include "cl_entity.h"

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "common.h"
#include "client.h"
#include "mod_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "world.h"

View File

@ -18,7 +18,7 @@ GNU General Public License for more details.
extern byte *sndpool;
#include "mathlib.h"
#include "xash3d_mathlib.h"
// sound engine rate defines
#define SOUND_DMA_SPEED 44100 // hardware playback rate

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "common.h"
#include "studio.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "const.h"
#include "client.h"
#include "library.h"

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#if XASH_DEDICATED
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "ref_api.h"
ref_globals_t refState;

View File

@ -32,7 +32,7 @@ GNU General Public License for more details.
#include "wadfile.h"
#include "filesystem.h"
#include "library.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "protocol.h"
#define FILE_COPY_SIZE (1024 * 1024)

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif

View File

@ -36,7 +36,7 @@ GNU General Public License for more details.
#include "netchan.h"
#include "protocol.h"
#include "mod_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "input.h"
#include "enginefeatures.h"
#include "render_api.h" // decallist_t

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "imagelib.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#define BI_SIZE 40 //size of bitmap info header.
#if !XASH_WIN32

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "imagelib.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
qboolean Image_CheckDXT3Alpha( dds_t *hdr, byte *fin )
{

View File

@ -16,7 +16,7 @@ GNU General Public License for more details.
#define MINIZ_HEADER_FILE_ONLY
#include "miniz.h"
#include "imagelib.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#if defined(XASH_NO_NETWORK)
#include "platform/stub/net_stub.h"

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "imagelib.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
/*
=============

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "imagelib.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "mod_local.h"
#define LERPBYTE( i ) r = resamplerow1[i]; out[i] = (byte)(((( resamplerow2[i] - r ) * lerp)>>16 ) + r )

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "imagelib.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "wadfile.h"
#include "studio.h"
#include "sprite.h"

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "common.h"
#include "mod_local.h"
#include "sprite.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "alias.h"
#include "studio.h"
#include "wadfile.h"

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "common.h"
#include "mod_local.h"
#include "sprite.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "alias.h"
#include "studio.h"
#include "wadfile.h"

View File

@ -16,7 +16,7 @@ GNU General Public License for more details.
#include "common.h"
#include "protocol.h"
#include "net_buffer.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
//#define DEBUG_NET_MESSAGES_SEND
//#define DEBUG_NET_MESSAGES_READ

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "common.h"
#include "netchan.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "net_encode.h"
#include "protocol.h"

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "common.h"
#include "netchan.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "net_encode.h"
#include "event_api.h"
#include "usercmd.h"

View File

@ -16,7 +16,7 @@ GNU General Public License for more details.
#include "common.h"
#include "client.h" // ConnectionProgress
#include "netchan.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#if XASH_WIN32
// Winsock
#include <WS2tcpip.h>

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "pm_local.h"
#if !XASH_DEDICATED
#include "client.h" // CL_Particle

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "pm_local.h"
#include "ref_common.h"

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "mod_local.h"
#include "pm_local.h"
#include "pm_movevars.h"

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "platform/platform.h"
#include <stdlib.h>

View File

@ -17,7 +17,7 @@ GNU General Public License for more details.
#include "world.h"
#include "pm_defs.h"
#include "mod_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "studio.h"
// just for debug

View File

@ -16,7 +16,7 @@ GNU General Public License for more details.
#ifndef SERVER_H
#define SERVER_H
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "edict.h"
#include "eiface.h"
#include "physint.h" // physics interface

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "common.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "server.h"
#include "const.h"
#include "pm_defs.h"

View File

@ -17,7 +17,7 @@ GNU General Public License for more details.
#include "xash3d_types.h"
#include "const.h"
#include "com_model.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
const matrix3x4 matrix3x4_identity =
{

View File

@ -1,5 +1,5 @@
/*
mathlib.c - internal mathlib
xash3d_mathlib.c - internal mathlib
Copyright (C) 2010 Uncle Mike
This program is free software: you can redistribute it and/or modify
@ -16,7 +16,7 @@ GNU General Public License for more details.
#include "xash3d_types.h"
#include "const.h"
#include "com_model.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "eiface.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
@ -874,3 +874,4 @@ int BoxOnPlaneSide( const vec3_t emins, const vec3_t emaxs, const mplane_t *p )
return sides;
}

View File

@ -1,5 +1,5 @@
/*
mathlib.h - base math functions
xash3d_mathlib.h - base math functions
Copyright (C) 2007 Uncle Mike
This program is free software: you can redistribute it and/or modify
@ -13,8 +13,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef MATHLIB_H
#define MATHLIB_H
#ifndef XASH3D_MATHLIB_H
#define XASH3D_MATHLIB_H
#include <math.h>
#if HAVE_TGMATH_H
@ -227,4 +227,5 @@ extern const matrix3x4 matrix3x4_identity;
extern const matrix4x4 matrix4x4_identity;
extern const float m_bytenormals[NUMVERTEXNORMALS][3];
#endif//MATHLIB_H
#endif // XASH3D_MATHLIB_H

View File

@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "const.h"
#include "r_studioint.h"
#include "triangleapi.h"

View File

@ -15,7 +15,7 @@ GNU General Public License for more details.
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
char r_speeds_msg[MAX_SYSPATH];
ref_speeds_t r_stats; // r_speeds counters

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
void GL_FrustumEnablePlane( gl_frustum_t *out, int side )
{

View File

@ -26,7 +26,7 @@ GNU General Public License for more details.
#include "dlight.h"
#include "gl_frustum.h"
#include "ref_api.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "ref_params.h"
#include "enginefeatures.h"
#include "com_strings.h"

View File

@ -16,7 +16,7 @@ GNU General Public License for more details.
#include "gl_local.h"
#include "pm_local.h"
#include "studio.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "ref_params.h"
/*

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "library.h"
#include "beamdef.h"
#include "particledef.h"

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
/*
========================================================================

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "mod_local.h"
typedef struct

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "gl_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "const.h"
#include "r_studioint.h"
#include "triangleapi.h"