|
Ion
|
This internal class is used by the GraphicsManager to print argument values when tracing OpenGL calls. More...
#include "tracinghelper.h"
Public Member Functions | |
| TracingHelper () | |
| The constructor sets up the data necessary to map OpenGL constant values to mnemonic names. More... | |
| template<typename T > | |
| 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. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, const char *arg) |
| Specialize to add quotes around strings. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, char *arg) |
| Specialize to add quotes around strings. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, const char **arg) |
| Specialize to print the first string in an array of strings. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, unsigned char arg) |
| Specialize to deal with GLboolean values. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, int arg) |
| Specialize to deal with GLenum values. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, unsigned int arg) |
| Specialize to deal with GLenum values. More... | |
| template<> | |
| ION_API const std::string | ToString (const char *arg_type, char **arg) |
This internal class is used by the GraphicsManager to print argument values when tracing OpenGL calls.
Definition at line 29 of file tracinghelper.h.
| ion::gfx::TracingHelper::TracingHelper | ( | ) |
The constructor sets up the data necessary to map OpenGL constant values to mnemonic names.
Definition at line 759 of file tracinghelper.cc.
| const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| T | arg | ||
| ) |
This templated function is used to print each OpenGL function argument in a more readable way.
Unspecialized version.
The unspecialized version just converts the type to a string in the conventional way. There are specialized versions to handle quoting strings, replacing numbers with names, etc..
Definition at line 768 of file tracinghelper.cc.
Referenced by ToString().
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| char ** | arg | ||
| ) |
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| const char * | arg | ||
| ) |
Specialize to add quotes around strings.
Definition at line 790 of file tracinghelper.cc.
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| char * | arg | ||
| ) |
Specialize to add quotes around strings.
Specialize the ToString() function for types that have special processing.
Definition at line 797 of file tracinghelper.cc.
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| const char ** | arg | ||
| ) |
Specialize to print the first string in an array of strings.
Definition at line 802 of file tracinghelper.cc.
References ToString().
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| unsigned char | arg | ||
| ) |
Specialize to deal with GLboolean values.
Definition at line 809 of file tracinghelper.cc.
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| int | arg | ||
| ) |
Specialize to deal with GLenum values.
Definition at line 825 of file tracinghelper.cc.
References name, and ion::base::StartsWith().
| ION_API const std::string ion::gfx::TracingHelper::ToString | ( | const char * | arg_type, |
| unsigned int | arg | ||
| ) |
Specialize to deal with GLenum values.
Definition at line 875 of file tracinghelper.cc.