ref_vk: update RefAPI, make use of WorldToScreen rather than a stub

This commit is contained in:
Alibek Omarov 2021-10-30 23:09:32 +06:00 committed by Ivan Avdeev
parent 6dfcdbb38e
commit 2450803428
3 changed files with 5 additions and 9 deletions

View File

@ -413,11 +413,6 @@ static void TriVertex3f( float x, float y, float z )
{
PRINT_NOT_IMPLEMENTED();
}
static int TriWorldToScreen( const float *world, float *screen )
{
PRINT_NOT_IMPLEMENTED();
return 0;
}
static void TriFog( float flFogColor[3], float flStart, float flEnd, int bOn )
{
PRINT_NOT_IMPLEMENTED();
@ -534,6 +529,7 @@ ref_interface_t gReffuncs =
R_DrawTileClear,
CL_FillRGBA,
CL_FillRGBABlend,
R_WorldToScreen,
VID_ScreenShot,
VID_CubemapShot,
@ -620,7 +616,6 @@ ref_interface_t gReffuncs =
TriTexCoord2f,
TriVertex3fv,
TriVertex3f,
TriWorldToScreen,
TriFog,
R_ScreenToWorld,
TriGetMatrix,

View File

@ -28,6 +28,9 @@ void R_PopScene( void );
void R_NewMap( void );
void R_RenderScene( void );
int R_WorldToScreen( const vec3_t point, vec3_t screen );
int TriWorldToScreen( const float *world, float *screen );
// TODO should this be here?
int CL_FxBlend( struct cl_entity_s *e );
struct beam_s;

View File

@ -2,6 +2,7 @@
#include "vk_textures.h"
#include "vk_global.h"
#include "vk_render.h"
#include "vk_scene.h"
#include "sprite.h"
#include "xash3d_mathlib.h"
@ -613,9 +614,6 @@ static float R_SpriteGlowBlend( vec3_t origin, int rendermode, int renderfx, flo
return brightness;
}
// FIXME
int TriWorldToScreen( const float *world, float *screen );
// Do occlusion test for glow-sprites
qboolean R_SpriteOccluded( cl_entity_t *e, vec3_t origin, float *pscale )
{