comparison src/video/SDL_video.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 66c02f83f5bf
comparison
equal deleted inserted replaced
655:9c42ee1b7d77 656:864e2d2a9a55
231 video->gl_config.accum_red_size = 0; 231 video->gl_config.accum_red_size = 0;
232 video->gl_config.accum_green_size = 0; 232 video->gl_config.accum_green_size = 0;
233 video->gl_config.accum_blue_size = 0; 233 video->gl_config.accum_blue_size = 0;
234 video->gl_config.accum_alpha_size = 0; 234 video->gl_config.accum_alpha_size = 0;
235 video->gl_config.stereo = 0; 235 video->gl_config.stereo = 0;
236 video->gl_config.sample_buffers = 0; 236 video->gl_config.multisamplebuffers = 0;
237 video->gl_config.samples = 0; 237 video->gl_config.multisamplesamples = 0;
238 238
239 /* Initialize the video subsystem */ 239 /* Initialize the video subsystem */
240 memset(&vformat, 0, sizeof(vformat)); 240 memset(&vformat, 0, sizeof(vformat));
241 if ( video->VideoInit(video, &vformat) < 0 ) { 241 if ( video->VideoInit(video, &vformat) < 0 ) {
242 SDL_VideoQuit(); 242 SDL_VideoQuit();
1420 video->gl_config.accum_alpha_size = value; 1420 video->gl_config.accum_alpha_size = value;
1421 break; 1421 break;
1422 case SDL_GL_STEREO: 1422 case SDL_GL_STEREO:
1423 video->gl_config.stereo = value; 1423 video->gl_config.stereo = value;
1424 break; 1424 break;
1425 case SDL_GL_SAMPLE_BUFFERS: 1425 case SDL_GL_MULTISAMPLEBUFFERS:
1426 video->gl_config.sample_buffers = value; 1426 video->gl_config.multisamplebuffers = value;
1427 break; 1427 break;
1428 case SDL_GL_SAMPLES: 1428 case SDL_GL_MULTISAMPLESAMPLES:
1429 video->gl_config.samples = value; 1429 video->gl_config.multisamplesamples = value;
1430 break; 1430 break;
1431 default: 1431 default:
1432 SDL_SetError("Unknown OpenGL attribute"); 1432 SDL_SetError("Unknown OpenGL attribute");
1433 retval = -1; 1433 retval = -1;
1434 break; 1434 break;