Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 450:8a43e0cbf02f
Added SDL_GL_STEREO for stereoscopic OpenGL contexts
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 19 Aug 2002 17:58:08 +0000 |
parents | 706de3956894 |
children | b4e14b15af3c |
comparison
equal
deleted
inserted
replaced
449:8a687496061f | 450:8a43e0cbf02f |
---|---|
224 video->gl_config.double_buffer = 1; | 224 video->gl_config.double_buffer = 1; |
225 video->gl_config.accum_red_size = 0; | 225 video->gl_config.accum_red_size = 0; |
226 video->gl_config.accum_green_size = 0; | 226 video->gl_config.accum_green_size = 0; |
227 video->gl_config.accum_blue_size = 0; | 227 video->gl_config.accum_blue_size = 0; |
228 video->gl_config.accum_alpha_size = 0; | 228 video->gl_config.accum_alpha_size = 0; |
229 video->gl_config.stereo = 0; | |
229 | 230 |
230 /* Initialize the video subsystem */ | 231 /* Initialize the video subsystem */ |
231 memset(&vformat, 0, sizeof(vformat)); | 232 memset(&vformat, 0, sizeof(vformat)); |
232 if ( video->VideoInit(video, &vformat) < 0 ) { | 233 if ( video->VideoInit(video, &vformat) < 0 ) { |
233 SDL_VideoQuit(); | 234 SDL_VideoQuit(); |
1368 video->gl_config.depth_size = value; | 1369 video->gl_config.depth_size = value; |
1369 break; | 1370 break; |
1370 case SDL_GL_STENCIL_SIZE: | 1371 case SDL_GL_STENCIL_SIZE: |
1371 video->gl_config.stencil_size = value; | 1372 video->gl_config.stencil_size = value; |
1372 break; | 1373 break; |
1373 case SDL_GL_ACCUM_RED_SIZE: | 1374 case SDL_GL_ACCUM_RED_SIZE: |
1374 video->gl_config.accum_red_size = value; | 1375 video->gl_config.accum_red_size = value; |
1375 break; | 1376 break; |
1376 case SDL_GL_ACCUM_GREEN_SIZE: | 1377 case SDL_GL_ACCUM_GREEN_SIZE: |
1377 video->gl_config.accum_green_size = value; | 1378 video->gl_config.accum_green_size = value; |
1378 break; | 1379 break; |
1379 case SDL_GL_ACCUM_BLUE_SIZE: | 1380 case SDL_GL_ACCUM_BLUE_SIZE: |
1380 video->gl_config.accum_blue_size = value; | 1381 video->gl_config.accum_blue_size = value; |
1381 break; | 1382 break; |
1382 case SDL_GL_ACCUM_ALPHA_SIZE: | 1383 case SDL_GL_ACCUM_ALPHA_SIZE: |
1383 video->gl_config.accum_alpha_size = value; | 1384 video->gl_config.accum_alpha_size = value; |
1385 break; | |
1386 case SDL_GL_STEREO: | |
1387 video->gl_config.stereo = value; | |
1384 break; | 1388 break; |
1385 default: | 1389 default: |
1386 SDL_SetError("Unknown OpenGL attribute"); | 1390 SDL_SetError("Unknown OpenGL attribute"); |
1387 retval = -1; | 1391 retval = -1; |
1388 break; | 1392 break; |