comparison src/video/quartz/SDL_QuartzVideo.m @ 656:864e2d2a9a55

Merged in Ryan's multisample code for MacOS, and changed the constants to match.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 22 Jul 2003 15:33:28 +0000
parents 2c6510c0a304
children 714053f573e7
comparison
equal deleted inserted replaced
655:9c42ee1b7d77 656:864e2d2a9a55
1417 if ( this->gl_config.stencil_size != 0 ) { 1417 if ( this->gl_config.stencil_size != 0 ) {
1418 attr[i++] = NSOpenGLPFAStencilSize; 1418 attr[i++] = NSOpenGLPFAStencilSize;
1419 attr[i++] = this->gl_config.stencil_size; 1419 attr[i++] = this->gl_config.stencil_size;
1420 } 1420 }
1421 1421
1422 if ( this->gl_config.multisamplebuffers != 0 ) {
1423 attr[i++] = NSOpenGLPFASampleBuffers;
1424 attr[i++] = this->gl_config.multisamplebuffers;
1425 }
1426
1427 if ( this->gl_config.multisamplesamples != 0 ) {
1428 attr[i++] = NSOpenGLPFASamples;
1429 attr[i++] = this->gl_config.multisamplesamples;
1430 }
1431
1422 attr[i++] = NSOpenGLPFAScreenMask; 1432 attr[i++] = NSOpenGLPFAScreenMask;
1423 attr[i++] = CGDisplayIDToOpenGLDisplayMask (display_id); 1433 attr[i++] = CGDisplayIDToOpenGLDisplayMask (display_id);
1424 attr[i] = 0; 1434 attr[i] = 0;
1425 1435
1426 fmt = [ [ NSOpenGLPixelFormat alloc ] initWithAttributes:attr ]; 1436 fmt = [ [ NSOpenGLPixelFormat alloc ] initWithAttributes:attr ];
1501 case SDL_GL_ACCUM_RED_SIZE: attr = GL_ACCUM_RED_BITS; break; 1511 case SDL_GL_ACCUM_RED_SIZE: attr = GL_ACCUM_RED_BITS; break;
1502 case SDL_GL_ACCUM_GREEN_SIZE: attr = GL_ACCUM_GREEN_BITS; break; 1512 case SDL_GL_ACCUM_GREEN_SIZE: attr = GL_ACCUM_GREEN_BITS; break;
1503 case SDL_GL_ACCUM_BLUE_SIZE: attr = GL_ACCUM_BLUE_BITS; break; 1513 case SDL_GL_ACCUM_BLUE_SIZE: attr = GL_ACCUM_BLUE_BITS; break;
1504 case SDL_GL_ACCUM_ALPHA_SIZE: attr = GL_ACCUM_ALPHA_BITS; break; 1514 case SDL_GL_ACCUM_ALPHA_SIZE: attr = GL_ACCUM_ALPHA_BITS; break;
1505 case SDL_GL_STEREO: attr = GL_STEREO; break; 1515 case SDL_GL_STEREO: attr = GL_STEREO; break;
1516 case SDL_GL_MULTISAMPLEBUFFERS: attr = GL_SAMPLE_BUFFERS_ARB; break;
1517 case SDL_GL_MULTISAMPLESAMPLES: attr = GL_SAMPLES_ARB; break;
1506 case SDL_GL_BUFFER_SIZE: 1518 case SDL_GL_BUFFER_SIZE:
1507 { 1519 {
1508 GLint bits = 0; 1520 GLint bits = 0;
1509 GLint component; 1521 GLint component;
1510 1522