ref: soft: minimize dependency on internal engine headers

This commit is contained in:
Alibek Omarov 2022-09-10 20:06:24 +03:00
parent 327eb330ed
commit fe9f3f78a0
7 changed files with 3 additions and 8 deletions

View File

@ -19,9 +19,8 @@ GNU General Public License for more details.
#include "entity_types.h"
#include "triangleapi.h"
#include "customentity.h"
#include "cl_tent.h"
#include "pm_local.h"
#include "triangleapi.h"
#include "studio.h"
#define NOISE_DIVISIONS 64 // don't touch - many tripmines cause the crash when it equal 128

View File

@ -14,7 +14,6 @@ GNU General Public License for more details.
*/
#include "r_local.h"
//#include "cl_tent.h"
#define DECAL_OVERLAP_DISTANCE 2
#define DECAL_DISTANCE 4 // too big values produce more clipped polygons

View File

@ -1,6 +1,6 @@
#include "r_local.h"
#define APIENTRY_LINKAGE static
#include "../ref_gl/gl_export.h"
#include "../gl/gl_export.h"
struct swblit_s
{

View File

@ -670,6 +670,7 @@ void TriEnd( void );
void TriTexCoord2f( float u, float v );
void TriVertex3fv( const float *v );
void TriVertex3f( float x, float y, float z );
void TriColor4f( float r, float g, float b, float a );
void _TriColor4f( float r, float g, float b, float a );
void TriColor4ub( byte r, byte g, byte b, byte a );
void _TriColor4ub( byte r, byte g, byte b, byte a );

View File

@ -19,7 +19,6 @@ GNU General Public License for more details.
#include "entity_types.h"
#include "triangleapi.h"
#include "pm_local.h"
#include "cl_tent.h"
#include "studio.h"
static float gTracerSize[11] = { 1.5f, 0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f };

View File

@ -18,7 +18,6 @@ GNU General Public License for more details.
#include "sprite.h"
#include "studio.h"
#include "entity_types.h"
//#include "cl_tent.h"
// it's a Valve default value for LoadMapSprite (probably must be power of two)
#define MAPSPRITE_SIZE 128

View File

@ -20,8 +20,6 @@ GNU General Public License for more details.
#include "triangleapi.h"
#include "studio.h"
#include "pm_local.h"
//#include "cl_tent.h"
//#include "client.h"
#include "pmtrace.h"
#define EVENT_CLIENT 5000 // less than this value it's a server-side studio events