From 506b634b780dcd23aa61015c2ceba3e687196abf Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 15 Jun 2009 22:52:34 +0000 Subject: Deleted obsolete source code in preparation for copying JOGL_2_SANDBOX on to trunk git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1958 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/ContextUpdater.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/native/jogl/ContextUpdater.h (limited to 'src/native/jogl/ContextUpdater.h') diff --git a/src/native/jogl/ContextUpdater.h b/src/native/jogl/ContextUpdater.h deleted file mode 100644 index e8b757fac..000000000 --- a/src/native/jogl/ContextUpdater.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - -Listens to NSViewGlobalFrameDidChangeNotification - -This notification is sent whenever an NSView that has an attached NSSurface changes size or changes screens (thus potentially changing graphics hardware drivers.) - -*/ - -#import -#import -#import -#import -#import - -//#define DEBUG_GL_LOCKS - -#ifdef DEBUG_GL_LOCKS - #define LOCK_GL(func, line) [ContextUpdater lockInFunction:func atLine:line]; - #define UNLOCK_GL(func, line) [ContextUpdater unlockInFunction:func atLine:line]; -#else - #define LOCK_GL(func, line) [ContextUpdater lock]; - #define UNLOCK_GL(func, line) [ContextUpdater unlock]; -#endif - -// gznote: OpenGL NOT thread safe - need to sync on update and paints - -@interface ContextUpdater : NSObject -{ -} - -+ (void) lock; -+ (void) lockInFunction:(char *)func atLine:(int)line; -+ (void) unlock; -+ (void) unlockInFunction:(char *)func atLine:(int)line; - -- (void) registerFor:(NSOpenGLContext *)context with: (NSView *)window; - -- (void) update:(NSNotification *)notification; - -@end -- cgit v1.2.3