Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOOpenGLExtensionManager.m File Reference
+ Include dependency graph for OOOpenGLExtensionManager.m:

Go to the source code of this file.

Classes

category  OOOpenGLExtensionManager(OOPrivate)
 

Enumerations

enum  { kMinMajorVersion = 3 , kMinMinorVersion = 3 }
 

Functions

static unsigned IntegerFromString (const GLubyte **ioString)
 
static NSArray * ArrayOfExtensions (NSString *extensionString)
 

Variables

static NSString *const kOOLogOpenGLShaderSupport = @"rendering.opengl.shader.support"
 
static OOOpenGLExtensionManagersSingleton = nil
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kMinMajorVersion 
kMinMinorVersion 

Definition at line 48 of file OOOpenGLExtensionManager.m.

49{
52};

Function Documentation

◆ ArrayOfExtensions()

static NSArray * ArrayOfExtensions ( NSString * extensionString)
static

Definition at line 181 of file OOOpenGLExtensionManager.m.

182{
183 NSArray *components = [extensionString componentsSeparatedByString:@" "];
184 NSMutableArray *result = [NSMutableArray arrayWithCapacity:[components count]];
185 NSEnumerator *extEnum = nil;
186 NSString *extStr = nil;
187 for (extEnum = [components objectEnumerator]; (extStr = [extEnum nextObject]); )
188 {
189 if ([extStr length] > 0) [result addObject:extStr];
190 }
191 return result;
192}
unsigned count
return nil

References nil.

◆ IntegerFromString()

static unsigned IntegerFromString ( const GLubyte ** ioString)
static

Definition at line 529 of file OOOpenGLExtensionManager.m.

530{
531 if (EXPECT_NOT(ioString == NULL)) return 0;
532
533 unsigned result = 0;
534 const GLubyte *curr = *ioString;
535
536 while ('0' <= *curr && *curr <= '9')
537 {
538 result = result * 10 + *curr++ - '0';
539 }
540
541 *ioString = curr;
542 return result;
543}
#define EXPECT_NOT(x)

Variable Documentation

◆ kOOLogOpenGLShaderSupport

NSString* const kOOLogOpenGLShaderSupport = @"rendering.opengl.shader.support"
static

Definition at line 148 of file OOOpenGLExtensionManager.m.

◆ sSingleton

OOOpenGLExtensionManager* sSingleton = nil
static

Definition at line 151 of file OOOpenGLExtensionManager.m.