|
|
@ -332,6 +332,16 @@ qboolean R_SetDisplayTransform( ref_screen_rotation_t rotate, int offset_x, int |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void* GAME_EXPORT R_GetProcAddress( const char *name ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#ifdef XASH_GL4ES |
|
|
|
|
|
|
|
extern void *gl4es_GetProcAddress( const char *name ); |
|
|
|
|
|
|
|
return gl4es_GetProcAddress( name ); |
|
|
|
|
|
|
|
#else // TODO: other wrappers
|
|
|
|
|
|
|
|
return gEngFuncs.GL_GetProcAddress( name ); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static const char *R_GetConfigName( void ) |
|
|
|
static const char *R_GetConfigName( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return "opengl"; |
|
|
|
return "opengl"; |
|
|
@ -453,6 +463,7 @@ ref_interface_t gReffuncs = |
|
|
|
Mod_GetCurrentVis, |
|
|
|
Mod_GetCurrentVis, |
|
|
|
R_NewMap, |
|
|
|
R_NewMap, |
|
|
|
R_ClearScene, |
|
|
|
R_ClearScene, |
|
|
|
|
|
|
|
R_GetProcAddress, |
|
|
|
|
|
|
|
|
|
|
|
TriRenderMode, |
|
|
|
TriRenderMode, |
|
|
|
TriBegin, |
|
|
|
TriBegin, |
|
|
@ -503,6 +514,8 @@ void EXPORT GetRefHumanReadableName( char *out, size_t size ) |
|
|
|
Q_strncpy( out, "GLES1(NanoGL)", size ); |
|
|
|
Q_strncpy( out, "GLES1(NanoGL)", size ); |
|
|
|
#elif defined XASH_WES |
|
|
|
#elif defined XASH_WES |
|
|
|
Q_strncpy( out, "GLES2(gl-wes-v2)", size ); |
|
|
|
Q_strncpy( out, "GLES2(gl-wes-v2)", size ); |
|
|
|
|
|
|
|
#elif defined XASH_GL4ES |
|
|
|
|
|
|
|
Q_strncpy( out, "GLES2(gl4es)", size ); |
|
|
|
#else |
|
|
|
#else |
|
|
|
Q_strncpy( out, "OpenGL", size ); |
|
|
|
Q_strncpy( out, "OpenGL", size ); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|