mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: ref_api: change RefGetParm return type to intptr_t, bump RefAPI version
This commit is contained in:
@@ -614,7 +614,7 @@ void GAME_EXPORT Mod_LoadCacheFile( const char *filename, cache_user_t *cu )
|
||||
#if XASH_BIG_ENDIAN
|
||||
if( size >= sizeof( int ) && LittleLong( IDSEQGRPHEADER ) == *(uint *)cu->data )
|
||||
{
|
||||
studiohdr_t *phdr = (studiohdr_t *)(intptr_t)REF_GET_PARM( PARM_GET_STUDIO_HDR, 0 );
|
||||
studiohdr_t *phdr = (studiohdr_t *)REF_GET_PARM( PARM_GET_STUDIO_HDR, 0 );
|
||||
if( !phdr )
|
||||
return;
|
||||
|
||||
|
||||
@@ -72,7 +72,8 @@ GNU General Public License for more details.
|
||||
// Moved RenderAPI and TriAPI filling to renderer via R_FillRenderAPI and R_FillTriAPI
|
||||
// Moved detail textures parsing and cinematic texture management to engine
|
||||
// Moved creation of default textures to the engine
|
||||
#define REF_API_VERSION 15
|
||||
// 16. RefGetParm return type changed from int to intptr_t.
|
||||
#define REF_API_VERSION 16
|
||||
|
||||
#define TF_SKY (TF_SKYSIDE|TF_NOMIPMAP|TF_ALLOW_NEAREST)
|
||||
#define TF_FONT (TF_NOMIPMAP|TF_CLAMP|TF_ALLOW_NEAREST)
|
||||
@@ -599,7 +600,7 @@ typedef struct ref_interface_s
|
||||
void (*CL_DrawBeams)( int fTrans , BEAM *beams );
|
||||
|
||||
// Xash3D Render Interface
|
||||
int (*RefGetParm)( int parm, int arg ); // generic
|
||||
intptr_t (*RefGetParm)( int parm, int arg ); // generic
|
||||
|
||||
// detail texture scale
|
||||
void (*R_GetDetailScaleForTexture)( int texture, float *xScale, float *yScale );
|
||||
|
||||
@@ -161,7 +161,7 @@ static qboolean Mod_ProcessRenderData( model_t *mod, qboolean create, const byte
|
||||
return loaded;
|
||||
}
|
||||
|
||||
static int GL_RefGetParm( int parm, int arg )
|
||||
static intptr_t GL_RefGetParm( int parm, int arg )
|
||||
{
|
||||
gl_texture_t *glt;
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ static void CL_DrawBeams( int fTrans, BEAM *beams )
|
||||
;
|
||||
}
|
||||
|
||||
static int RefGetParm( int parm, int arg )
|
||||
static intptr_t RefGetParm( int parm, int arg )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ static qboolean GAME_EXPORT Mod_ProcessRenderData( model_t *mod, qboolean create
|
||||
return loaded;
|
||||
}
|
||||
|
||||
static int GL_RefGetParm( int parm, int arg )
|
||||
static intptr_t GL_RefGetParm( int parm, int arg )
|
||||
{
|
||||
image_t *glt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user