engine: client: ref_common: slight refactoring, reorder ref_state_t

This commit is contained in:
Alibek Omarov 2024-05-06 01:59:37 +03:00
parent b447ea9c18
commit e19aa001b2
1 changed files with 8 additions and 9 deletions

View File

@ -18,19 +18,18 @@ GNU General Public License for more details.
#include "ref_api.h"
#define RP_LOCALCLIENT( e ) ((e) != NULL && (e)->index == ( cl.playernum + 1 ) && e->player )
#define RP_LOCALCLIENT( e ) ((e) != NULL && (e)->index == ( cl.playernum + 1 ) && e->player )
struct ref_state_s
{
qboolean initialized;
HINSTANCE hInstance;
HINSTANCE hInstance;
qboolean initialized;
int numRenderers;
ref_interface_t dllFuncs;
// depends on build configuration
int numRenderers;
const char **shortNames;
const char **readableNames;
const char **shortNames;
const char **readableNames;
};
extern struct ref_state_s ref;
@ -46,8 +45,8 @@ void R_GetTextureParms( int *w, int *h, int texnum );
void GL_RenderFrame( const struct ref_viewpass_s *rvp );
// common engine and renderer cvars
extern convar_t r_decals;
extern convar_t r_adjust_fov;
extern convar_t r_decals;
extern convar_t r_adjust_fov;
extern convar_t gl_clear;
qboolean R_Init( void );