Reduced model aliasing by increased z-buffer depth (cjlaurel)

ver1_5_1
Da Woon Jung 2005-02-05 06:49:44 +00:00
parent f030ca44d7
commit d5237245ca
1 changed files with 16 additions and 19 deletions

View File

@ -23,10 +23,10 @@
NSOpenGLPixelFormatAttribute attrs[] =
{
NSOpenGLPFADoubleBuffer,
NSOpenGLPFANoRecovery,
NSOpenGLPFAAccelerated,
// NSOpenGLPFANoRecovery,
// NSOpenGLPFAAccelerated,
NSOpenGLPFADepthSize,
(NSOpenGLPixelFormatAttribute)1,
(NSOpenGLPixelFormatAttribute)24,
nil
} ;
@ -221,23 +221,20 @@
- (void) drawRect: (NSRect) rect
{
NSOpenGLContext *oglContext;
[self lockFocus];
oglContext = [self openGLContext];
if (oglContext != nil)
{
[controller display];
glFinish();
[oglContext flushBuffer] ;
}
[self unlockFocus];
NSOpenGLContext *oglContext;
oglContext = [self openGLContext];
if (oglContext != nil)
{
[controller display];
glFinish();
[oglContext flushBuffer];
}
}
- (void) update
{
[controller setDirty];
[super update];
[controller setDirty];
[super update];
}
- (void) writeStringToPasteboard: (NSPasteboard *) pb
@ -245,9 +242,9 @@
NSString *value;
[pb declareTypes:
[NSArray arrayWithObject: NSStringPboardType] owner: self];
CelestiaAppCore *appCore = [CelestiaAppCore sharedAppCore];
value = [appCore currentURL];
[ pb setString: value forType: NSStringPboardType ];
CelestiaAppCore *appCore = [CelestiaAppCore sharedAppCore];
value = [appCore currentURL];
[ pb setString: value forType: NSStringPboardType ];
}
- (BOOL) readStringFromPasteboard: (NSPasteboard *) pb