Browse Source

Platform: ability to not print all those implementation-defined values.

pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
d690dcbb92
  1. 4
      src/Platform/magnum-info.cpp

4
src/Platform/magnum-info.cpp

@ -56,6 +56,8 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
Utility::Arguments args;
args.addBooleanOption("all-extensions")
.setHelp("all-extensions", "show extensions also for fully supported versions")
.addBooleanOption("no-limits")
.setHelp("no-limits", "don't display limits and implementation-defined values")
.setHelp("Displays information about Magnum engine and OpenGL capabilities.");
/**
@ -177,6 +179,8 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
Debug() << "";
}
if(args.isSet("no-limits")) return;
/* Limits and implementation-defined values */
#define _h(val) Debug() << "\n " << Extensions::GL::val::string() + std::string(":");
#define _l(val) Debug() << " " << #val << (sizeof(#val) > 64 ? "\n" + std::string(68, ' ') : std::string(64 - sizeof(#val), ' ')) << val;

Loading…
Cancel
Save