Add HAVE_GLSL/HAVE_HLSL to config.features.h

This commit is contained in:
twinaphex 2015-04-16 20:59:55 +02:00
parent aded842d4f
commit 3c498eb505
3 changed files with 25 additions and 1 deletions

View File

@ -146,6 +146,18 @@ static const bool _cg_supp = true;
static const bool _cg_supp = false;
#endif
#ifdef HAVE_GLSL
static const bool _glsl_supp = true;
#else
static const bool _glsl_supp = false;
#endif
#ifdef HAVE_HLSL
static const bool _hlsl_supp = true;
#else
static const bool _hlsl_supp = false;
#endif
#ifdef HAVE_LIBXML2
static const bool _libxml2_supp = true;
#else

View File

@ -522,7 +522,17 @@ static int deferred_push_system_information(void *data, void *userdata,
MENU_SETTINGS_CORE_INFO_NONE, 0);
snprintf(feat_str, sizeof(feat_str),
"Cg library support: %s", _cg_supp ? "true" : "false");
"Cg support: %s", _cg_supp ? "true" : "false");
menu_list_push(list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0);
snprintf(feat_str, sizeof(feat_str),
"GLSL support: %s", _glsl_supp ? "true" : "false");
menu_list_push(list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0);
snprintf(feat_str, sizeof(feat_str),
"HLSL support: %s", _hlsl_supp ? "true" : "false");
menu_list_push(list, feat_str, "",
MENU_SETTINGS_CORE_INFO_NONE, 0);

View File

@ -115,6 +115,8 @@ static void print_features(void)
_PSUPP(al, "OpenAL", "audio driver");
_PSUPP(dylib, "External", "External filter and plugin support");
_PSUPP(cg, "Cg", "Cg pixel shaders");
_PSUPP(glsl, "GLSL", "GLSL pixel shaders");
_PSUPP(glsl, "HLSL", "HLSL pixel shaders");
_PSUPP(libxml2, "libxml2", "libxml2 XML parsing");
_PSUPP(sdl_image, "SDL_image", "SDL_image image loading");
_PSUPP(fbo, "FBO", "OpenGL render-to-texture (multi-pass shaders)");