Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOOpenGL.h File Reference
import "OOCocoa.h"
import "OOOpenGLOnly.h"
+ Include dependency graph for OOOpenGL.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OOGLVector
 

Macros

#define NULL_SHADER   ((GLhandleARB)0)
 
#define OO_GL_STATE_VERIFICATION   1
 
#define OOSetOpenGLState(STATE)
 
#define OOVerifyOpenGLState()
 
#define OO_CHECK_GL_HEAVY   0
 
#define OOGL(statement)
 
#define CheckOpenGLErrorsHeavy(...)
 
#define OOGLBEGIN   glBegin
 
#define OOGLEND   glEnd
 

Enumerations

enum  OOShaderSetting { SHADERS_NOT_SUPPORTED = 0 , SHADERS_OFF = 1 , SHADERS_SIMPLE = 2 , SHADERS_FULL = 3 }
 
enum  OOOpenGLStateID {
  OPENGL_STATE_OPAQUE , OPENGL_STATE_TRANSLUCENT_PASS , OPENGL_STATE_ADDITIVE_BLENDING , OPENGL_STATE_OVERLAY ,
  OPENGL_STATE_INTERNAL_USE_ONLY
}
 
enum  { kOOShaderSettingDefault = SHADERS_NOT_SUPPORTED }
 

Functions

void OOSetOpenGLState_ (OOOpenGLStateID state, const char *function, unsigned line)
 
void OOVerifyOpenGLState_ (const char *function, unsigned line)
 
void OOResetGLStateVerifier (void)
 
BOOL OOCheckOpenGLErrors (NSString *format,...)
 
void LogOpenGLState (void)
 
void GLScaledLineWidth (GLfloat width)
 
void GLScaledPointSize (GLfloat size)
 
GLfloat GLGetDisplayScaleFactor (void)
 
void GLSetDisplayScaleFactor (GLfloat factor)
 
void OOGLWireframeModeOn (void)
 
void OOGLWireframeModeOff (void)
 
void GLDrawBallBillboard (GLfloat radius, GLfloat step, GLfloat z_distance)
 
