README.MiNT
author Patrice Mandin <patmandin@gmail.com>
Wed, 18 May 2005 17:02:17 +0000
changeset 1061 5023cde12cbd
parent 1042 0e7218843cfb
child 1064 fba6b67b4d60
permissions -rw-r--r--
Add Falcon Centscreen extension support
     1 
     2 ==============================================================================
     3 Using the Simple DirectMedia Layer on Atari
     4 ==============================================================================
     5 
     6 ==============================================================================
     7 I.  Building the Simple DirectMedia Layer libraries:
     8     (This step isn't necessary if you have the SDL binary distribution)
     9 
    10   Do the classic configure, with --disable-shared --enable-static and:
    11 
    12     Tos version (should run everywhere):
    13       --disable-threads
    14     Tos does not support threads.
    15 
    16     MiNT version (maybe Magic, only for multitasking OS):
    17       --disable-pthreads --enable-pth
    18     Mint and Magic may supports threads, so audio can be used with current
    19     devices, like Sun audio, or disk-writing support. Like Tos, interrupt
    20     audio without threads is more suited for Atari machines.
    21 
    22   Then you can make ; make install it.
    23 
    24 ==============================================================================
    25 II. Building the Simple DirectMedia Layer test programs:
    26 
    27   Do the classic configure, then make.
    28 
    29   Run them !
    30 
    31 ==============================================================================
    32 III.  Enjoy! :)
    33 
    34   If you have a project you'd like me to know about, or want to ask questions,
    35   go ahead and join the SDL developer's mailing list by sending e-mail to:
    36 
    37 	sdl-request@libsdl.org
    38 
    39   and put "subscribe" into the subject of the message. Or alternatively you
    40   can use the web interface:
    41 
    42 	http://www.libsdl.org/mailman/listinfo/sdl
    43   
    44 ==============================================================================
    45 IV.  What is supported:
    46 
    47 Keyboard (GEMDOS, BIOS, GEM, Ikbd)
    48 Mouse (XBIOS, GEM, Ikbd)
    49 Video (XBIOS (Fullscreen), GEM (Windowed and Fullscreen))
    50 Timer (VBL vector, GNU pth library)
    51 Joysticks and joypads (Ikbd, Hardware)
    52 Audio (Hardware, XBIOS, GSXB, MCSN, STFA, /dev/audio if threads enabled)
    53 Threads (Multitasking OS only via GNU pth library)
    54 Shared object loader (using LDG library from http://ldg.atari.org/)
    55 Audio CD (MetaDOS)
    56 OpenGL (using Mesa offscreen rendering driver)
    57 
    58 - Driver combinations:
    59 Video   Kbd     Mouse   Timer   Joysticks Joypads	OpenGL
    60 xbios   ikbd    ikbd    vbl(2)  ikbd      hardware	OSMesa
    61 xbios   gemdos  xbios   vbl(2)  xbios     hardware	OSMesa
    62 xbios   bios    xbios   vbl(2)  xbios     hardware	OSMesa
    63 gem     gem     gem(1)  vbl(2)  xbios     hardware	OSMesa
    64 
    65 (1) GEM does not report relative mouse motion, so xbios mouse driver is used
    66 to report this type event.
    67 
    68 (2) If you build SDL with threads using the GNU pth library, timers are
    69 supported via the pth library.
    70 
    71 ==============================================================================
    72 V.  Environment variables:
    73 
    74 SDL_VIDEODRIVER:
    75 	Set to 'xbios' to force xbios video driver
    76 	Set to 'gem' to force gem video driver
    77 
    78 SDL_VIDEO_GL_DRIVER:
    79 	Set to filename to load as OpenGL library, if you use SDL_GL_LoadLibrary()
    80 
    81 SDL_AUDIODRIVER:
    82 	Set to 'mint_gsxb' to force Atari GSXB audio driver
    83 	Set to 'mint_mcsn' to force Atari MCSN audio driver
    84 	Set to 'mint_stfa' to force Atari STFA audio driver
    85 	Set to 'mint_xbios' to force Atari Xbios audio driver
    86 	Set to 'mint_dma8' to force Atari 8 bits DMA audio driver
    87 	Set to 'audio' to force Sun /dev/audio audio driver
    88 	Set to 'disk' to force disk-writing audio driver
    89 
    90 SDL_ATARI_EVENTSDRIVER
    91 	Set to 'ikbd' to force IKBD 6301 keyboard driver
    92 	Set to 'gemdos' to force gemdos keyboard driver
    93 	Set to 'bios' to force bios keyboard driver
    94 
    95 SDL_JOYSTICK_ATARI:
    96 	Use any of these strings in the environment variable to enable or
    97 	disable a joystick:
    98 
    99 	'ikbd-joy1-[on|off]' for IKBD joystick on port 1 (hardware access)
   100 	'xbios-joy1-[on|off]' for IKBD joystick on port 1 (xbios access)
   101 	'porta-pad-[on|off]' for joypad on port A
   102 	'porta-joy0-[on|off]' for joystick 0 on port A
   103 	'porta-joy1-[on|off]' for joystick 1 on port A
   104 	'porta-lp-[on|off]' for lightpen on port A
   105 	'porta-anpad-[on|off]' for analog paddle on port A
   106 	'portb-pad-[on|off]' for joypad on port B
   107 	'portb-joy0-[on|off]' for joystick 0 on port B
   108 	'portb-joy1-[on|off]' for joystick 1 on port B
   109 	'portb-anpad-[on|off]' for analog paddle on port B
   110 
   111 	Default configuration is:
   112 		'ikbd-joy1-on' (if IKBD events driver enabled)
   113 		'xbios-joy1-on' (if gemdos/bios/gem events driver enabled)
   114 		'porta-pad-on portb-pad-on' (if available on the machine)
   115 
   116 	port[a|b]-[pad|joy?|lp|anpad]-* strings are mutually exclusives.
   117 	On such a port, you can only use a joypad OR 1 or 2 joysticks OR
   118 	a lightpen OR an analog paddle. You must disable joypad before
   119 	setting another controller.
   120 
   121 	The second joystick port on IKBD is used by the mouse, so not usable.
   122 
   123 	Descriptions of joysticks/joypads:
   124 	- Joypads: 1 hat, 17 buttons (Atari Jaguar console-like).
   125 	- Joysticks: 1 hat, 1 button.
   126 	- Lightpen, analog paddles: 2 axis, 2 buttons. The 2 buttons are those
   127 	  affected to 1 button joysticks on the same port.
   128 
   129 ==============================================================================
   130 VI.  More informations about drivers:
   131 
   132 OpenGL:
   133 	The default is to use the Mesa offscreen driver (osmesa.ldg). If you want
   134 	to use an older OpenGL implementation, like mesa_gl.ldg or tiny_gl.ldg,
   135 	your program must use SDL_GL_LoadLibrary() to do so, and retrieve the
   136 	needed function pointers with SDL_LoadFunction(). In all cases, the OpenGL
   137 	context is taken care of by SDL itself, you just have to use gl* functions.
   138 
   139 	However, there is one OpenGL call that has a different prototype in the old
   140 	implementations: glOrtho(). In the old implementations, it has 6 float as
   141 	parameters, in the standard one, it has 6 double parameters. If you want
   142 	to compile testdyngl, or any other SDL program that loads its OpenGL
   143 	library, you must change the glOrtho() prototype used in this program. In
   144 	osmesa.ldg, you can retrieve a glOrtho() with double parameters, by searching
   145 	for the function "glOrtho6d".
   146 
   147 Xbios video:
   148 	Video chip is detected using the _VDO cookie.
   149 	Screen enhancers are not supported, but could be if you know how to
   150 	use them.
   151 
   152 	ST, STE, Mega ST, Mega STE:
   153 		320x200x4 bits, shades of grey, available only for the purpose
   154 		of testing SDL.
   155 	TT:
   156 		320x480x8 and 320x240x8 (software double-lined mode).
   157 	Falcon:
   158 		All modes supported by the current monitor (RVB or VGA).
   159 		BlowUp extended modes, ScreenBlaster 3 current mode, Centscreen current
   160 		mode.
   161 	Clones and any machine with monochrome monitor:
   162 		Not supported.
   163 
   164 Gem video:
   165 	Automatically used if xbios not available.
   166 
   167 	All machines:
   168 		Only the current resolution, if 8 bits or higher depth.
   169 
   170 IKBD keyboard, mouse and joystick driver:
   171 	Available if _MCH cookie is ST, Mega ST, STE, Mega STE, TT or Falcon.
   172 
   173 	Hades has an IKBD, but xbios is not available for video, so IKBD
   174 	driver is disabled.
   175 
   176 Gemdos and bios keyboard driver:
   177 	Available on all machines.
   178 
   179 Mouse and joystick xbios driver:
   180 	Available on all machines (I think).
   181 
   182 Joypad driver:
   183 	Available if _MCH cookie is STE or Falcon.
   184 
   185 PTH timer driver:
   186 	Available with multitasking OS.
   187 
   188 VBL timer driver:
   189 	Available on all machines (I think).
   190 
   191 Audio drivers:
   192 	Cookies _SND, MCSN, STFA and GSXB used to detect supported audio
   193 	capabilities.
   194 
   195 	STE, Mega STE, TT:
   196 		8 bits DMA (hardware access)
   197 		STFA, MCSN or GSXB driver if installed
   198 	Falcon:
   199 		8 bits DMA (hardware access)
   200 		Xbios functions
   201 		STFA, MCSN or GSXB driver if installed
   202 	Other machines:
   203 		STFA, MCSN or GSXB driver if installed
   204 
   205 	STFA driver:
   206 		http://removers.free.fr/softs/stfa.html
   207 	GSXB driver:
   208 		http://assemsoft.atari.org/gsxb/
   209 	MacSound driver:
   210 		http://jf.omnis.ch/software/tos/
   211 	MagicSound driver (MCSN,GSXB compatible):
   212 		http://perso.wanadoo.fr/didierm/
   213 	X-Sound driver (GSXB compatible):
   214 		http://www.uni-ulm.de/~s_thuth/atari/xsound_e.html
   215 
   216 -- 
   217 Patrice Mandin <pmandin@caramail.com>
   218 http://membres.lycos.fr/pmandin/