blob: c0b0ea60af669bbfbccaf0c496100cd989cfe65e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "log.hpp"
#include <mg/Context.h>
namespace floormat {
bool is_log_quiet()
{
using GLCCF = GL::Implementation::ContextConfigurationFlag;
auto flags = GL::Context::current().configurationFlags();
return !!(flags & GLCCF::QuietLog);
}
bool is_log_verbose()
{
using GLCCF = GL::Implementation::ContextConfigurationFlag;
auto flags = GL::Context::current().configurationFlags();
return !!(flags & GLCCF::VerboseLog);
}
bool is_log_standard()
{
using GLCCF = GL::Implementation::ContextConfigurationFlag;
auto flags = GL::Context::current().configurationFlags();
return !(flags & (GLCCF::VerboseLog|GLCCF::QuietLog));
}
} // namespace floormat
|