Skip to content

Commit

Permalink
ref: null: update to RefAPI 8
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Jun 11, 2024
1 parent daae4f2 commit 3f66f6a
Showing 1 changed file with 15 additions and 50 deletions.
65 changes: 15 additions & 50 deletions ref/null/r_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ static void R_SimpleStub( void )
;
}

static void R_SimpleStubInt( int )
static void R_SimpleStubInt( int unused )
{
;
}

static void R_SimpleStubUInt( unsigned int )
static void R_SimpleStubUInt( unsigned int unused )
{
;
}

static void R_SimpleStubBool( qboolean )
static void R_SimpleStubBool( qboolean unused )
{
;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ static void GL_ProcessTexture( int texnum, float gamma, int topColor, int bottom
;
}

static void R_SetupSky( const char *skyname )
static void R_SetupSky( int *skytextures )
{
;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ static void R_StudioLerpMovement( cl_entity_t *e, double time, vec3_t origin, ve
;
}

static void R_InitSkyClouds( struct mip_s *mt, struct texture_s *tx, qboolean custom_palette )
static void R_SetSkyCloudsTextures( int solidskyTexture, int alphaskyTexture )
{
;
}
Expand Down Expand Up @@ -295,6 +295,11 @@ static int GL_CreateTextureArray( const char *name, int width, int height, int d
return 0;
}

static void R_OverrideTextureSourceSize( unsigned int textnum, unsigned int srcWidth, unsigned int srcHeight )
{

}

static void DrawSingleDecal( struct decal_s *pDecal, struct msurface_s *fa )
{
;
Expand Down Expand Up @@ -426,46 +431,16 @@ static void CullFace( TRICULLSTYLE mode )
;
}

static void VGUI_SetupDrawing( int *pColor )
{
;
}

static void VGUI_EnableTexture( qboolean enable )
static void VGUI_SetupDrawing( qboolean rect )
{
;
}

static void VGUI_CreateTexture( int id, int width, int height )
static void VGUI_UploadTextureBlock( int drawX, int drawY, const byte *rgba, int blockWidth, int blockHeight )
{
;
}

static void VGUI_UploadTexture( int id, const char *buffer, int width, int height )
{
;
}

static void VGUI_UploadTextureBlock( int id, int drawX, int drawY, const byte *rgba, int blockWidth, int blockHeight )
{
;
}

static void VGUI_DrawQuad( const vpoint_t *ul, const vpoint_t *lr )
{
;
}

static void VGUI_GetTextureSizes( int *width, int *height )
{
*width = *height = 0;
}

static int VGUI_GenerateTexture( void )
{
return 0;
}

static ref_interface_t gReffuncs =
{
.R_Init = R_Init,
Expand Down Expand Up @@ -524,7 +499,7 @@ static ref_interface_t gReffuncs =
.R_StudioLerpMovement = R_StudioLerpMovement,
.CL_InitStudioAPI = R_SimpleStub,

.R_InitSkyClouds = R_InitSkyClouds,
.R_SetSkyCloudsTextures = R_SetSkyCloudsTextures,
.GL_SubdivideSurface = GL_SubdivideSurface,
.CL_RunLightStyles = R_SimpleStub,

Expand Down Expand Up @@ -556,6 +531,7 @@ static ref_interface_t gReffuncs =
.GL_LoadTextureArray = GL_LoadTextureArray,
.GL_CreateTextureArray = GL_CreateTextureArray,
.GL_FreeTexture = R_SimpleStubUInt,
.R_OverrideTextureSourceSize = R_OverrideTextureSourceSize,

.DrawSingleDecal = DrawSingleDecal,
.R_DecalSetupVerts = R_DecalSetupVerts,
Expand Down Expand Up @@ -601,19 +577,8 @@ static ref_interface_t gReffuncs =
.FogParams = FogParams,
.CullFace = CullFace,

.VGUI_DrawInit = R_SimpleStub,
.VGUI_DrawShutdown = R_SimpleStub,
.VGUI_SetupDrawingText = VGUI_SetupDrawing,
.VGUI_SetupDrawingRect = VGUI_SetupDrawing,
.VGUI_SetupDrawingImage = VGUI_SetupDrawing,
.VGUI_BindTexture = R_SimpleStubInt,
.VGUI_EnableTexture = VGUI_EnableTexture,
.VGUI_CreateTexture = VGUI_CreateTexture,
.VGUI_UploadTexture = VGUI_UploadTexture,
.VGUI_SetupDrawing = VGUI_SetupDrawing,
.VGUI_UploadTextureBlock = VGUI_UploadTextureBlock,
.VGUI_DrawQuad = VGUI_DrawQuad,
.VGUI_GetTextureSizes = VGUI_GetTextureSizes,
.VGUI_GenerateTexture = VGUI_GenerateTexture,
};

int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs, ref_globals_t *globals );
Expand Down

0 comments on commit 3f66f6a

Please sign in to comment.