ref: render code moved out of engine, doesn't compile, first API prototype

This commit is contained in:
Alibek Omarov
2019-02-18 21:25:26 +03:00
parent bccc0e63d5
commit 99bd7c81da
79 changed files with 2320 additions and 3467 deletions
+3 -2
View File
@@ -16,6 +16,7 @@ GNU General Public License for more details.
#include "common.h"
#include "mathlib.h"
#include "pm_local.h"
#include "ref_common.h"
// expand debugging BBOX particle hulls by this many units.
#define BOX_GAP 0.0f
@@ -41,7 +42,7 @@ void PM_ParticleLine( const vec3_t start, const vec3_t end, int pcolor, float li
while( curdist <= len )
{
VectorMA( start, curdist, diff, pos );
CL_Particle( pos, pcolor, life, 0, zvel );
ref.dllFuncs.CL_Particle( pos, pcolor, life, 0, zvel );
curdist += 2.0f;
}
#endif // XASH_DEDICATED
@@ -89,4 +90,4 @@ void PM_DrawBBox( const vec3_t mins, const vec3_t maxs, const vec3_t origin, int
PM_DrawRectangle( p[boxpnt[i][1]], p[boxpnt[i][0]], p[boxpnt[i][2]], p[boxpnt[i][3]], pcolor, life );
}
#endif // XASH_DEDICATED
}
}