Browse Source

ref_api: add R_Flush method

pull/2/head
mittorn 1 year ago committed by Alibek Omarov
parent
commit
c800b34cd4
  1. 4
      engine/ref_api.h
  2. 6
      ref/gl/gl_context.c
  3. 6
      ref/soft/r_context.c

4
engine/ref_api.h

@ -447,6 +447,7 @@ typedef struct ref_interface_s @@ -447,6 +447,7 @@ typedef struct ref_interface_s
void (*GL_InitExtensions)( void );
void (*GL_ClearExtensions)( void );
// scene rendering
void (*R_BeginFrame)( qboolean clearScene );
void (*R_RenderScene)( void );
void (*R_EndFrame)( void );
@ -461,7 +462,8 @@ typedef struct ref_interface_s @@ -461,7 +462,8 @@ typedef struct ref_interface_s
qboolean (*R_AddEntity)( struct cl_entity_s *clent, int type );
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
void (*R_ShowTextures)( void );

6
ref/gl/gl_context.c

@ -316,6 +316,11 @@ void R_ProcessEntData( qboolean allocate, cl_entity_t *entities, unsigned int ma @@ -316,6 +316,11 @@ void R_ProcessEntData( qboolean allocate, cl_entity_t *entities, unsigned int ma
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 ret = true;
@ -380,6 +385,7 @@ ref_interface_t gReffuncs = @@ -380,6 +385,7 @@ ref_interface_t gReffuncs =
R_AddEntity,
CL_AddCustomBeam,
R_ProcessEntData,
R_Flush,
R_ShowTextures,

6
ref/soft/r_context.c

@ -279,6 +279,11 @@ void GAME_EXPORT R_ProcessEntData( qboolean allocate, cl_entity_t *entities, uns @@ -279,6 +279,11 @@ void GAME_EXPORT R_ProcessEntData( qboolean allocate, cl_entity_t *entities, uns
tr.max_entities = max_entities;
}
static void GAME_EXPORT R_Flush( unsigned int flags )
{
// stub
}
// stubs
void GAME_EXPORT GL_SetTexCoordArrayMode( uint mode )
@ -426,6 +431,7 @@ ref_interface_t gReffuncs = @@ -426,6 +431,7 @@ ref_interface_t gReffuncs =
R_AddEntity,
CL_AddCustomBeam,
R_ProcessEntData,
R_Flush,
R_ShowTextures,

Loading…
Cancel
Save