From d690dcbb92e13c71344ecf7ce11d65e55d1048e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 8 Oct 2013 11:31:01 +0200 Subject: [PATCH] Platform: ability to not print all those implementation-defined values. --- src/Platform/magnum-info.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Platform/magnum-info.cpp b/src/Platform/magnum-info.cpp index 0b5ae7435..2349b7a43 100644 --- a/src/Platform/magnum-info.cpp +++ b/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;