comparison src/video/wincommon/SDL_wingl.c @ 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 9c42ee1b7d77
children 338a62f9a528
comparison
equal deleted inserted replaced
655:9c42ee1b7d77 656:864e2d2a9a55
235 if ( this->gl_config.stereo ) { 235 if ( this->gl_config.stereo ) {
236 *iAttr++ = WGL_STEREO_ARB; 236 *iAttr++ = WGL_STEREO_ARB;
237 *iAttr++ = this->gl_config.stereo; 237 *iAttr++ = this->gl_config.stereo;
238 } 238 }
239 239
240 if ( this->gl_config.sample_buffers ) { 240 if ( this->gl_config.multisamplebuffers ) {
241 *iAttr++ = WGL_SAMPLE_BUFFERS_ARB; 241 *iAttr++ = WGL_SAMPLE_BUFFERS_ARB;
242 *iAttr++ = this->gl_config.sample_buffers; 242 *iAttr++ = this->gl_config.multisamplebuffers;
243 } 243 }
244 244
245 if ( this->gl_config.samples ) { 245 if ( this->gl_config.multisamplesamples ) {
246 *iAttr++ = WGL_SAMPLES_ARB; 246 *iAttr++ = WGL_SAMPLES_ARB;
247 *iAttr++ = this->gl_config.samples; 247 *iAttr++ = this->gl_config.multisamplesamples;
248 } 248 }
249 249
250 *iAttr = 0; 250 *iAttr = 0;
251 251
252 /* Choose and set the closest available pixel format */ 252 /* Choose and set the closest available pixel format */
373 wgl_attrib = WGL_ACCUM_ALPHA_BITS_ARB; 373 wgl_attrib = WGL_ACCUM_ALPHA_BITS_ARB;
374 break; 374 break;
375 case SDL_GL_STEREO: 375 case SDL_GL_STEREO:
376 wgl_attrib = WGL_STEREO_ARB; 376 wgl_attrib = WGL_STEREO_ARB;
377 break; 377 break;
378 case SDL_GL_SAMPLE_BUFFERS: 378 case SDL_GL_MULTISAMPLEBUFFERS:
379 wgl_attrib = WGL_SAMPLE_BUFFERS_ARB; 379 wgl_attrib = WGL_SAMPLE_BUFFERS_ARB;
380 break; 380 break;
381 case SDL_GL_SAMPLES: 381 case SDL_GL_MULTISAMPLESAMPLES:
382 wgl_attrib = WGL_SAMPLES_ARB; 382 wgl_attrib = WGL_SAMPLES_ARB;
383 break; 383 break;
384 default: 384 default:
385 return(-1); 385 return(-1);
386 } 386 }