ref_api: add R_Flush method
This commit is contained in:
parent
1612e2d669
commit
c800b34cd4
3 changed files with 15 additions and 1 deletions
|
@ -447,6 +447,7 @@ typedef struct ref_interface_s
|
||||||
void (*GL_InitExtensions)( void );
|
void (*GL_InitExtensions)( void );
|
||||||
void (*GL_ClearExtensions)( void );
|
void (*GL_ClearExtensions)( void );
|
||||||
|
|
||||||
|
// scene rendering
|
||||||
void (*R_BeginFrame)( qboolean clearScene );
|
void (*R_BeginFrame)( qboolean clearScene );
|
||||||
void (*R_RenderScene)( void );
|
void (*R_RenderScene)( void );
|
||||||
void (*R_EndFrame)( void );
|
void (*R_EndFrame)( void );
|
||||||
|
@ -462,6 +463,7 @@ typedef struct ref_interface_s
|
||||||
qboolean (*R_AddEntity)( struct cl_entity_s *clent, int type );
|
qboolean (*R_AddEntity)( struct cl_entity_s *clent, int type );
|
||||||
void (*CL_AddCustomBeam)( cl_entity_t *pEnvBeam );
|
void (*CL_AddCustomBeam)( cl_entity_t *pEnvBeam );
|
||||||
void (*R_ProcessEntData)( qboolean allocate, cl_entity_t *entities, unsigned int max_entities );
|
void (*R_ProcessEntData)( qboolean allocate, cl_entity_t *entities, unsigned int max_entities );
|
||||||
|
void (*R_Flush)( unsigned int flush_flags );
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
void (*R_ShowTextures)( void );
|
void (*R_ShowTextures)( void );
|
||||||
|
|
|
@ -316,6 +316,11 @@ void R_ProcessEntData( qboolean allocate, cl_entity_t *entities, unsigned int ma
|
||||||
gEngfuncs.drawFuncs->R_ProcessEntData( allocate );
|
gEngfuncs.drawFuncs->R_ProcessEntData( allocate );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void GAME_EXPORT R_Flush( unsigned int flags )
|
||||||
|
{
|
||||||
|
// stub
|
||||||
|
}
|
||||||
|
|
||||||
qboolean R_SetDisplayTransform( ref_screen_rotation_t rotate, int offset_x, int offset_y, float scale_x, float scale_y )
|
qboolean R_SetDisplayTransform( ref_screen_rotation_t rotate, int offset_x, int offset_y, float scale_x, float scale_y )
|
||||||
{
|
{
|
||||||
qboolean ret = true;
|
qboolean ret = true;
|
||||||
|
@ -380,6 +385,7 @@ ref_interface_t gReffuncs =
|
||||||
R_AddEntity,
|
R_AddEntity,
|
||||||
CL_AddCustomBeam,
|
CL_AddCustomBeam,
|
||||||
R_ProcessEntData,
|
R_ProcessEntData,
|
||||||
|
R_Flush,
|
||||||
|
|
||||||
R_ShowTextures,
|
R_ShowTextures,
|
||||||
|
|
||||||
|
|
|
@ -279,6 +279,11 @@ void GAME_EXPORT R_ProcessEntData( qboolean allocate, cl_entity_t *entities, uns
|
||||||
tr.max_entities = max_entities;
|
tr.max_entities = max_entities;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void GAME_EXPORT R_Flush( unsigned int flags )
|
||||||
|
{
|
||||||
|
// stub
|
||||||
|
}
|
||||||
|
|
||||||
// stubs
|
// stubs
|
||||||
|
|
||||||
void GAME_EXPORT GL_SetTexCoordArrayMode( uint mode )
|
void GAME_EXPORT GL_SetTexCoordArrayMode( uint mode )
|
||||||
|
@ -426,6 +431,7 @@ ref_interface_t gReffuncs =
|
||||||
R_AddEntity,
|
R_AddEntity,
|
||||||
CL_AddCustomBeam,
|
CL_AddCustomBeam,
|
||||||
R_ProcessEntData,
|
R_ProcessEntData,
|
||||||
|
R_Flush,
|
||||||
|
|
||||||
R_ShowTextures,
|
R_ShowTextures,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue