54- (void) registerClient:(
id<OOGraphicsResetClient>)client
59 [clients addObject:[
NSValue valueWithPointer:client]];
54- (void) registerClient:(
id<OOGraphicsResetClient>)client {
…}
64- (void) unregisterClient:(
id<OOGraphicsResetClient>)client
66 [clients removeObject:[
NSValue valueWithPointer:client]];
64- (void) unregisterClient:(
id<OOGraphicsResetClient>)client {
…}
72 NSEnumerator *clientEnum =
nil;
77 OOLog(
@"rendering.reset.start",
@"%@",
@"Resetting graphics state.");
83 for (clientEnum = [
clients objectEnumerator]; (client = [[
clientEnum nextObject] pointerValue]); )
87 [
client resetGraphicsState];
89 @catch (NSException *exception)
91 OOLog(
kOOLogException,
@"***** EXCEPTION -- %@ : %@ -- ignored during graphics reset.", [exception name], [exception reason]);
96 OOLog(
@"rendering.reset.end",
@"%@",
@"End of graphics state reset.");
102@implementation OOGraphicsResetManager (Singleton)
111+ (id) allocWithZone:(NSZone *)inZone
111+ (id) allocWithZone:(NSZone *)inZone {
…}
122- (id) copyWithZone:(NSZone *)inZone
122- (id) copyWithZone:(NSZone *)inZone {
…}
static OODebugMonitor * sSingleton
NSString *const kOOLogException
#define OOLogOutdentIf(class)
#define OOLog(class, format,...)
#define OOLogIndentIf(class)
void resetGraphicsState()
OOGraphicsResetManager * sharedManager()
OOOpenGLExtensionManager * sharedManager()