47 #define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
50#include <vapor/GLInclude.h>
61 #define sqrtf(fval) ((float)sqrt((double)(fval)))
62 #define fabsf(fval) ((float)fabs((double)(fval)))
63 #define sinf(fval) ((float)sin((double)(fval)))
64 #define cosf(fval) ((float)cos((double)(fval)))
65 #define tanf(fval) ((float)tan((double)(fval)))
71#define CallocType(type, i) (type *)calloc(i, sizeof(type))
76 #define M_PI 3.14159265358979323846
112#define CheckGLError() __CheckGLError(__FILE__, __LINE__)
113#define CheckGLErrorMsg(msg) __CheckGLError(__FILE__, __LINE__, msg)
117 #define GL_LEGACY(x) \
121 #define GL_LEGACY(x) x
124 #define GL_ERR_BREAK() \
125 if (CheckGLError()) ::raise(SIGTERM)
128 #define GL_ERR_BREAK()
RENDER_API std::string oglGetErrMsg(std::vector< int > status)
RENDER_API int oglGetFreeMemory()
RENDER_API void doubleToString(const double val, std::string &result, int digits)
RENDER_API bool oglStatusOK(std::vector< int > &status)
RENDER_API bool FrameBufferReady()
RENDER_API int __CheckGLError(const char *file, int line, const char *msg=0)