From efc156fcf583f074a6d46d5ee9eff1d96192b6a1 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 30 Oct 2021 21:49:27 +0600 Subject: [PATCH] engine: ref_api: purposefully moved WorldToScreen to 2D functions from TriAPI, since WorldToScreen is expected to be simpler in-engine version rather than TriAPI one --- engine/ref_api.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/ref_api.h b/engine/ref_api.h index 6bcfaef1..e71888d2 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -474,7 +474,6 @@ typedef struct ref_interface_s void (*GL_ProcessTexture)( int texnum, float gamma, int topColor, int bottomColor ); void (*R_SetupSky)( const char *skyname ); - // 2D void (*R_Set2DMode)( qboolean enable ); void (*R_DrawStretchRaw)( float x, float y, float w, float h, int cols, int rows, const byte *data, qboolean dirty ); @@ -482,6 +481,7 @@ typedef struct ref_interface_s void (*R_DrawTileClear)( int texnum, int x, int y, int w, int h ); void (*FillRGBA)( float x, float y, float w, float h, int r, int g, int b, int a ); // in screen space void (*FillRGBABlend)( float x, float y, float w, float h, int r, int g, int b, int a ); // in screen space + int (*WorldToScreen)( const vec3_t world, vec3_t screen ); // Returns 1 if it's z clipped // screenshot, cubemapshot qboolean (*VID_ScreenShot)( const char *filename, int shot_type ); @@ -595,7 +595,6 @@ typedef struct ref_interface_s void (*TexCoord2f)( float u, float v ); void (*Vertex3fv)( const float *worldPnt ); void (*Vertex3f)( float x, float y, float z ); - int (*WorldToScreen)( const float *world, float *screen ); // Returns 1 if it's z clipped void (*Fog)( float flFogColor[3], float flStart, float flEnd, int bOn ); //Works just like GL_FOG, flFogColor is r/g/b. void (*ScreenToWorld)( const float *screen, float *world ); void (*GetMatrix)( const int pname, float *matrix );