diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 22:52:34 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-15 22:52:34 +0000 |
commit | 506b634b780dcd23aa61015c2ceba3e687196abf (patch) | |
tree | 897649a36cc769351704a050828f8e0e994c5686 /src/native/jogl/ContextUpdater.h | |
parent | 04c0c10bfee764dbd0301ae83a0fae695dcb5b23 (diff) |
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
Diffstat (limited to 'src/native/jogl/ContextUpdater.h')
-rw-r--r-- | src/native/jogl/ContextUpdater.h | 40 |
1 files changed, 0 insertions, 40 deletions
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 <Cocoa/Cocoa.h> -#import <Foundation/Foundation.h> -#import <AppKit/NSView.h> -#import <OpenGL/OpenGL.h> -#import <OpenGL/gl.h> - -//#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 |