Browse Source

ref: soft: minimize dependency on internal engine headers

pull/2/head
Alibek Omarov 2 years ago
parent
commit
fe9f3f78a0
  1. 3
      ref/soft/r_beams.c
  2. 1
      ref/soft/r_decals.c
  3. 2
      ref/soft/r_glblit.c
  4. 1
      ref/soft/r_local.h
  5. 1
      ref/soft/r_part.c
  6. 1
      ref/soft/r_sprite.c
  7. 2
      ref/soft/r_studio.c

3
ref/soft/r_beams.c

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

1
ref/soft/r_decals.c

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

2
ref/soft/r_glblit.c

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

1
ref/soft/r_local.h

@ -670,6 +670,7 @@ void TriEnd( void );
void TriTexCoord2f( float u, float v ); void TriTexCoord2f( float u, float v );
void TriVertex3fv( const float *v ); void TriVertex3fv( const float *v );
void TriVertex3f( float x, float y, float z ); 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 _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 );
void _TriColor4ub( byte r, byte g, byte b, byte a ); void _TriColor4ub( byte r, byte g, byte b, byte a );

1
ref/soft/r_part.c

@ -19,7 +19,6 @@ GNU General Public License for more details.
#include "entity_types.h" #include "entity_types.h"
#include "triangleapi.h" #include "triangleapi.h"
#include "pm_local.h" #include "pm_local.h"
#include "cl_tent.h"
#include "studio.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 }; 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 };

1
ref/soft/r_sprite.c

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

2
ref/soft/r_studio.c

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

Loading…
Cancel
Save