Commits

Anonymous committed 2f089a5

add GL_STEREO

Comments (0)

Files changed (4)

 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+July 26, 2003
+	add GL_STEREO
+
 July 22, 2003
 	add GL_MULTISAMPLEBUFFERS and GL_MULTISAMPLESAMPLES
 

docs/ref/pygame_display.html

 <br>&nbsp;<br>
 The OPENGL flags are; GL_ALPHA_SIZE, GL_DEPTH_SIZE, GL_STENCIL_SIZE,
 GL_ACCUM_RED_SIZE, GL_ACCUM_GREEN_SIZE, GL_ACCUM_BLUE_SIZE, GL_ACCUM_ALPHA_SIZE
-GL_MULTISAMPLEBUFFERS, GL_MULTISAMPLESAMPLES
+GL_MULTISAMPLEBUFFERS, GL_MULTISAMPLESAMPLES, GL_STEREO
 </ul><br>&nbsp;<br>
 
 <a name=iconify><font size=+2><b>iconify
 	DEC_CONST(GL_ACCUM_GREEN_SIZE);
 	DEC_CONST(GL_ACCUM_BLUE_SIZE);
 	DEC_CONST(GL_ACCUM_ALPHA_SIZE);
-#if SDL_VERSIONNUM(2, 2, 6) <= SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
+#if SDL_VERSIONNUM(1, 2, 5) <= SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
+	DEC_CONST(GL_STEREO);
+#else
+	PyModule_AddIntConstant(module, "GL_STEREO", -1);
+#endif
+#if SDL_VERSIONNUM(1, 2, 6) <= SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
 	DEC_CONST(GL_MULTISAMPLEBUFFERS);
 	DEC_CONST(GL_MULTISAMPLESAMPLES);
 #else
     /*DOC*/    "\n"
     /*DOC*/    "The OPENGL flags are; GL_ALPHA_SIZE, GL_DEPTH_SIZE, GL_STENCIL_SIZE,\n"
     /*DOC*/    "GL_ACCUM_RED_SIZE, GL_ACCUM_GREEN_SIZE, GL_ACCUM_BLUE_SIZE, GL_ACCUM_ALPHA_SIZE\n"
-    /*DOC*/    "GL_MULTISAMPLEBUFFERS, GL_MULTISAMPLESAMPLES\n"
+    /*DOC*/    "GL_MULTISAMPLEBUFFERS, GL_MULTISAMPLESAMPLES, GL_STEREO\n"
     /*DOC*/ ;
 
 static PyObject* gl_set_attribute(PyObject* self, PyObject* arg)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.