44#define NULL_SHADER ((GLhandleARB)0)
49#define OO_GL_STATE_VERIFICATION 0
51#define OO_GL_STATE_VERIFICATION 1
132#if OO_GL_STATE_VERIFICATION
135#define OOSetOpenGLState(STATE) OOSetOpenGLState_(STATE, __FUNCTION__, __LINE__)
136#define OOVerifyOpenGLState() OOVerifyOpenGLState_(__FUNCTION__, __LINE__)
139#define OOVerifyOpenGLState() do {} while (0)
196void GLDrawOval(GLfloat
x, GLfloat
y, GLfloat z, NSSize siz, GLfloat step);
229#ifndef OO_CHECK_GL_HEAVY
230#define OO_CHECK_GL_HEAVY 0
236#if OO_GL_STATE_VERIFICATION
239#define OOGLNoteCurrentFunction(FUNC, line) do {} while (0)
243#define OOGL_PERFORM_CHECK(label, code) OOCheckOpenGLErrors(@"%s %@:%u (%s)%s", label, OOLogAbbreviatedFileName(__FILE__), __LINE__, __PRETTY_FUNCTION__, code)
244#define OOGL(statement) do { OOGLNoteCurrentFunction(__FUNCTION__, __LINE__); OOGL_PERFORM_CHECK("PRE", " -- " #statement); statement; OOGL_PERFORM_CHECK("POST", " -- " #statement); } while (0)
245#define CheckOpenGLErrorsHeavy OOCheckOpenGLErrors
246#define OOGLBEGIN(mode) do { OOGLNoteCurrentFunction(__FUNCTION__, __LINE__); OOGL_PERFORM_CHECK("PRE-BEGIN", " -- " #mode); glBegin(mode); } while (0)
247#define OOGLEND() do { glEnd(); OOGLNoteCurrentFunction(__FUNCTION__, __LINE__); OOGL_PERFORM_CHECK("POST-END", ""); } while (0)
251#define OOGL(statement) do { statement; } while (0)
252#define CheckOpenGLErrorsHeavy(...) do {} while (0)
253#define OOGLBEGIN glBegin
NSString * OOLogAbbreviatedFileName(const char *inName)
static void OOGLNoteCurrentFunction(const char *function, unsigned line)
NSString * OOGLEnumToString(GLenum value)
void OOGLWireframeModeOn(void)
void GLDrawFilledOval(GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
void OOGLWireframeModeOff(void)
@ OPENGL_STATE_INTERNAL_USE_ONLY
@ OPENGL_STATE_TRANSLUCENT_PASS
@ OPENGL_STATE_ADDITIVE_BLENDING
NSString * OOGLColorToString(GLfloat color[4])
void GLDrawPoints(OOGLVector *points, int n)
void OOResetGLStateVerifier(void)
void GLDrawQuadStrip(OOGLVector *points, int n)
OOShaderSetting OOShaderSettingFromString(NSString *string)
BOOL OOCheckOpenGLErrors(NSString *format,...)
@ kOOShaderSettingDefault
void GLScaledLineWidth(GLfloat width)
void GLDrawOval(GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
NSString * OOStringFromShaderSetting(OOShaderSetting setting)
void GLSetDisplayScaleFactor(GLfloat factor)
void GLDrawBallBillboard(GLfloat radius, GLfloat step, GLfloat z_distance)
#define OOSetOpenGLState(STATE)
void LogOpenGLState(void)
void OOVerifyOpenGLState_(const char *function, unsigned line)
void GLScaledPointSize(GLfloat size)
void OOSetOpenGLState_(OOOpenGLStateID state, const char *function, unsigned line)
void GLDrawFilledPoints(OOGLVector *points, int n)
NSString * OOGLFlagToString(bool value)
GLfloat GLGetDisplayScaleFactor(void)
NSString * OODisplayStringFromShaderSetting(OOShaderSetting setting)