void GLDrawOval (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
 
void GLDrawFilledOval (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
 
void GLDrawPoints (OOGLVector *points, int n)
 
void GLDrawFilledPoints (OOGLVector *points, int n)
 
void GLDrawQuadStrip (OOGLVector *points, int n)
 
OOShaderSetting OOShaderSettingFromString (NSString *string)
 
NSString * OOStringFromShaderSetting (OOShaderSetting setting)
 
NSString * OODisplayStringFromShaderSetting (OOShaderSetting setting)
 
NSString * OOGLColorToString (GLfloat color[4])
 
NSString * OOGLEnumToString (GLenum value)
 
NSString * OOGLFlagToString (bool value)
 

Macro Definition Documentation

◆ CheckOpenGLErrorsHeavy

#define CheckOpenGLErrorsHeavy ( ...)
Value:
do {} while (0)

Definition at line 252 of file OOOpenGL.h.

◆ NULL_SHADER

#define NULL_SHADER   ((GLhandleARB)0)

Definition at line 44 of file OOOpenGL.h.

◆ OO_CHECK_GL_HEAVY

#define OO_CHECK_GL_HEAVY   0

Definition at line 230 of file OOOpenGL.h.

◆ OO_GL_STATE_VERIFICATION

#define OO_GL_STATE_VERIFICATION   1

Definition at line 51 of file OOOpenGL.h.

◆ OOGL

◆ OOGLBEGIN

◆ OOGLEND

◆ OOSetOpenGLState

#define OOSetOpenGLState ( STATE)
Value:
OOSetOpenGLState_(STATE, __FUNCTION__, __LINE__)
void OOSetOpenGLState_(OOOpenGLStateID state, const char *function, unsigned line)

Definition at line 135 of file OOOpenGL.h.

Referenced by HeadUpDisplay::drawScannerGrid, HeadUpDisplay::OODrawHilightedPlanetInfo, HeadUpDisplay::OODrawHilightedString, HeadUpDisplay::OODrawPlanetInfo, and HeadUpDisplay::OOStartDrawingStrings.

◆ OOVerifyOpenGLState

#define OOVerifyOpenGLState ( )

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kOOShaderSettingDefault 

Definition at line 259 of file OOOpenGL.h.

260{
262};
@ SHADERS_NOT_SUPPORTED
Definition OOOpenGL.h:37
@ kOOShaderSettingDefault
Definition OOOpenGL.h:261

◆ OOOpenGLStateID

Enumerator
OPENGL_STATE_OPAQUE 
OPENGL_STATE_TRANSLUCENT_PASS 
OPENGL_STATE_ADDITIVE_BLENDING 
OPENGL_STATE_OVERLAY 
OPENGL_STATE_INTERNAL_USE_ONLY 

Definition at line 121 of file OOOpenGL.h.

122{
127
OOOpenGLStateID
Definition OOOpenGL.h:122
@ OPENGL_STATE_INTERNAL_USE_ONLY
Definition OOOpenGL.h:128
@ OPENGL_STATE_TRANSLUCENT_PASS
Definition OOOpenGL.h:124
@ OPENGL_STATE_ADDITIVE_BLENDING
Definition OOOpenGL.h:125
@ OPENGL_STATE_OVERLAY
Definition OOOpenGL.h:126
@ OPENGL_STATE_OPAQUE
Definition OOOpenGL.h:123

◆ OOShaderSetting

Enumerator
SHADERS_NOT_SUPPORTED 
SHADERS_OFF 
SHADERS_SIMPLE 
SHADERS_FULL 

Definition at line 34 of file OOOpenGL.h.

35{
36 // NOTE: numerical values are available to scripts.
38 SHADERS_OFF = 1,
40 SHADERS_FULL = 3
OOShaderSetting
Definition OOOpenGL.h:35
@ SHADERS_FULL
Definition OOOpenGL.h:40
@ SHADERS_SIMPLE
Definition OOOpenGL.h:39
@ SHADERS_OFF
Definition OOOpenGL.h:38

Function Documentation

◆ GLDrawBallBillboard()

void GLDrawBallBillboard ( GLfloat radius,
GLfloat step,
GLfloat z_distance )

Definition at line 111 of file OOOpenGL.m.

112{
113 if (EXPECT_NOT((radius <= 0)||(step < 1))) return;
114 if (EXPECT_NOT(radius >= z_distance)) return; // inside the sphere
115
116 GLfloat i, delta;
117 GLfloat s, c;
118 GLfloat r;
119
121
122 r = radius * z_distance / sqrt(z_distance * z_distance - radius * radius);
123 delta = step * M_PI / 180.0f; // Convert step from degrees to radians
124
125 glVertex3i(0, 0, 0);
126 for (i = 0; i < (M_PI * 2.0); i += delta)
127 {
128 s = r * sin(i);
129 c = r * cos(i);
130 glVertex3f(s, c, 0.0);
131 }
132 glVertex3f(0.0, r, 0.0); //repeat the zero value to close
133}
#define EXPECT_NOT(x)
#define OO_ENTER_OPENGL()
#define M_PI
Definition OOMaths.h:73

References EXPECT_NOT, M_PI, and OO_ENTER_OPENGL.

◆ GLDrawFilledOval()

void GLDrawFilledOval ( GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz,
GLfloat step )

Definition at line 165 of file OOOpenGL.m.

166{
168
169 OOGLBEGIN(GL_TRIANGLE_FAN);
170 GLDrawOvalPoints(x, y, z, siz, step);
171 OOGLEND();
172}
#define OOGLBEGIN
Definition OOOpenGL.h:253
#define OOGLEND
Definition OOOpenGL.h:254
static void GLDrawOvalPoints(GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
Definition OOOpenGL.m:136
float y
float x

References GLDrawOvalPoints(), OO_ENTER_OPENGL, OOGLBEGIN, OOGLEND, x, and y.

+ Here is the call graph for this function:

◆ GLDrawFilledPoints()

void GLDrawFilledPoints ( OOGLVector * points,
int n )

Definition at line 188 of file OOOpenGL.m.

189{
190 int i;
192 OOGLBEGIN(GL_TRIANGLE_FAN);
193 for (i = 0; i < n; i++)
194 {
195 glVertex3f(points->x, points->y, points->z);
196 points++;
197 }
198 OOGLEND();
199 return;
200}
GLfloat y
Definition OOOpenGL.h:205
GLfloat x
Definition OOOpenGL.h:204
GLfloat z
Definition OOOpenGL.h:206

References OO_ENTER_OPENGL, OOGLBEGIN, OOGLEND, OOGLVector::x, OOGLVector::y, and OOGLVector::z.

◆ GLDrawOval()

void GLDrawOval ( GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz,
GLfloat step )

Definition at line 155 of file OOOpenGL.m.

156{
158
159 OOGLBEGIN(GL_LINE_STRIP);
160 GLDrawOvalPoints(x, y, z, siz, step);
161 OOGLEND();
162}

References GLDrawOvalPoints(), OO_ENTER_OPENGL, OOGLBEGIN, OOGLEND, x, and y.

Referenced by HeadUpDisplay::drawScannerGrid.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GLDrawPoints()

void GLDrawPoints ( OOGLVector * points,
int n )

Definition at line 174 of file OOOpenGL.m.

175{
176 int i;
178 OOGLBEGIN(GL_LINE_STRIP);
179 for (i = 0; i < n; i++)
180 {
181 glVertex3f(points->x, points->y, points->z);
182 points++;
183 }
184 OOGLEND();
185 return;
186}

References OO_ENTER_OPENGL, OOGLBEGIN, OOGLEND, OOGLVector::x, OOGLVector::y, and OOGLVector::z.

Referenced by HeadUpDisplay::GLDrawNonlinearCascadeWeapon.

+ Here is the caller graph for this function:

◆ GLDrawQuadStrip()

void GLDrawQuadStrip ( OOGLVector * points,
int n )

Definition at line 203 of file OOOpenGL.m.

204{
205 int i;
207 OOGLBEGIN(GL_QUAD_STRIP);
208 for (i = 0; i < n; i++)
209 {
210 glVertex3f(points->x, points->y, points->z );
211 points++;
212 }
213 OOGLEND();
214 return;
215}

References OO_ENTER_OPENGL, OOGLBEGIN, OOGLEND, OOGLVector::x, OOGLVector::y, and OOGLVector::z.

Referenced by HeadUpDisplay::GLDrawNonlinearCascadeWeapon.

+ Here is the caller graph for this function:

◆ GLGetDisplayScaleFactor()

GLfloat GLGetDisplayScaleFactor ( void )

Definition at line 232 of file OOOpenGL.m.

233{
234 return sDisplayScaleFactor;
235}
static GLfloat sDisplayScaleFactor
Definition OOOpenGL.m:36

References sDisplayScaleFactor.

◆ GLScaledLineWidth()

void GLScaledLineWidth ( GLfloat width)

Definition at line 218 of file OOOpenGL.m.

219{
221 glLineWidth(width * sDisplayScaleFactor);
222}

References OO_ENTER_OPENGL, and sDisplayScaleFactor.

Referenced by HeadUpDisplay::drawScannerGrid, OODebugBeginWireframe(), and OOGLWireframeModeOn().

+ Here is the caller graph for this function:

◆ GLScaledPointSize()

void GLScaledPointSize ( GLfloat size)

Definition at line 225 of file OOOpenGL.m.

226{
228 glPointSize(size * sDisplayScaleFactor);
229}
voidpf void uLong size
Definition ioapi.h:134

References OO_ENTER_OPENGL, and sDisplayScaleFactor.

Referenced by OODebugDrawPoint().

+ Here is the caller graph for this function:

◆ GLSetDisplayScaleFactor()

void GLSetDisplayScaleFactor ( GLfloat factor)

Definition at line 238 of file OOOpenGL.m.

239{
240 NSCParameterAssert(factor >= 0.0f && isfinite(factor));
241 sDisplayScaleFactor = factor;
242}

References sDisplayScaleFactor.

◆ LogOpenGLState()

void LogOpenGLState ( void )

Definition at line 256 of file OOOpenGL.m.

257{
258 unsigned i;
259
261
263
264 OOLog(kOOLogOpenGLStateDump, @"%@", @"OpenGL state dump:");
265 OOLogIndent();
266
269 if (glIsEnabled(GL_LIGHTING))
270 {
271 OOLog(kOOLogOpenGLStateDump, @"%@", @"Lighting: ENABLED");
272 for (i = 0; i != 8; ++i)
273 {
275 }
276 }
277 else
278 {
279 OOLog(kOOLogOpenGLStateDump, @"%@", @"Lighting: disabled");
280 }
281
284
285 OOCheckOpenGLErrors(@"After state dump");
286
287 OOLogOutdent();
288}
BOOL OOLogWillDisplayMessagesInClass(NSString *inMessageClass)
Definition OOLogging.m:144
void OOLogOutdent(void)
Definition OOLogging.m:376
#define OOLog(class, format,...)
Definition OOLogging.h:88
void OOLogIndent(void)
Definition OOLogging.m:366
static void GLDumpMaterialState(void)
Definition OOOpenGL.m:337
static void GLDumpStateFlags(void)
Definition OOOpenGL.m:466
static void GLDumpCullingState(void)
Definition OOOpenGL.m:403
static void GLDumpLightState(unsigned lightIdx)
Definition OOOpenGL.m:310
BOOL OOCheckOpenGLErrors(NSString *format,...)
Definition OOOpenGL.m:39
static NSString *const kOOLogOpenGLStateDump
Definition OOOpenGL.m:33
static void GLDumpFogState(void)
Definition OOOpenGL.m:427

References GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), GLDumpMaterialState(), GLDumpStateFlags(), kOOLogOpenGLStateDump, OO_ENTER_OPENGL, OOCheckOpenGLErrors(), OOLog, OOLogIndent(), OOLogOutdent(), and OOLogWillDisplayMessagesInClass().

Referenced by OOCheckOpenGLErrors().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOCheckOpenGLErrors()

BOOL OOCheckOpenGLErrors ( NSString * format,
... )

Definition at line 39 of file OOOpenGL.m.

40{
41 GLenum errCode;
42 const GLubyte *errString = NULL;
43 BOOL errorOccurred = NO;
44 va_list args;
45 static BOOL noReenter;
46
47 if (noReenter) return NO;
48 noReenter = YES;
49
51
52 // Short-circut here, because glGetError() is quite expensive.
54 {
55 for (;;)
56 {
57 errCode = glGetError();
58
59 if (errCode == GL_NO_ERROR) break;
60
61 errorOccurred = YES;
62 errString = gluErrorString(errCode);
63 if (format == nil) format = @"<unknown>";
64
65 va_start(args, format);
66 format = [[[NSString alloc] initWithFormat:format arguments:args] autorelease];
67 va_end(args);
68 OOLog(kOOLogOpenGLError, @"OpenGL error: \"%s\" (%#x), context: %@", errString, errCode, format);
69 }
70 }
71
72#if OO_CHECK_GL_HEAVY
73 if (errorOccurred)
74 {
78 while (glGetError() != 0) {} // Suppress any errors caused by LogOpenGLState().
79 }
80#endif
81
82 noReenter = NO;
83 return errorOccurred;
84}
NSString *const kOOLogOpenGLError
Definition OOLogging.m:654
void LogOpenGLState(void)
Definition OOOpenGL.m:256
return nil

References kOOLogOpenGLError, LogOpenGLState(), nil, OO_ENTER_OPENGL, OOLog, OOLogIndent(), OOLogOutdent(), and OOLogWillDisplayMessagesInClass().

Referenced by Octree(Private)::drawOctreeCollisionFromLocation:loc:scale:, and LogOpenGLState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OODisplayStringFromShaderSetting()

NSString * OODisplayStringFromShaderSetting ( OOShaderSetting setting)

Definition at line 467 of file OOConstToString.m.

468{
469 switch (setting)
470 {
471 case SHADERS_NOT_SUPPORTED: return DESC(@"shaderfx-not-available");
472 case SHADERS_OFF: return DESC(@"shaderfx-off");
473 case SHADERS_SIMPLE: return DESC(@"shaderfx-simple");
474 case SHADERS_FULL: return DESC(@"shaderfx-full");
475 }
476
477 return @"??";
478}
#define DESC(key)
Definition Universe.h:846

References DESC, SHADERS_FULL, SHADERS_NOT_SUPPORTED, SHADERS_OFF, and SHADERS_SIMPLE.

◆ OOGLColorToString()

NSString * OOGLColorToString ( GLfloat color[4])

Definition at line 291 of file OOOpenGL.m.

292{
293 #define COLOR_EQUAL(color, r, g, b, a) (color[0] == (r) && color[1] == (g) && color[2] == (b) && color[3] == (a))
294 #define COLOR_CASE(r, g, b, a, str) do { if (COLOR_EQUAL(color, (r), (g), (b), (a))) return (str); } while (0)
295
296 COLOR_CASE(1, 1, 1, 1, @"white");
297 COLOR_CASE(0, 0, 0, 1, @"black");
298 COLOR_CASE(0, 0, 0, 0, @"clear");
299 COLOR_CASE(1, 0, 0, 1, @"red");
300 COLOR_CASE(0, 1, 0, 1, @"green");
301 COLOR_CASE(0, 0, 1, 1, @"blue");
302 COLOR_CASE(0, 1, 1, 1, @"cyan");
303 COLOR_CASE(1, 0, 1, 1, @"magenta");
304 COLOR_CASE(1, 1, 0, 1, @"yellow");
305
306 return [NSString stringWithFormat:@"(%.2ff, %.2ff, %.2ff, %.2ff)", color[0], color[1], color[2], color[3]];
307}
#define COLOR_CASE(r, g, b, a, str)

References COLOR_CASE.

Referenced by GLDumpFogState(), GLDumpLightState(), and GLDumpMaterialState().

+ Here is the caller graph for this function:

◆ OOGLEnumToString()

NSString * OOGLEnumToString ( GLenum value)

Definition at line 492 of file OOOpenGL.m.

493{
494 switch (value)
495 {
496 // ShadingModel
497 CASE(GL_FLAT);
498 CASE(GL_SMOOTH);
499
500 // BlendingFactorSrc/BlendingFactorDest
501 CASE(GL_ZERO);
502 CASE(GL_ONE);
503 CASE(GL_DST_COLOR);
504 CASE(GL_SRC_COLOR);
505 CASE(GL_ONE_MINUS_DST_COLOR);
506 CASE(GL_ONE_MINUS_SRC_COLOR);
507 CASE(GL_SRC_ALPHA);
508 CASE(GL_DST_ALPHA);
509 CASE(GL_ONE_MINUS_SRC_ALPHA);
510 CASE(GL_ONE_MINUS_DST_ALPHA);
511 CASE(GL_SRC_ALPHA_SATURATE);
512
513 // TextureEnvMode
514 CASE(GL_MODULATE);
515 CASE(GL_DECAL);
516 CASE(GL_BLEND);
517 CASE(GL_REPLACE);
518
519 // FrontFaceDirection
520 CASE(GL_CW);
521 CASE(GL_CCW);
522
523 // CullFaceMode
524 CASE(GL_FRONT);
525 CASE(GL_BACK);
526 CASE(GL_FRONT_AND_BACK);
527
528 // FogMode
529 CASE(GL_LINEAR);
530 CASE(GL_EXP);
531 CASE(GL_EXP2);
532
533#if OO_MULTITEXTURE
534 // Texture units
535#ifdef GL_TEXTURE0
536#define TEXCASE CASE
537#else
538#define TEXCASE(x) CASE(x##_ARB)
539#endif
540 TEXCASE(GL_TEXTURE0);
541 TEXCASE(GL_TEXTURE1);
542 TEXCASE(GL_TEXTURE2);
543 TEXCASE(GL_TEXTURE3);
544 TEXCASE(GL_TEXTURE4);
545 TEXCASE(GL_TEXTURE5);
546 TEXCASE(GL_TEXTURE6);
547 TEXCASE(GL_TEXTURE7);
548 TEXCASE(GL_TEXTURE8);
549 TEXCASE(GL_TEXTURE9);
550 TEXCASE(GL_TEXTURE10);
551 TEXCASE(GL_TEXTURE11);
552 TEXCASE(GL_TEXTURE12);
553 TEXCASE(GL_TEXTURE13);
554 TEXCASE(GL_TEXTURE14);
555 TEXCASE(GL_TEXTURE15);
556#endif
557
558 default: return [NSString stringWithFormat:@"unknown: %u", value];
559 }
560}
#define CASE(x)
Definition OOOpenGL.m:490

References CASE.

Referenced by GLDumpCullingState(), GLDumpFogState(), GLDumpMaterialState(), and VerifyOpenGLStateInternal().

+ Here is the caller graph for this function:

◆ OOGLFlagToString()

NSString * OOGLFlagToString ( bool value)

Definition at line 563 of file OOOpenGL.m.

564{
565 return value ? @"ENABLED" : @"disabled";
566}

Referenced by GLDumpCullingState(), GLDumpFogState(), GLDumpLightState(), and GLDumpMaterialState().

+ Here is the caller graph for this function:

◆ OOGLWireframeModeOff()

void OOGLWireframeModeOff ( void )

Definition at line 103 of file OOOpenGL.m.

104{
106 OOGL(glPolygonMode(GL_FRONT_AND_BACK, GL_FILL));
107// OOGL(glPopAttrib());
108}
#define OOGL(statement)
Definition OOOpenGL.h:251

References OO_ENTER_OPENGL, and OOGL.

◆ OOGLWireframeModeOn()

void OOGLWireframeModeOn ( void )

Definition at line 87 of file OOOpenGL.m.

88{
90
91 /* Because of where this is called relative to the
92 * OpenGLStateManager methods, pushAttrib/popAttrib causes the
93 * OpenGL state to move away from where it should be. So, instead,
94 * just switch polygon mode as needed. Linewidth is set already by
95 * everything that needs it and not handled by the state
96 * manager. - CIM*/
97// OOGL(glPushAttrib(GL_POLYGON_BIT | GL_LINE_BIT | GL_TEXTURE_BIT));
99 OOGL(glPolygonMode(GL_FRONT_AND_BACK, GL_LINE));
100}
void GLScaledLineWidth(GLfloat width)
Definition OOOpenGL.m:218

References GLScaledLineWidth(), OO_ENTER_OPENGL, and OOGL.

+ Here is the call graph for this function:

◆ OOResetGLStateVerifier()

void OOResetGLStateVerifier ( void )

Definition at line 462 of file OOOpenGLStateManager.m.

463{
464 // State has been reset behind our backs, so to speak; don't verify.
466}
static OOOpenGLStateID sCurrentStateID

References OPENGL_STATE_INTERNAL_USE_ONLY, and sCurrentStateID.

◆ OOSetOpenGLState_()

void OOSetOpenGLState_ ( OOOpenGLStateID state,
const char * function,
unsigned line )

Definition at line 253 of file OOOpenGLStateManager.m.

254{
255 NSCParameterAssert((unsigned)state < OPENGL_STATE_INTERNAL_USE_ONLY);
256
257 OOGLNoteCurrentFunction(function, line);
258 SetFunctionTracking(false);
259
260 VerifyOpenGLStateInternal("OOSetOpenGLState", function, line);
261
262 if (state != sCurrentStateID)
263 {
265 sCurrentStateID = state;
266 }
267
269}
static const OOOpenGLState kStandardStates[OPENGL_STATE_INTERNAL_USE_ONLY+1]
static void SetFunctionTracking(bool value)
static void VerifyOpenGLStateInternal(const char *caller, const char *nominalCaller, unsigned line) NONNULL_FUNC
static void SwitchOpenGLStateInternal(const OOOpenGLState *sourceState, const OOOpenGLState *targetState) NONNULL_FUNC
static void OOGLNoteCurrentFunction(const char *function, unsigned line)

References kStandardStates, OOGLNoteCurrentFunction(), OPENGL_STATE_INTERNAL_USE_ONLY, sCurrentStateID, SetFunctionTracking(), SwitchOpenGLStateInternal(), and VerifyOpenGLStateInternal().

+ Here is the call graph for this function:

◆ OOShaderSettingFromString()

OOShaderSetting OOShaderSettingFromString ( NSString * string)

◆ OOStringFromShaderSetting()

NSString * OOStringFromShaderSetting ( OOShaderSetting setting)

Definition at line 481 of file OOConstToString.m.

482{
483 switch (setting)
484 {
489 }
490
491 return @"UNDEFINED";
492}
#define CASE(foo)

References CASE, SHADERS_FULL, SHADERS_NOT_SUPPORTED, SHADERS_OFF, and SHADERS_SIMPLE.

◆ OOVerifyOpenGLState_()

void OOVerifyOpenGLState_ ( const char * function,
unsigned line )

Definition at line 272 of file OOOpenGLStateManager.m.

273{
274 OOGLNoteCurrentFunction(function, line);
275 SetFunctionTracking(false);
276
277 VerifyOpenGLStateInternal("OOVerifyOpenGLState", function, line);
278
280}

References OOGLNoteCurrentFunction(), SetFunctionTracking(), and VerifyOpenGLStateInternal().

+ Here is the call graph for this function: