engine: client: ref_common: slight refactoring, reorder ref_state_t
This commit is contained in:
parent
b447ea9c18
commit
e19aa001b2
1 changed files with 8 additions and 9 deletions
|
@ -18,19 +18,18 @@ GNU General Public License for more details.
|
||||||
|
|
||||||
#include "ref_api.h"
|
#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
|
struct ref_state_s
|
||||||
{
|
{
|
||||||
qboolean initialized;
|
HINSTANCE hInstance;
|
||||||
|
qboolean initialized;
|
||||||
HINSTANCE hInstance;
|
int numRenderers;
|
||||||
ref_interface_t dllFuncs;
|
ref_interface_t dllFuncs;
|
||||||
|
|
||||||
// depends on build configuration
|
// depends on build configuration
|
||||||
int numRenderers;
|
const char **shortNames;
|
||||||
const char **shortNames;
|
const char **readableNames;
|
||||||
const char **readableNames;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct ref_state_s ref;
|
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 );
|
void GL_RenderFrame( const struct ref_viewpass_s *rvp );
|
||||||
|
|
||||||
// common engine and renderer cvars
|
// common engine and renderer cvars
|
||||||
extern convar_t r_decals;
|
extern convar_t r_decals;
|
||||||
extern convar_t r_adjust_fov;
|
extern convar_t r_adjust_fov;
|
||||||
extern convar_t gl_clear;
|
extern convar_t gl_clear;
|
||||||
|
|
||||||
qboolean R_Init( void );
|
qboolean R_Init( void );
|
||||||
|
|
Loading…
Add table
Reference in a new issue