31 #ifndef INCLUDE_ARTICULATION_UTILITIES_H_ 32 #define INCLUDE_ARTICULATION_UTILITIES_H_ 41 #define glPolygonMode(...) 42 #define glPushDebugGroup(...) 43 #define glPopDebugGroup(...) 44 #define GL_FILL 0x1B02 47 #define GET_API(FRAMEWORK) FRAMEWORK##_##OPENGL_API 49 #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) 52 #include <android/log.h> 53 #define logInfo(FORMAT, ...) ((void)__android_log_print(ANDROID_LOG_INFO, "articulation", "%s:%d: " FORMAT, __FILENAME__, __LINE__, ##__VA_ARGS__)) 54 #define logWarn(FORMAT, ...) ((void)__android_log_print(ANDROID_LOG_WARN, "articulation", "%s:%d: " FORMAT, __FILENAME__, __LINE__, ##__VA_ARGS__)) 55 #define logError(FORMAT, ...) ((void)__android_log_print(ANDROID_LOG_ERROR, "articulation", "%s:%d: " FORMAT, __FILENAME__, __LINE__, ##__VA_ARGS__)) 57 #define logInfo(FORMAT, ...) fprintf(stdout, "[INFO] %s:%d: " FORMAT "\n", __FILENAME__, __LINE__, ##__VA_ARGS__) 58 #define logWarn(FORMAT, ...) fprintf(stderr, "[WARN] %s:%d: " FORMAT "\n", __FILENAME__, __LINE__, ##__VA_ARGS__) 59 #define logError(FORMAT, ...) fprintf(stderr, "[ERR ] %s:%d: " FORMAT "\n", __FILENAME__, __LINE__, ##__VA_ARGS__) 75 GLException(
const GLenum
code,
const char *
const file,
const int line);
84 const char*
what()
const throw ();
99 void doCheckGLError(
const char *
const file,
const int line);
102 #define checkGLError() doCheckGLError(__FILE__, __LINE__) 104 #define checkGLError() const GLenum code
OpenGL error code.
Definition: Utilities.h:87
Custom OpenGL exception.
Definition: Utilities.h:67
const char * what() const
Returns the human-readable description of the error.
GLException(const GLenum code, const char *const file, const int line)
Constructor.
Definition: AbstractCamera.h:41
std::string text
Description string.
Definition: Utilities.h:88
virtual ~GLException()
Destructor.