18 #ifndef ION_GFX_TRACINGHELPER_H_
19 #define ION_GFX_TRACINGHELPER_H_
22 #include <unordered_map>
39 template <
typename T>
const std::string ToString(
const char* arg_type,
T arg);
43 std::unordered_map<int, std::string> constants_;
49 const char* arg_type,
char* arg);
51 const char* arg_type,
char** arg);
53 const char* arg_type,
const char* arg);
55 const char* arg_type,
const char** arg);
57 const char* arg_type,
unsigned char arg);
59 const char* arg_type,
unsigned int arg);
65 #endif // ION_GFX_TRACINGHELPER_H_
const std::string ToString(const char *arg_type, T arg)
This templated function is used to print each OpenGL function argument in a more readable way...
This internal class is used by the GraphicsManager to print argument values when tracing OpenGL calls...