changeset 1007:335d9376a2cd

Document new OpenGL feature
author Patrice Mandin <patmandin@gmail.com>
date Mon, 06 Dec 2004 15:01:00 +0000
parents 3d9a199d2a70
children 5fb02068b648
files README.MiNT
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/README.MiNT	Mon Dec 06 04:17:56 2004 +0000
+++ b/README.MiNT	Mon Dec 06 15:01:00 2004 +0000
@@ -75,6 +75,9 @@
 	Set to 'xbios' to force xbios video driver
 	Set to 'gem' to force gem video driver
 
+SDL_VIDEO_GL_DRIVER:
+	Set to filename to load as OpenGL library, if you use SDL_GL_LoadLibrary()
+
 SDL_AUDIODRIVER:
 	Set to 'mint_gsxb' to force Atari GSXB audio driver
 	Set to 'mint_mcsn' to force Atari MCSN audio driver
@@ -126,6 +129,21 @@
 ==============================================================================
 VI.  More informations about drivers:
 
+OpenGL:
+	The default is to use the Mesa offscreen driver (osmesa.ldg). If you want
+	to use an older OpenGL implementation, like mesa_gl.ldg or tiny_gl.ldg,
+	your program must use SDL_GL_LoadLibrary() to do so, and retrieve the
+	needed function pointers with SDL_LoadFunction(). In all cases, the OpenGL
+	context is taken care of by SDL itself, you just have to use gl* functions.
+
+	However, there is one OpenGL call that has a different prototype in the old
+	implementations: glOrtho(). In the old implementations, it has 6 float as
+	parameters, in the standard one, it has 6 double parameters. If you want
+	to compile testdyngl, or any other SDL program that loads its OpenGL
+	library, you must change the glOrtho() prototype used in this program. In
+	osmesa.ldg, you can retrieve a glOrtho() with double parameters, by searching
+	for the function "glOrtho6d".
+
 Xbios video:
 	Video chip is detected using the _VDO cookie.
 	Screen enhancers are not supported, but could be if you know how to