Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzVideo.m @ 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 | 140798e1e7a6 |
children | 4b8ff8ac2c07 |
comparison
equal
deleted
inserted
replaced
449:8a687496061f | 450:8a43e0cbf02f |
---|---|
1155 | 1155 |
1156 if ( this->gl_config.double_buffer ) { | 1156 if ( this->gl_config.double_buffer ) { |
1157 attr[i++] = NSOpenGLPFADoubleBuffer; | 1157 attr[i++] = NSOpenGLPFADoubleBuffer; |
1158 } | 1158 } |
1159 | 1159 |
1160 if ( this->gl_config.stereo ) { | |
1161 attr[i++] = NSOpenGLPFAStereo; | |
1162 } | |
1163 | |
1160 if ( this->gl_config.stencil_size != 0 ) { | 1164 if ( this->gl_config.stencil_size != 0 ) { |
1161 attr[i++] = NSOpenGLPFAStencilSize; | 1165 attr[i++] = NSOpenGLPFAStencilSize; |
1162 attr[i++] = this->gl_config.stencil_size; | 1166 attr[i++] = this->gl_config.stencil_size; |
1163 } | 1167 } |
1164 | 1168 |
1243 case SDL_GL_STENCIL_SIZE: attr = GL_STENCIL_BITS; break; | 1247 case SDL_GL_STENCIL_SIZE: attr = GL_STENCIL_BITS; break; |
1244 case SDL_GL_ACCUM_RED_SIZE: attr = GL_ACCUM_RED_BITS; break; | 1248 case SDL_GL_ACCUM_RED_SIZE: attr = GL_ACCUM_RED_BITS; break; |
1245 case SDL_GL_ACCUM_GREEN_SIZE: attr = GL_ACCUM_GREEN_BITS; break; | 1249 case SDL_GL_ACCUM_GREEN_SIZE: attr = GL_ACCUM_GREEN_BITS; break; |
1246 case SDL_GL_ACCUM_BLUE_SIZE: attr = GL_ACCUM_BLUE_BITS; break; | 1250 case SDL_GL_ACCUM_BLUE_SIZE: attr = GL_ACCUM_BLUE_BITS; break; |
1247 case SDL_GL_ACCUM_ALPHA_SIZE: attr = GL_ACCUM_ALPHA_BITS; break; | 1251 case SDL_GL_ACCUM_ALPHA_SIZE: attr = GL_ACCUM_ALPHA_BITS; break; |
1252 case SDL_GL_STEREO: attr = GL_STEREO; break; | |
1248 case SDL_GL_BUFFER_SIZE: | 1253 case SDL_GL_BUFFER_SIZE: |
1249 { | 1254 { |
1250 GLint bits = 0; | 1255 GLint bits = 0; |
1251 GLint component; | 1256 GLint component; |
1252 | 1257 |