diff options
Diffstat (limited to 'distrib/sdl-1.2.15/docs/html')
201 files changed, 60956 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.15/docs/html/audio.html b/distrib/sdl-1.2.15/docs/html/audio.html new file mode 100644 index 0000000..94075e2 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/audio.html @@ -0,0 +1,242 @@ +<HTML +><HEAD +><TITLE +>Audio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickClose" +HREF="sdljoystickclose.html"><LINK +REL="NEXT" +TITLE="SDL_AudioSpec" +HREF="sdlaudiospec.html"><META +NAME="KEYWORD" +CONTENT="audio"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickclose.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlaudiospec.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="AUDIO" +></A +>Chapter 10. Audio</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlaudiospec.html" +>SDL_AudioSpec</A +> -- Audio Specification Structure</DT +><DT +><A +HREF="sdlopenaudio.html" +>SDL_OpenAudio</A +> -- Opens the audio device with the desired parameters.</DT +><DT +><A +HREF="sdlpauseaudio.html" +>SDL_PauseAudio</A +> -- Pauses and unpauses the audio callback processing</DT +><DT +><A +HREF="sdlgetaudiostatus.html" +>SDL_GetAudioStatus</A +> -- Get the current audio state</DT +><DT +><A +HREF="sdlloadwav.html" +>SDL_LoadWAV</A +> -- Load a WAVE file</DT +><DT +><A +HREF="sdlfreewav.html" +>SDL_FreeWAV</A +> -- Frees previously opened WAV data</DT +><DT +><A +HREF="sdlaudiocvt.html" +>SDL_AudioCVT</A +> -- Audio Conversion Structure</DT +><DT +><A +HREF="sdlbuildaudiocvt.html" +>SDL_BuildAudioCVT</A +> -- Initializes a SDL_AudioCVT structure for conversion</DT +><DT +><A +HREF="sdlconvertaudio.html" +>SDL_ConvertAudio</A +> -- Convert audio data to a desired audio format.</DT +><DT +><A +HREF="sdlmixaudio.html" +>SDL_MixAudio</A +> -- Mix audio data</DT +><DT +><A +HREF="sdllockaudio.html" +>SDL_LockAudio</A +> -- Lock out the callback function</DT +><DT +><A +HREF="sdlunlockaudio.html" +>SDL_UnlockAudio</A +> -- Unlock the callback function</DT +><DT +><A +HREF="sdlcloseaudio.html" +>SDL_CloseAudio</A +> -- Shuts down audio processing and closes the audio device.</DT +></DL +></DIV +><P +>Sound on the computer is translated from waves that you hear into a series of +values, or samples, each representing the amplitude of the wave. When these +samples are sent in a stream to a sound card, an approximation of the original +wave can be recreated. The more bits used to represent the amplitude, and the +greater frequency these samples are gathered, the closer the approximated +sound is to the original, and the better the quality of sound.</P +><P +>This library supports both 8 and 16 bit signed and unsigned sound samples, +at frequencies ranging from 11025 Hz to 44100 Hz, depending on the +underlying hardware. If the hardware doesn't support the desired audio +format or frequency, it can be emulated if desired (See +<A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio()</TT +></A +>)</P +><P +>A commonly supported audio format is 16 bits per sample at 22050 Hz.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickclose.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlaudiospec.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickClose</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_AudioSpec</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/cdrom.html b/distrib/sdl-1.2.15/docs/html/cdrom.html new file mode 100644 index 0000000..bdd6bfd --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/cdrom.html @@ -0,0 +1,260 @@ +<HTML +><HEAD +><TITLE +>CD-ROM</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CloseAudio" +HREF="sdlcloseaudio.html"><LINK +REL="NEXT" +TITLE="SDL_CDNumDrives" +HREF="sdlcdnumdrives.html"><META +NAME="KEYWORD" +CONTENT="cdrom"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcloseaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdnumdrives.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="CDROM" +></A +>Chapter 11. CD-ROM</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlcdnumdrives.html" +>SDL_CDNumDrives</A +> -- Returns the number of CD-ROM drives on the system.</DT +><DT +><A +HREF="sdlcdname.html" +>SDL_CDName</A +> -- Returns a human-readable, system-dependent identifier for the CD-ROM.</DT +><DT +><A +HREF="sdlcdopen.html" +>SDL_CDOpen</A +> -- Opens a CD-ROM drive for access.</DT +><DT +><A +HREF="sdlcdstatus.html" +>SDL_CDStatus</A +> -- Returns the current status of the given drive.</DT +><DT +><A +HREF="sdlcdplay.html" +>SDL_CDPlay</A +> -- Play a CD</DT +><DT +><A +HREF="sdlcdplaytracks.html" +>SDL_CDPlayTracks</A +> -- Play the given CD track(s)</DT +><DT +><A +HREF="sdlcdpause.html" +>SDL_CDPause</A +> -- Pauses a CDROM</DT +><DT +><A +HREF="sdlcdresume.html" +>SDL_CDResume</A +> -- Resumes a CDROM</DT +><DT +><A +HREF="sdlcdstop.html" +>SDL_CDStop</A +> -- Stops a CDROM</DT +><DT +><A +HREF="sdlcdeject.html" +>SDL_CDEject</A +> -- Ejects a CDROM</DT +><DT +><A +HREF="sdlcdclose.html" +>SDL_CDClose</A +> -- Closes a SDL_CD handle</DT +><DT +><A +HREF="sdlcd.html" +>SDL_CD</A +> -- CDROM Drive Information</DT +><DT +><A +HREF="sdlcdtrack.html" +>SDL_CDtrack</A +> -- CD Track Information Structure</DT +></DL +></DIV +><P +>SDL supports audio control of up to 32 local CD-ROM drives at once.</P +><P +>You use this API to perform all the basic functions of a CD player, +including listing the tracks, playing, stopping, and ejecting the CD-ROM. +(Currently, multi-changer CD drives are not supported.)</P +><P +>Before you call any of the SDL CD-ROM functions, you must first call +"<TT +CLASS="FUNCTION" +>SDL_Init(SDL_INIT_CDROM)</TT +>", which scans the system for +CD-ROM drives, and sets the program up for audio control. Check the +return code, which should be <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, to see if there +were any errors in starting up.</P +><P +>After you have initialized the library, you can find out how many drives +are available using the <TT +CLASS="FUNCTION" +>SDL_CDNumDrives()</TT +> function. +The first drive listed is the system default CD-ROM drive. After you have +chosen a drive, and have opened it with <TT +CLASS="FUNCTION" +>SDL_CDOpen()</TT +>, +you can check the status and start playing if there's a CD in the drive.</P +><P +>A CD-ROM is organized into one or more tracks, each consisting of a certain +number of "frames". Each frame is ~2K in size, and at normal playing speed, +a CD plays 75 frames per second. SDL works with the number of frames on a +CD, but this can easily be converted to the more familiar minutes/seconds +format by using the <TT +CLASS="FUNCTION" +>FRAMES_TO_MSF()</TT +> macro.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcloseaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdnumdrives.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CloseAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDNumDrives</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/event.html b/distrib/sdl-1.2.15/docs/html/event.html new file mode 100644 index 0000000..f2bddb2 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/event.html @@ -0,0 +1,216 @@ +<HTML +><HEAD +><TITLE +>Events</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WM_GrabInput" +HREF="sdlwmgrabinput.html"><LINK +REL="NEXT" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><META +NAME="KEYWORD" +CONTENT="events"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwmgrabinput.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="eventstructures.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="EVENT" +></A +>Chapter 8. Events</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="event.html#AEN3691" +>Introduction</A +></DT +><DT +><A +HREF="eventstructures.html" +>SDL Event Structures.</A +></DT +><DT +><A +HREF="eventfunctions.html" +>Event Functions.</A +></DT +></DL +></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="AEN3691" +></A +>Introduction</H1 +><P +>Event handling allows your application to receive input from the user. Event handling is initalised (along with video) with a call to: +<PRE +CLASS="PROGRAMLISTING" +>SDL_Init(SDL_INIT_VIDEO);</PRE +> +Internally, SDL stores all the events waiting to be handled in an event queue. Using functions like <A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +> and <A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +> you can observe and handle waiting input events.</P +><P +>The key to event handling in SDL is the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union. The event queue itself is composed of a series of <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> unions, one for each waiting event. <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> unions are read from the queue with the <TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +> function and it is then up to the application to process the information stored with them.</P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwmgrabinput.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WM_GrabInput</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL Event Structures.</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/eventfunctions.html b/distrib/sdl-1.2.15/docs/html/eventfunctions.html new file mode 100644 index 0000000..f68a29a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/eventfunctions.html @@ -0,0 +1,481 @@ +<HTML +><HEAD +><TITLE +>Event Functions.</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Events" +HREF="event.html"><LINK +REL="PREVIOUS" +TITLE="SDLKey" +HREF="sdlkey.html"><LINK +REL="NEXT" +TITLE="SDL_PumpEvents" +HREF="sdlpumpevents.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlkey.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 8. Events</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpumpevents.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="EVENTFUNCTIONS" +></A +>Event Functions.</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlpumpevents.html" +>SDL_PumpEvents</A +> -- Pumps the event loop, gathering events from the input devices.</DT +><DT +><A +HREF="sdlpeepevents.html" +>SDL_PeepEvents</A +> -- Checks the event queue for messages and optionally returns them.</DT +><DT +><A +HREF="sdlpollevent.html" +>SDL_PollEvent</A +> -- Polls for currently pending events.</DT +><DT +><A +HREF="sdlwaitevent.html" +>SDL_WaitEvent</A +> -- Waits indefinitely for the next available event.</DT +><DT +><A +HREF="sdlpushevent.html" +>SDL_PushEvent</A +> -- Pushes an event onto the event queue</DT +><DT +><A +HREF="sdlseteventfilter.html" +>SDL_SetEventFilter</A +> -- Sets up a filter to process all events before they are posted +to the event queue.</DT +><DT +><A +HREF="sdlgeteventfilter.html" +>SDL_GetEventFilter</A +> -- Retrieves a pointer to he event filter</DT +><DT +><A +HREF="sdleventstate.html" +>SDL_EventState</A +> -- This function allows you to set the state of processing certain events.</DT +><DT +><A +HREF="sdlgetkeystate.html" +>SDL_GetKeyState</A +> -- Get a snapshot of the current keyboard state</DT +><DT +><A +HREF="sdlgetmodstate.html" +>SDL_GetModState</A +> -- Get the state of modifier keys.</DT +><DT +><A +HREF="sdlsetmodstate.html" +>SDL_SetModState</A +> -- Set the current key modifier state</DT +><DT +><A +HREF="sdlgetkeyname.html" +>SDL_GetKeyName</A +> -- Get the name of an SDL virtual keysym</DT +><DT +><A +HREF="sdlenableunicode.html" +>SDL_EnableUNICODE</A +> -- Enable UNICODE translation</DT +><DT +><A +HREF="sdlenablekeyrepeat.html" +>SDL_EnableKeyRepeat</A +> -- Set keyboard repeat rate.</DT +><DT +><A +HREF="sdlgetmousestate.html" +>SDL_GetMouseState</A +> -- Retrieve the current state of the mouse</DT +><DT +><A +HREF="sdlgetrelativemousestate.html" +>SDL_GetRelativeMouseState</A +> -- Retrieve the current state of the mouse</DT +><DT +><A +HREF="sdlgetappstate.html" +>SDL_GetAppState</A +> -- Get the state of the application</DT +><DT +><A +HREF="sdljoystickeventstate.html" +>SDL_JoystickEventState</A +> -- Enable/disable joystick event polling</DT +></DL +></DIV +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN5312" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlpumpevents.html" +>SDL_PumpEvents</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pumps the event loop, gathering events from the input devices</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlpeepevents.html" +>SDL_PeepEvents</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Checks the event queue for messages and optionally returns them</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlpollevent.html" +>SDL_PollEvent</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Polls for currently pending events</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlwaitevent.html" +>SDL_WaitEvent</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Waits indefinitely for the next available event</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlpushevent.html" +>SDL_PushEvent</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pushes an event onto the event queue</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlseteventfilter.html" +>SDL_SetEventFilter</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Sets up a filter to process all events</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdleventstate.html" +>SDL_EventState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Allows you to set the state of processing certain events</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlgetkeystate.html" +>SDL_GetKeyState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Get a snapshot of the current keyboard state</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlgetmodstate.html" +>SDL_GetModState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Get the state of modifier keys</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlsetmodstate.html" +>SDL_SetModState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Set the state of modifier keys</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlgetkeyname.html" +>SDL_GetKeyName</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Get the name of an SDL virtual keysym</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlenableunicode.html" +>SDL_EnableUNICODE</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Enable UNICODE translation</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlenablekeyrepeat.html" +>SDL_EnableKeyRepeat</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Set keyboard repeat rate</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlgetmousestate.html" +>SDL_GetMouseState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Retrieve the current state of the mouse</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlgetrelativemousestate.html" +>SDL_GetRelativeMouseState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Retrieve the current state of the mouse</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlgetappstate.html" +>SDL_GetAppState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Get the state of the application</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoystickeventstate.html" +>SDL_JoystickEventState</A +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Enable/disable joystick event polling</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlkey.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpumpevents.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDLKey</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="event.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_PumpEvents</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/eventstructures.html b/distrib/sdl-1.2.15/docs/html/eventstructures.html new file mode 100644 index 0000000..c959296 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/eventstructures.html @@ -0,0 +1,233 @@ +<HTML +><HEAD +><TITLE +>SDL Event Structures.</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Events" +HREF="event.html"><LINK +REL="PREVIOUS" +TITLE="Events" +HREF="event.html"><LINK +REL="NEXT" +TITLE="SDL_Event" +HREF="sdlevent.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="event.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 8. Events</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="EVENTSTRUCTURES" +></A +>SDL Event Structures.</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlevent.html" +>SDL_Event</A +> -- General event structure</DT +><DT +><A +HREF="sdlactiveevent.html" +>SDL_ActiveEvent</A +> -- Application visibility event structure</DT +><DT +><A +HREF="sdlkeyboardevent.html" +>SDL_KeyboardEvent</A +> -- Keyboard event structure</DT +><DT +><A +HREF="sdlmousemotionevent.html" +>SDL_MouseMotionEvent</A +> -- Mouse motion event structure</DT +><DT +><A +HREF="sdlmousebuttonevent.html" +>SDL_MouseButtonEvent</A +> -- Mouse button event structure</DT +><DT +><A +HREF="sdljoyaxisevent.html" +>SDL_JoyAxisEvent</A +> -- Joystick axis motion event structure</DT +><DT +><A +HREF="sdljoybuttonevent.html" +>SDL_JoyButtonEvent</A +> -- Joystick button event structure</DT +><DT +><A +HREF="sdljoyhatevent.html" +>SDL_JoyHatEvent</A +> -- Joystick hat position change event structure</DT +><DT +><A +HREF="sdljoyballevent.html" +>SDL_JoyBallEvent</A +> -- Joystick trackball motion event structure</DT +><DT +><A +HREF="sdlresizeevent.html" +>SDL_ResizeEvent</A +> -- Window resize event structure</DT +><DT +><A +HREF="sdlexposeevent.html" +>SDL_ExposeEvent</A +> -- Quit requested event</DT +><DT +><A +HREF="sdlsyswmevent.html" +>SDL_SysWMEvent</A +> -- Platform-dependent window manager event.</DT +><DT +><A +HREF="sdluserevent.html" +>SDL_UserEvent</A +> -- A user-defined event type</DT +><DT +><A +HREF="sdlquitevent.html" +>SDL_QuitEvent</A +> -- Quit requested event</DT +><DT +><A +HREF="sdlkeysym.html" +>SDL_keysym</A +> -- Keysym structure</DT +><DT +><A +HREF="sdlkey.html" +>SDLKey</A +> -- Keysym definitions.</DT +></DL +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="event.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Events</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="event.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Event</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/general.html b/distrib/sdl-1.2.15/docs/html/general.html new file mode 100644 index 0000000..0beb591 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/general.html @@ -0,0 +1,225 @@ +<HTML +><HEAD +><TITLE +>General</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="NEXT" +TITLE="SDL_Init" +HREF="sdlinit.html"><META +NAME="KEYWORD" +CONTENT="general"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="reference.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlinit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="GENERAL" +></A +>Chapter 5. General</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlinit.html" +>SDL_Init</A +> -- Initializes SDL</DT +><DT +><A +HREF="sdlinitsubsystem.html" +>SDL_InitSubSystem</A +> -- Initialize subsystems</DT +><DT +><A +HREF="sdlquitsubsystem.html" +>SDL_QuitSubSystem</A +> -- Shut down a subsystem</DT +><DT +><A +HREF="sdlquit.html" +>SDL_Quit</A +> -- Shut down SDL</DT +><DT +><A +HREF="sdlwasinit.html" +>SDL_WasInit</A +> -- Check which subsystems are initialized</DT +><DT +><A +HREF="sdlgeterror.html" +>SDL_GetError</A +> -- Get SDL error string</DT +><DT +><A +HREF="sdlenvvars.html" +>SDL_envvars</A +> -- SDL environment variables</DT +></DL +></DIV +><P +>Before SDL can be used in a program it must be initialized with <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>. <TT +CLASS="FUNCTION" +>SDL_Init</TT +> initializes all the subsystems that the user requests (video, audio, joystick, timers and/or cdrom). Once SDL is initialized with <TT +CLASS="FUNCTION" +>SDL_Init</TT +> subsystems can be shut down and initialized as needed using <A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +></A +> and <A +HREF="sdlquitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_QuitSubSystem</TT +></A +>.</P +><P +>SDL must also be shut down before the program exits to make sure it cleans up correctly. Calling <A +HREF="sdlquit.html" +><TT +CLASS="FUNCTION" +>SDL_Quit</TT +></A +> shuts down all subsystems and frees any resources allocated to SDL.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlinit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL Reference</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Init</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guide.html b/distrib/sdl-1.2.15/docs/html/guide.html new file mode 100644 index 0000000..2c1297e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guide.html @@ -0,0 +1,174 @@ +<HTML +><HEAD +><TITLE +>SDL Guide</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="PREVIOUS" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="NEXT" +TITLE="Preface" +HREF="guidepreface.html"></HEAD +><BODY +CLASS="PART" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="index.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidepreface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="PART" +><A +NAME="GUIDE" +></A +><DIV +CLASS="TITLEPAGE" +><H1 +CLASS="TITLE" +>I. SDL Guide</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="guidepreface.html" +>Preface</A +></DT +><DT +>1. <A +HREF="guidethebasics.html" +>The Basics</A +></DT +><DT +>2. <A +HREF="guidevideo.html" +>Graphics and Video</A +></DT +><DT +>3. <A +HREF="guideinput.html" +>Input handling</A +></DT +><DT +>4. <A +HREF="guideexamples.html" +>Examples</A +></DT +></DL +></DIV +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidepreface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL Library Documentation</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +> </TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Preface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guideaboutsdldoc.html b/distrib/sdl-1.2.15/docs/html/guideaboutsdldoc.html new file mode 100644 index 0000000..cdb0d78 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guideaboutsdldoc.html @@ -0,0 +1,148 @@ +<HTML +><HEAD +><TITLE +>About SDLdoc</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Preface" +HREF="guidepreface.html"><LINK +REL="PREVIOUS" +TITLE="Preface" +HREF="guidepreface.html"><LINK +REL="NEXT" +TITLE="Credits" +HREF="guidecredits.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidepreface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Preface</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidecredits.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEABOUTSDLDOC" +></A +>About SDLdoc</H1 +><P +>SDLdoc (The SDL Documentation Project) was formed to completely rewrite the SDL documentation and to keep it continually up to date. The team consists completely of volunteers ranging from people working with SDL in their spare time to people who use SDL in their everyday working lives.</P +><P +>The latest version of this documentation can always be found here: http://sdldoc.csn.ul.ie Downloadable PS, man pages and html tarballs are available at http://sdldoc.csn.ul.ie/pub/</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidepreface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidecredits.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Preface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guidepreface.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Credits</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guideaudioexamples.html b/distrib/sdl-1.2.15/docs/html/guideaudioexamples.html new file mode 100644 index 0000000..afb7522 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guideaudioexamples.html @@ -0,0 +1,228 @@ +<HTML +><HEAD +><TITLE +>Audio Examples</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Examples" +HREF="guideexamples.html"><LINK +REL="PREVIOUS" +TITLE="Event Examples" +HREF="guideeventexamples.html"><LINK +REL="NEXT" +TITLE="CDROM Examples" +HREF="guidecdromexamples.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guideeventexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 4. Examples</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidecdromexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEAUDIOEXAMPLES" +></A +>Audio Examples</H1 +><P +></P +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN382" +></A +>Opening the audio device</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> SDL_AudioSpec wanted; + extern void fill_audio(void *udata, Uint8 *stream, int len); + + /* Set the audio format */ + wanted.freq = 22050; + wanted.format = AUDIO_S16; + wanted.channels = 2; /* 1 = mono, 2 = stereo */ + wanted.samples = 1024; /* Good low-latency value for callback */ + wanted.callback = fill_audio; + wanted.userdata = NULL; + + /* Open the audio device, forcing the desired format */ + if ( SDL_OpenAudio(&wanted, NULL) < 0 ) { + fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError()); + return(-1); + } + return(0);</PRE +></P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN386" +></A +>Playing audio</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> static Uint8 *audio_chunk; + static Uint32 audio_len; + static Uint8 *audio_pos; + + /* The audio function callback takes the following parameters: + stream: A pointer to the audio buffer to be filled + len: The length (in bytes) of the audio buffer + */ + void fill_audio(void *udata, Uint8 *stream, int len) + { + /* Only play if we have data left */ + if ( audio_len == 0 ) + return; + + /* Mix as much data as possible */ + len = ( len > audio_len ? audio_len : len ); + SDL_MixAudio(stream, audio_pos, len, SDL_MIX_MAXVOLUME); + audio_pos += len; + audio_len -= len; + } + + /* Load the audio data ... */ + + ;;;;; + + audio_pos = audio_chunk; + + /* Let the callback function play the audio chunk */ + SDL_PauseAudio(0); + + /* Do some processing */ + + ;;;;; + + /* Wait for sound to complete */ + while ( audio_len > 0 ) { + SDL_Delay(100); /* Sleep 1/10 second */ + } + SDL_CloseAudio();</PRE +></P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guideeventexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidecdromexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Event Examples</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guideexamples.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>CDROM Examples</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidebasicsinit.html b/distrib/sdl-1.2.15/docs/html/guidebasicsinit.html new file mode 100644 index 0000000..faafdbd --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidebasicsinit.html @@ -0,0 +1,240 @@ +<HTML +><HEAD +><TITLE +>Initializing SDL</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="The Basics" +HREF="guidethebasics.html"><LINK +REL="PREVIOUS" +TITLE="The Basics" +HREF="guidethebasics.html"><LINK +REL="NEXT" +TITLE="Graphics and Video" +HREF="guidevideo.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidethebasics.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 1. The Basics</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidevideo.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEBASICSINIT" +></A +>Initializing SDL</H1 +><P +>SDL is composed of eight subsystems - Audio, CDROM, Event Handling, File I/O, Joystick Handling, Threading, Timers and Video. Before you can use any of these subsystems they must be initialized by calling <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +> (or <A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +></A +>). <TT +CLASS="FUNCTION" +>SDL_Init</TT +> must be called before any other SDL function. It automatically initializes the Event Handling, File I/O and Threading subsystems and it takes a parameter specifying which other subsystems to initialize. So, to initialize the default subsystems and the Video subsystems you would call: +<PRE +CLASS="PROGRAMLISTING" +> SDL_Init ( SDL_INIT_VIDEO );</PRE +> +To initialize the default subsystems, the Video subsystem and the Timers subsystem you would call: +<PRE +CLASS="PROGRAMLISTING" +> SDL_Init ( SDL_INIT_VIDEO | SDL_INIT_TIMER );</PRE +></P +><P +><TT +CLASS="FUNCTION" +>SDL_Init</TT +> is complemented by <A +HREF="sdlquit.html" +><TT +CLASS="FUNCTION" +>SDL_Quit</TT +></A +> (and <A +HREF="sdlquitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_QuitSubSystem</TT +></A +>). <TT +CLASS="FUNCTION" +>SDL_Quit</TT +> shuts down all subsystems, including the default ones. It should always be called before a SDL application exits.</P +><P +>With <TT +CLASS="FUNCTION" +>SDL_Init</TT +> and <TT +CLASS="FUNCTION" +>SDL_Quit</TT +> firmly embedded in your programmers toolkit you can write your first and most basic SDL application. However, we must be prepare to handle errors. Many SDL functions return a value and indicates whether the function has succeeded or failed, <TT +CLASS="FUNCTION" +>SDL_Init</TT +>, for instance, returns -1 if it could not initialize a subsystem. SDL provides a useful facility that allows you to determine exactly what the problem was, every time an error occurs within SDL an error message is stored which can be retrieved using <TT +CLASS="FUNCTION" +>SDL_GetError</TT +>. Use this often, you can never know too much about an error.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN60" +></A +><P +><B +>Example 1-1. Initializing SDL</B +></P +><PRE +CLASS="PROGRAMLISTING" +>#include "SDL.h" /* All SDL App's need this */ +#include <stdio.h> + +int main(int argc, char *argv[]) { + + printf("Initializing SDL.\n"); + + /* Initialize defaults, Video and Audio */ + if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) { + printf("Could not initialize SDL: %s.\n", SDL_GetError()); + exit(-1); + } + + printf("SDL initialized.\n"); + + printf("Quiting SDL.\n"); + + /* Shutdown all subsystems */ + SDL_Quit(); + + printf("Quiting....\n"); + + exit(0); +} </PRE +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidethebasics.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidevideo.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>The Basics</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guidethebasics.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Graphics and Video</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidecdromexamples.html b/distrib/sdl-1.2.15/docs/html/guidecdromexamples.html new file mode 100644 index 0000000..2bc5a16 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidecdromexamples.html @@ -0,0 +1,275 @@ +<HTML +><HEAD +><TITLE +>CDROM Examples</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Examples" +HREF="guideexamples.html"><LINK +REL="PREVIOUS" +TITLE="Audio Examples" +HREF="guideaudioexamples.html"><LINK +REL="NEXT" +TITLE="Time Examples" +HREF="guidetimeexamples.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guideaudioexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 4. Examples</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidetimeexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDECDROMEXAMPLES" +></A +>CDROM Examples</H1 +><P +></P +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN393" +></A +>Listing CD-ROM drives</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> #include "SDL.h" + + /* Initialize SDL first */ + if ( SDL_Init(SDL_INIT_CDROM) < 0 ) { + fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError()); + exit(1); + } + atexit(SDL_Quit); + + /* Find out how many CD-ROM drives are connected to the system */ + printf("Drives available: %d\n", SDL_CDNumDrives()); + for ( i=0; i<SDL_CDNumDrives(); ++i ) { + printf("Drive %d: \"%s\"\n", i, SDL_CDName(i)); + }</PRE +></P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN397" +></A +>Opening the default drive</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> SDL_CD *cdrom; + CDstatus status; + char *status_str; + + cdrom = SDL_CDOpen(0); + if ( cdrom == NULL ) { + fprintf(stderr, "Couldn't open default CD-ROM drive: %s\n", + SDL_GetError()); + exit(2); + } + + status = SDL_CDStatus(cdrom); + switch (status) { + case CD_TRAYEMPTY: + status_str = "tray empty"; + break; + case CD_STOPPED: + status_str = "stopped"; + break; + case CD_PLAYING: + status_str = "playing"; + break; + case CD_PAUSED: + status_str = "paused"; + break; + case CD_ERROR: + status_str = "error state"; + break; + } + printf("Drive status: %s\n", status_str); + if ( status >= CD_PLAYING ) { + int m, s, f; + FRAMES_TO_MSF(cdrom->cur_frame, &m, &s, &f); + printf("Currently playing track %d, %d:%2.2d\n", + cdrom->track[cdrom->cur_track].id, m, s); + }</PRE +></P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN401" +></A +>Listing the tracks on a CD</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> SDL_CD *cdrom; /* Assuming this has already been set.. */ + int i; + int m, s, f; + + SDL_CDStatus(cdrom); + printf("Drive tracks: %d\n", cdrom->numtracks); + for ( i=0; i<cdrom->numtracks; ++i ) { + FRAMES_TO_MSF(cdrom->track[i].length, &m, &s, &f); + if ( f > 0 ) + ++s; + printf("\tTrack (index %d) %d: %d:%2.2d\n", i, + cdrom->track[i].id, m, s); + }</PRE +></P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN405" +></A +>Play an entire CD</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> SDL_CD *cdrom; /* Assuming this has already been set.. */ + + // Play entire CD: + if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) + SDL_CDPlayTracks(cdrom, 0, 0, 0, 0); + + // Play last track: + if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) { + SDL_CDPlayTracks(cdrom, cdrom->numtracks-1, 0, 0, 0); + } + + // Play first and second track and 10 seconds of third track: + if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) + SDL_CDPlayTracks(cdrom, 0, 0, 2, CD_FPS * 10);</PRE +></P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guideaudioexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidetimeexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Audio Examples</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guideexamples.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Time Examples</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidecredits.html b/distrib/sdl-1.2.15/docs/html/guidecredits.html new file mode 100644 index 0000000..b66b28f --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidecredits.html @@ -0,0 +1,195 @@ +<HTML +><HEAD +><TITLE +>Credits</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Preface" +HREF="guidepreface.html"><LINK +REL="PREVIOUS" +TITLE="About SDLdoc" +HREF="guideaboutsdldoc.html"><LINK +REL="NEXT" +TITLE="The Basics" +HREF="guidethebasics.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guideaboutsdldoc.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Preface</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidethebasics.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDECREDITS" +></A +>Credits</H1 +><P +><P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +>Sam Lantinga, slouken@libsdl.org</TD +></TR +><TR +><TD +>Martin Donlon, akawaka@skynet.ie</TD +></TR +><TR +><TD +>Mattias Engdegård</TD +></TR +><TR +><TD +>Julian Peterson</TD +></TR +><TR +><TD +>Ken Jordan</TD +></TR +><TR +><TD +>Maxim Sobolev</TD +></TR +><TR +><TD +>Wesley Poole</TD +></TR +><TR +><TD +>Michael Vance</TD +></TR +><TR +><TD +>Andreas Umbach</TD +></TR +><TR +><TD +>Andreas Hofmeister</TD +></TR +></TBODY +></TABLE +><P +></P +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guideaboutsdldoc.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidethebasics.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>About SDLdoc</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guidepreface.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>The Basics</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guideeventexamples.html b/distrib/sdl-1.2.15/docs/html/guideeventexamples.html new file mode 100644 index 0000000..3001369 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guideeventexamples.html @@ -0,0 +1,247 @@ +<HTML +><HEAD +><TITLE +>Event Examples</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Examples" +HREF="guideexamples.html"><LINK +REL="PREVIOUS" +TITLE="Examples" +HREF="guideexamples.html"><LINK +REL="NEXT" +TITLE="Audio Examples" +HREF="guideaudioexamples.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guideexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 4. Examples</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guideaudioexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEEVENTEXAMPLES" +></A +>Event Examples</H1 +><P +></P +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN375" +></A +>Filtering and Handling Events</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>#include <stdio.h> +#include <stdlib.h> + +#include "SDL.h" + +/* This function may run in a separate event thread */ +int FilterEvents(const SDL_Event *event) { + static int boycott = 1; + + /* This quit event signals the closing of the window */ + if ( (event->type == SDL_QUIT) && boycott ) { + printf("Quit event filtered out -- try again.\n"); + boycott = 0; + return(0); + } + if ( event->type == SDL_MOUSEMOTION ) { + printf("Mouse moved to (%d,%d)\n", + event->motion.x, event->motion.y); + return(0); /* Drop it, we've handled it */ + } + return(1); +} + +int main(int argc, char *argv[]) +{ + SDL_Event event; + + /* Initialize the SDL library (starts the event loop) */ + if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) { + fprintf(stderr, + "Couldn't initialize SDL: %s\n", SDL_GetError()); + exit(1); + } + + /* Clean up on exit, exit on window close and interrupt */ + atexit(SDL_Quit); + + /* Ignore key events */ + SDL_EventState(SDL_KEYDOWN, SDL_IGNORE); + SDL_EventState(SDL_KEYUP, SDL_IGNORE); + + /* Filter quit and mouse motion events */ + SDL_SetEventFilter(FilterEvents); + + /* The mouse isn't much use unless we have a display for reference */ + if ( SDL_SetVideoMode(640, 480, 8, 0) == NULL ) { + fprintf(stderr, "Couldn't set 640x480x8 video mode: %s\n", + SDL_GetError()); + exit(1); + } + + /* Loop waiting for ESC+Mouse_Button */ + while ( SDL_WaitEvent(&event) >= 0 ) { + switch (event.type) { + case SDL_ACTIVEEVENT: { + if ( event.active.state & SDL_APPACTIVE ) { + if ( event.active.gain ) { + printf("App activated\n"); + } else { + printf("App iconified\n"); + } + } + } + break; + + case SDL_MOUSEBUTTONDOWN: { + Uint8 *keys; + + keys = SDL_GetKeyState(NULL); + if ( keys[SDLK_ESCAPE] == SDL_PRESSED ) { + printf("Bye bye...\n"); + exit(0); + } + printf("Mouse button pressed\n"); + } + break; + + case SDL_QUIT: { + printf("Quit requested, quitting.\n"); + exit(0); + } + break; + } + } + /* This should never happen */ + printf("SDL_WaitEvent error: %s\n", SDL_GetError()); + exit(1); +}</PRE +></P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guideexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guideaudioexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Examples</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guideexamples.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Audio Examples</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guideexamples.html b/distrib/sdl-1.2.15/docs/html/guideexamples.html new file mode 100644 index 0000000..5b9a847 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guideexamples.html @@ -0,0 +1,188 @@ +<HTML +><HEAD +><TITLE +>Examples</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Guide" +HREF="guide.html"><LINK +REL="PREVIOUS" +TITLE="Handling the Keyboard" +HREF="guideinputkeyboard.html"><LINK +REL="NEXT" +TITLE="Event Examples" +HREF="guideeventexamples.html"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guideinputkeyboard.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guideeventexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="GUIDEEXAMPLES" +></A +>Chapter 4. Examples</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="guideexamples.html#AEN369" +>Introduction</A +></DT +><DT +><A +HREF="guideeventexamples.html" +>Event Examples</A +></DT +><DT +><A +HREF="guideaudioexamples.html" +>Audio Examples</A +></DT +><DT +><A +HREF="guidecdromexamples.html" +>CDROM Examples</A +></DT +><DT +><A +HREF="guidetimeexamples.html" +>Time Examples</A +></DT +></DL +></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="AEN369" +></A +>Introduction</H1 +><P +>For the moment these examples are taken directly from the old SDL documentation. By the 1.2 release these examples should hopefully deal with most common SDL programming problems.</P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guideinputkeyboard.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guideeventexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Handling the Keyboard</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Event Examples</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guideinput.html b/distrib/sdl-1.2.15/docs/html/guideinput.html new file mode 100644 index 0000000..9b9bbe1 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guideinput.html @@ -0,0 +1,739 @@ +<HTML +><HEAD +><TITLE +>Input handling</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Guide" +HREF="guide.html"><LINK +REL="PREVIOUS" +TITLE="Using OpenGL With SDL" +HREF="guidevideoopengl.html"><LINK +REL="NEXT" +TITLE="Handling the Keyboard" +HREF="guideinputkeyboard.html"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidevideoopengl.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guideinputkeyboard.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="GUIDEINPUT" +></A +>Chapter 3. Input handling</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="guideinput.html#GUIDEINPUTJOYSTICK" +>Handling Joysticks</A +></DT +><DT +><A +HREF="guideinputkeyboard.html" +>Handling the Keyboard</A +></DT +></DL +></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEINPUTJOYSTICK" +></A +>Handling Joysticks</H1 +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN135" +></A +>Initialization</H2 +><P +>The first step in using a joystick in a SDL program is to initialize the Joystick subsystems of SDL. This done by passing the <TT +CLASS="LITERAL" +>SDL_INIT_JOYSTICK</TT +> flag to <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>. The joystick flag will usually be used in conjunction with other flags (like the video flag) because the joystick is usually used to control something.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN141" +></A +><P +><B +>Example 3-1. Initializing SDL with Joystick Support</B +></P +><PRE +CLASS="PROGRAMLISTING" +> if (SDL_Init( SDL_INIT_VIDEO | SDL_INIT_JOYSTICK ) < 0) + { + fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); + exit(1); + }</PRE +></DIV +><P +>This will attempt to start SDL with both the video and the joystick subsystems activated.</P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN145" +></A +>Querying</H2 +><P +>If we have reached this point then we can safely assume that the SDL library has been initialized and that the Joystick subsystem is active. We can now call some video and/or sound functions to get things going before we need the joystick. Eventually we have to make sure that there is actually a joystick to work with. It's wise to always check even if you know a joystick will be present on the system because it can also help detect when the joystick is unplugged. The function used to check for joysticks is <A +HREF="sdlnumjoysticks.html" +><TT +CLASS="FUNCTION" +>SDL_NumJoysticks</TT +></A +>.</P +><P +>This function simply returns the number of joysticks available on the system. If it is at least one then we are in good shape. The next step is to determine which joystick the user wants to use. If the number of joysticks available is only one then it is safe to assume that one joystick is the one the user wants to use. SDL has a function to get the name of the joysticks as assigned by the operations system and that function is <A +HREF="sdljoystickname.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickName</TT +></A +>. The joystick is specified by an index where 0 is the first joystick and the last joystick is the number returned by <TT +CLASS="FUNCTION" +>SDL_NumJoysticks</TT +> - 1. In the demonstration a list of all available joysticks is printed to stdout.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN154" +></A +><P +><B +>Example 3-2. Querying the Number of Available Joysticks</B +></P +><PRE +CLASS="PROGRAMLISTING" +> printf("%i joysticks were found.\n\n", SDL_NumJoysticks() ); + printf("The names of the joysticks are:\n"); + + for( i=0; i < SDL_NumJoysticks(); i++ ) + { + printf(" %s\n", SDL_JoystickName(i)); + }</PRE +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN157" +></A +>Opening a Joystick and Receiving Joystick Events</H2 +><P +>SDL's event driven architecture makes working with joysticks a snap. Joysticks can trigger 4 different types of events: +<P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><A +HREF="sdljoyaxisevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyAxisEvent</SPAN +></A +></TD +><TD +>Occurs when an axis changes</TD +></TR +><TR +><TD +><A +HREF="sdljoyballevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyBallEvent</SPAN +></A +></TD +><TD +>Occurs when a joystick trackball's position changes</TD +></TR +><TR +><TD +><A +HREF="sdljoyhatevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyHatEvent</SPAN +></A +></TD +><TD +>Occurs when a hat's position changes</TD +></TR +><TR +><TD +><A +HREF="sdljoybuttonevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyButtonEvent</SPAN +></A +></TD +><TD +>Occurs when a button is pressed or released</TD +></TR +></TBODY +></TABLE +><P +></P +></P +><P +>Events are received from all joysticks opened. The first thing that needs to be done in order to receive joystick events is to call <A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +> with the <TT +CLASS="LITERAL" +>SDL_ENABLE</TT +> flag. Next you must open the joysticks that you want to receive events from. This is done with the <A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +> function. For the example we are only interested in events from the first joystick on the system, regardless of what it may be. To receive events from it we would do this:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN183" +></A +><P +><B +>Example 3-3. Opening a Joystick</B +></P +><PRE +CLASS="PROGRAMLISTING" +> SDL_Joystick *joystick; + + SDL_JoystickEventState(SDL_ENABLE); + joystick = SDL_JoystickOpen(0);</PRE +></DIV +><P +>If we wanted to receive events for other joysticks we would open them with calls to <TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +> just like we opened joystick 0, except we would store the <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +> structure they return in a different pointer. We only need the joystick pointer when we are querying the joysticks or when we are closing the joystick.</P +><P +>Up to this point all the code we have is used just to initialize the joysticks in order to read values at run time. All we need now is an event loop, which is something that all SDL programs should have anyway to receive the systems quit events. We must now add code to check the event loop for at least some of the above mentioned events. Let's assume our event loop looks like this: +<PRE +CLASS="PROGRAMLISTING" +> SDL_Event event; + /* Other initializtion code goes here */ + + /* Start main game loop here */ + + while(SDL_PollEvent(&event)) + { + switch(event.type) + { + case SDL_KEYDOWN: + /* handle keyboard stuff here */ + break; + + case SDL_QUIT: + /* Set whatever flags are necessary to */ + /* end the main game loop here */ + break; + } + } + + /* End loop here */</PRE +> +To handle Joystick events we merely add cases for them, first we'll add axis handling code. Axis checks can get kinda of tricky because alot of the joystick events received are junk. Joystick axis have a tendency to vary just a little between polling due to the way they are designed. To compensate for this you have to set a threshold for changes and ignore the events that have'nt exceeded the threshold. 10% is usually a good threshold value. This sounds a lot more complicated than it is. Here is the Axis event handler:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN191" +></A +><P +><B +>Example 3-4. Joystick Axis Events</B +></P +><PRE +CLASS="PROGRAMLISTING" +> case SDL_JOYAXISMOTION: /* Handle Joystick Motion */ + if ( ( event.jaxis.value < -3200 ) || (event.jaxis.value > 3200 ) ) + { + /* code goes here */ + } + break;</PRE +></DIV +><P +>Another trick with axis events is that up-down and left-right movement are two different sets of axes. The most important axis is axis 0 (left-right) and axis 1 (up-down). To handle them seperatly in the code we do the following:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN195" +></A +><P +><B +>Example 3-5. More Joystick Axis Events</B +></P +><PRE +CLASS="PROGRAMLISTING" +> case SDL_JOYAXISMOTION: /* Handle Joystick Motion */ + if ( ( event.jaxis.value < -3200 ) || (event.jaxis.value > 3200 ) ) + { + if( event.jaxis.axis == 0) + { + /* Left-right movement code goes here */ + } + + if( event.jaxis.axis == 1) + { + /* Up-Down movement code goes here */ + } + } + break;</PRE +></DIV +><P +>Ideally the code here should use <TT +CLASS="STRUCTFIELD" +><I +>event.jaxis.value</I +></TT +> to scale something. For example lets assume you are using the joystick to control the movement of a spaceship. If the user is using an analog joystick and they push the stick a little bit they expect to move less than if they pushed it a lot. Designing your code for this situation is preferred because it makes the experience for users of analog controls better and remains the same for users of digital controls.</P +><P +>If your joystick has any additional axis then they may be used for other sticks or throttle controls and those axis return values too just with different <TT +CLASS="STRUCTFIELD" +><I +>event.jaxis.axis</I +></TT +> values.</P +><P +>Button handling is simple compared to the axis checking.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN203" +></A +><P +><B +>Example 3-6. Joystick Button Events</B +></P +><PRE +CLASS="PROGRAMLISTING" +> case SDL_JOYBUTTONDOWN: /* Handle Joystick Button Presses */ + if ( event.jbutton.button == 0 ) + { + /* code goes here */ + } + break;</PRE +></DIV +><P +>Button checks are simpler than axis checks because a button can only be pressed or not pressed. The <TT +CLASS="LITERAL" +>SDL_JOYBUTTONDOWN</TT +> event is triggered when a button is pressed and the <TT +CLASS="LITERAL" +>SDL_JOYBUTTONUP</TT +> event is fired when a button is released. We do have to know what button was pressed though, that is done by reading the <TT +CLASS="STRUCTFIELD" +><I +>event.jbutton.button</I +></TT +> field.</P +><P +>Lastly when we are through using our joysticks we should close them with a call to <A +HREF="sdljoystickclose.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickClose</TT +></A +>. To close our opened joystick 0 we would do this at the end of our program: +<PRE +CLASS="PROGRAMLISTING" +> SDL_JoystickClose(joystick);</PRE +></P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN214" +></A +>Advanced Joystick Functions</H2 +><P +>That takes care of the controls that you can count on being on every joystick under the sun, but there are a few extra things that SDL can support. Joyballs are next on our list, they are alot like axis with a few minor differences. Joyballs store relative changes unlike the the absolute postion stored in a axis event. Also one trackball event contains both the change in x and they change in y. Our case for it is as follows:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN217" +></A +><P +><B +>Example 3-7. Joystick Ball Events</B +></P +><PRE +CLASS="PROGRAMLISTING" +> case SDL_JOYBALLMOTION: /* Handle Joyball Motion */ + if( event.jball.ball == 0 ) + { + /* ball handling */ + } + break;</PRE +></DIV +><P +>The above checks the first joyball on the joystick. The change in position will be stored in <TT +CLASS="STRUCTFIELD" +><I +>event.jball.xrel</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>event.jball.yrel</I +></TT +>.</P +><P +>Finally we have the hat event. Hats report only the direction they are pushed in. We check hat's position with the bitmasks: + +<P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_CENTERED</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_UP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHT</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_DOWN</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFT</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +> + +Also there are some predefined combinations of the above: +<P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHTUP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHTDOWN</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFTUP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFTDOWN</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +> + +Our case for the hat may resemble the following:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN244" +></A +><P +><B +>Example 3-8. Joystick Hat Events</B +></P +><PRE +CLASS="PROGRAMLISTING" +> case SDL_JOYHATMOTION: /* Handle Hat Motion */ + if ( event.jhat.value & SDL_HAT_UP ) + { + /* Do up stuff here */ + } + + if ( event.jhat.value & SDL_HAT_LEFT ) + { + /* Do left stuff here */ + } + + if ( event.jhat.value & SDL_HAT_RIGHTDOWN ) + { + /* Do right and down together stuff here */ + } + break;</PRE +></DIV +><P +>In addition to the queries for number of joysticks on the system and their names there are additional functions to query the capabilities of attached joysticks: +<P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><A +HREF="sdljoysticknumaxes.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumAxes</TT +></A +></TD +><TD +>Returns the number of joysitck axes</TD +></TR +><TR +><TD +><A +HREF="sdljoysticknumbuttons.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumButtons</TT +></A +></TD +><TD +>Returns the number of joysitck buttons</TD +></TR +><TR +><TD +><A +HREF="sdljoysticknumballs.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumBalls</TT +></A +></TD +><TD +>Returns the number of joysitck balls</TD +></TR +><TR +><TD +><A +HREF="sdljoysticknumhats.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumHats</TT +></A +></TD +><TD +>Returns the number of joysitck hats</TD +></TR +></TBODY +></TABLE +><P +></P +> + +To use these functions we just have to pass in the joystick structure we got when we opened the joystick. For Example:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN265" +></A +><P +><B +>Example 3-9. Querying Joystick Characteristics</B +></P +><PRE +CLASS="PROGRAMLISTING" +> int number_of_buttons; + SDL_Joystick *joystick; + + joystick = SDL_JoystickOpen(0); + number_of_buttons = SDL_JoystickNumButtons(joystick);</PRE +></DIV +><P +>This block of code would get the number of buttons on the first joystick in the system. </P +></DIV +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidevideoopengl.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guideinputkeyboard.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Using OpenGL With SDL</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Handling the Keyboard</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guideinputkeyboard.html b/distrib/sdl-1.2.15/docs/html/guideinputkeyboard.html new file mode 100644 index 0000000..787036c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guideinputkeyboard.html @@ -0,0 +1,746 @@ +<HTML +><HEAD +><TITLE +>Handling the Keyboard</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Input handling" +HREF="guideinput.html"><LINK +REL="PREVIOUS" +TITLE="Input handling" +HREF="guideinput.html"><LINK +REL="NEXT" +TITLE="Examples" +HREF="guideexamples.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guideinput.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 3. Input handling</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guideexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEINPUTKEYBOARD" +></A +>Handling the Keyboard</H1 +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN271" +></A +>Keyboard Related Structures</H2 +><P +>It should make it a lot easier to understand this tutorial is you are familiar with the data types involved in keyboard access, so I'll explain them first.</P +><DIV +CLASS="SECT3" +><H3 +CLASS="SECT3" +><A +NAME="AEN274" +></A +>SDLKey</H3 +><P +><SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +> is an enumerated type defined in SDL/include/SDL_keysym.h and detailed <A +HREF="sdlkey.html" +>here</A +>. Each <SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +> symbol represents a key, <TT +CLASS="LITERAL" +>SDLK_a</TT +> corresponds to the 'a' key on a keyboard, <TT +CLASS="LITERAL" +>SDLK_SPACE</TT +> corresponds to the space bar, and so on.</P +></DIV +><DIV +CLASS="SECT3" +><H3 +CLASS="SECT3" +><A +NAME="AEN282" +></A +>SDLMod</H3 +><P +>SDLMod is an enumerated type, similar to <SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +>, however it enumerates keyboard modifiers (Control, Alt, Shift). The full list of modifier symbols is <A +HREF="sdlkey.html#SDLMOD" +>here</A +>. <SPAN +CLASS="STRUCTNAME" +>SDLMod</SPAN +> values can be AND'd together to represent several modifiers.</P +></DIV +><DIV +CLASS="SECT3" +><H3 +CLASS="SECT3" +><A +NAME="AEN288" +></A +>SDL_keysym</H3 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 scancode; + SDLKey sym; + SDLMod mod; + Uint16 unicode; +} SDL_keysym;</PRE +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_keysym</SPAN +> structure describes a key press or a key release. The <TT +CLASS="STRUCTFIELD" +><I +>scancode</I +></TT +> field is hardware specific and should be ignored unless you know what your doing. The <TT +CLASS="STRUCTFIELD" +><I +>sym</I +></TT +> field is the <SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +> value of the key being pressed or released. The <TT +CLASS="STRUCTFIELD" +><I +>mod</I +></TT +> field describes the state of the keyboard modifiers at the time the key press or release occurred. So a value of <TT +CLASS="LITERAL" +>KMOD_NUM | KMOD_CAPS | KMOD_LSHIFT</TT +> would mean that Numlock, Capslock and the left shift key were all press (or enabled in the case of the lock keys). Finally, the <TT +CLASS="STRUCTFIELD" +><I +>unicode</I +></TT +> field stores the 16-bit unicode value of the key.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>It should be noted and understood that this field is only valid when the <SPAN +CLASS="STRUCTNAME" +>SDL_keysym</SPAN +> is describing a key press, not a key release. Unicode values only make sense on a key press because the unicode value describes an international character and only key presses produce characters. More information on Unicode can be found at <A +HREF="http://www.unicode.org" +TARGET="_top" +>www.unicode.org</A +></P +></BLOCKQUOTE +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Unicode translation must be enabled using the <A +HREF="sdlenableunicode.html" +><TT +CLASS="FUNCTION" +>SDL_EnableUNICODE</TT +></A +> function.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="SECT3" +><H3 +CLASS="SECT3" +><A +NAME="AEN307" +></A +>SDL_KeyboardEvent</H3 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 state; + SDL_keysym keysym; +} SDL_KeyboardEvent;</PRE +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_KeyboardEvent</SPAN +> describes a keyboard event (obviously). The <TT +CLASS="STRUCTFIELD" +><I +>key</I +></TT +> member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union is a <SPAN +CLASS="STRUCTNAME" +>SDL_KeyboardEvent</SPAN +> structure. The <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> field specifies whether the event is a key release (<TT +CLASS="LITERAL" +>SDL_KEYUP</TT +>) or a key press (<TT +CLASS="LITERAL" +>SDL_KEYDOWN</TT +>) event. The <TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +> is largely redundant, it reports the same information as the <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> field but uses different values (<TT +CLASS="LITERAL" +>SDL_RELEASED</TT +> and <TT +CLASS="LITERAL" +>SDL_PRESSED</TT +>). The <TT +CLASS="STRUCTFIELD" +><I +>keysym</I +></TT +> contains information of the key press or release that this event represents (see above).</P +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN324" +></A +>Reading Keyboard Events</H2 +><P +>Reading keybaord events from the event queue is quite simple (the event queue and using it is described <A +HREF="sdlevent.html" +>here</A +>). We read events using <A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +> in a <TT +CLASS="LITERAL" +>while()</TT +> loop and check for <TT +CLASS="LITERAL" +>SDL_KEYUP</TT +> and <TT +CLASS="LITERAL" +>SDL_KEYDOWN</TT +> events using a <TT +CLASS="LITERAL" +>switch</TT +> statement, like so:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN334" +></A +><P +><B +>Example 3-10. Reading Keyboard Events</B +></P +><PRE +CLASS="PROGRAMLISTING" +> SDL_Event event; + . + . + /* Poll for events. SDL_PollEvent() returns 0 when there are no */ + /* more events on the event queue, our while loop will exit when */ + /* that occurs. */ + while( SDL_PollEvent( &event ) ){ + /* We are only worried about SDL_KEYDOWN and SDL_KEYUP events */ + switch( event.type ){ + case SDL_KEYDOWN: + printf( "Key press detected\n" ); + break; + + case SDL_KEYUP: + printf( "Key release detected\n" ); + break; + + default: + break; + } + } + . + .</PRE +></DIV +><P +>This is a very basic example. No information about the key press or release is interpreted. We will explore the other extreme out our first full example below - reporting all available information about a keyboard event.</P +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN338" +></A +>A More Detailed Look</H2 +><P +>Before we can read events SDL must be initialised with <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +> and a video mode must be set using <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>. There are, however, two other functions we must use to obtain all the information required. We must enable unicode translation by calling <TT +CLASS="FUNCTION" +>SDL_EnableUNICODE(1)</TT +> and we must convert <SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +> values into something printable, using <A +HREF="sdlgetkeyname.html" +><TT +CLASS="FUNCTION" +>SDL_GetKeyName</TT +></A +></P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>It is useful to note that unicode values < 0x80 translate directly a characters ASCII value. THis is used in the example below</P +></BLOCKQUOTE +></DIV +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN351" +></A +><P +><B +>Example 3-11. Interpreting Key Event Information</B +></P +><PRE +CLASS="PROGRAMLISTING" +> #include "SDL.h" + + /* Function Prototypes */ + void PrintKeyInfo( SDL_KeyboardEvent *key ); + void PrintModifiers( SDLMod mod ); + + /* main */ + int main( int argc, char *argv[] ){ + + SDL_Event event; + int quit = 0; + + /* Initialise SDL */ + if( SDL_Init( SDL_INIT_VIDEO ) < 0){ + fprintf( stderr, "Could not initialise SDL: %s\n", SDL_GetError() ); + exit( -1 ); + } + + /* Set a video mode */ + if( !SDL_SetVideoMode( 320, 200, 0, 0 ) ){ + fprintf( stderr, "Could not set video mode: %s\n", SDL_GetError() ); + SDL_Quit(); + exit( -1 ); + } + + /* Enable Unicode translation */ + SDL_EnableUNICODE( 1 ); + + /* Loop until an SDL_QUIT event is found */ + while( !quit ){ + + /* Poll for events */ + while( SDL_PollEvent( &event ) ){ + + switch( event.type ){ + /* Keyboard event */ + /* Pass the event data onto PrintKeyInfo() */ + case SDL_KEYDOWN: + case SDL_KEYUP: + PrintKeyInfo( &event.key ); + break; + + /* SDL_QUIT event (window close) */ + case SDL_QUIT: + quit = 1; + break; + + default: + break; + } + + } + + } + + /* Clean up */ + SDL_Quit(); + exit( 0 ); + } + + /* Print all information about a key event */ + void PrintKeyInfo( SDL_KeyboardEvent *key ){ + /* Is it a release or a press? */ + if( key->type == SDL_KEYUP ) + printf( "Release:- " ); + else + printf( "Press:- " ); + + /* Print the hardware scancode first */ + printf( "Scancode: 0x%02X", key->keysym.scancode ); + /* Print the name of the key */ + printf( ", Name: %s", SDL_GetKeyName( key->keysym.sym ) ); + /* We want to print the unicode info, but we need to make */ + /* sure its a press event first (remember, release events */ + /* don't have unicode info */ + if( key->type == SDL_KEYDOWN ){ + /* If the Unicode value is less than 0x80 then the */ + /* unicode value can be used to get a printable */ + /* representation of the key, using (char)unicode. */ + printf(", Unicode: " ); + if( key->keysym.unicode < 0x80 && key->keysym.unicode > 0 ){ + printf( "%c (0x%04X)", (char)key->keysym.unicode, + key->keysym.unicode ); + } + else{ + printf( "? (0x%04X)", key->keysym.unicode ); + } + } + printf( "\n" ); + /* Print modifier info */ + PrintModifiers( key->keysym.mod ); + } + + /* Print modifier info */ + void PrintModifiers( SDLMod mod ){ + printf( "Modifers: " ); + + /* If there are none then say so and return */ + if( mod == KMOD_NONE ){ + printf( "None\n" ); + return; + } + + /* Check for the presence of each SDLMod value */ + /* This looks messy, but there really isn't */ + /* a clearer way. */ + if( mod & KMOD_NUM ) printf( "NUMLOCK " ); + if( mod & KMOD_CAPS ) printf( "CAPSLOCK " ); + if( mod & KMOD_LCTRL ) printf( "LCTRL " ); + if( mod & KMOD_RCTRL ) printf( "RCTRL " ); + if( mod & KMOD_RSHIFT ) printf( "RSHIFT " ); + if( mod & KMOD_LSHIFT ) printf( "LSHIFT " ); + if( mod & KMOD_RALT ) printf( "RALT " ); + if( mod & KMOD_LALT ) printf( "LALT " ); + if( mod & KMOD_CTRL ) printf( "CTRL " ); + if( mod & KMOD_SHIFT ) printf( "SHIFT " ); + if( mod & KMOD_ALT ) printf( "ALT " ); + printf( "\n" ); + }</PRE +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN354" +></A +>Game-type Input</H2 +><P +>I have found that people using keyboard events for games and other interactive applications don't always understand one fundemental point.</P +><A +NAME="AEN357" +></A +><BLOCKQUOTE +CLASS="BLOCKQUOTE" +><P +>Keyboard events <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>only</I +></SPAN +> take place when a keys state changes from being unpressed to pressed, and vice versa.</P +></BLOCKQUOTE +><P +>Imagine you have an image of an alien that you wish to move around using the cursor keys: when you pressed the left arrow key you want him to slide over to the left, and when you press the down key you want him to slide down the screen. Examine the following code; it highlights an error that many people have made. +<PRE +CLASS="PROGRAMLISTING" +> /* Alien screen coordinates */ + int alien_x=0, alien_y=0; + . + . + /* Initialise SDL and video modes and all that */ + . + /* Main game loop */ + /* Check for events */ + while( SDL_PollEvent( &event ) ){ + switch( event.type ){ + /* Look for a keypress */ + case SDL_KEYDOWN: + /* Check the SDLKey values and move change the coords */ + switch( event.key.keysym.sym ){ + case SDLK_LEFT: + alien_x -= 1; + break; + case SDLK_RIGHT: + alien_x += 1; + break; + case SDLK_UP: + alien_y -= 1; + break; + case SDLK_DOWN: + alien_y += 1; + break; + default: + break; + } + } + } + } + . + .</PRE +> +At first glance you may think this is a perfectly reasonable piece of code for the task, but it isn't. Like I said keyboard events only occur when a key changes state, so the user would have to press and release the left cursor key 100 times to move the alien 100 pixels to the left.</P +><P +>To get around this problem we must not use the events to change the position of the alien, we use the events to set flags which are then used in a seperate section of code to move the alien. Something like this:</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN363" +></A +><P +><B +>Example 3-12. Proper Game Movement</B +></P +><PRE +CLASS="PROGRAMLISTING" +> /* Alien screen coordinates */ + int alien_x=0, alien_y=0; + int alien_xvel=0, alien_yvel=0; + . + . + /* Initialise SDL and video modes and all that */ + . + /* Main game loop */ + /* Check for events */ + while( SDL_PollEvent( &event ) ){ + switch( event.type ){ + /* Look for a keypress */ + case SDL_KEYDOWN: + /* Check the SDLKey values and move change the coords */ + switch( event.key.keysym.sym ){ + case SDLK_LEFT: + alien_xvel = -1; + break; + case SDLK_RIGHT: + alien_xvel = 1; + break; + case SDLK_UP: + alien_yvel = -1; + break; + case SDLK_DOWN: + alien_yvel = 1; + break; + default: + break; + } + break; + /* We must also use the SDL_KEYUP events to zero the x */ + /* and y velocity variables. But we must also be */ + /* careful not to zero the velocities when we shouldn't*/ + case SDL_KEYUP: + switch( event.key.keysym.sym ){ + case SDLK_LEFT: + /* We check to make sure the alien is moving */ + /* to the left. If it is then we zero the */ + /* velocity. If the alien is moving to the */ + /* right then the right key is still press */ + /* so we don't tocuh the velocity */ + if( alien_xvel < 0 ) + alien_xvel = 0; + break; + case SDLK_RIGHT: + if( alien_xvel > 0 ) + alien_xvel = 0; + break; + case SDLK_UP: + if( alien_yvel < 0 ) + alien_yvel = 0; + break; + case SDLK_DOWN: + if( alien_yvel > 0 ) + alien_yvel = 0; + break; + default: + break; + } + break; + + default: + break; + } + } + . + . + /* Update the alien position */ + alien_x += alien_xvel; + alien_y += alien_yvel;</PRE +></DIV +><P +>As can be seen, we use two extra variables, alien_xvel and alien_yvel, which represent the motion of the ship, it is these variables that we update when we detect keypresses and releases.</P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guideinput.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guideexamples.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Input handling</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guideinput.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Examples</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidepreface.html b/distrib/sdl-1.2.15/docs/html/guidepreface.html new file mode 100644 index 0000000..9986fc6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidepreface.html @@ -0,0 +1,178 @@ +<HTML +><HEAD +><TITLE +>Preface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Guide" +HREF="guide.html"><LINK +REL="PREVIOUS" +TITLE="SDL Guide" +HREF="guide.html"><LINK +REL="NEXT" +TITLE="About SDLdoc" +HREF="guideaboutsdldoc.html"></HEAD +><BODY +CLASS="PREFACE" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guide.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guideaboutsdldoc.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="PREFACE" +><H1 +><A +NAME="GUIDEPREFACE" +></A +>Preface</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="guidepreface.html#GUIDEABOUTSDL" +>About SDL</A +></DT +><DT +><A +HREF="guideaboutsdldoc.html" +>About SDLdoc</A +></DT +><DT +><A +HREF="guidecredits.html" +>Credits</A +></DT +></DL +></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEABOUTSDL" +></A +>About SDL</H1 +><P +>The SDL library is designed to make it easy to write games that run on Linux, *BSD, MacOS, Win32 and BeOS using the various native high-performance media interfaces, (for video, audio, etc) and presenting a single source-code level API to your application. SDL is a fairly low level API, but using it, completely portable applications can be written with a great deal of flexibility.</P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guideaboutsdldoc.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL Guide</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>About SDLdoc</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidethebasics.html b/distrib/sdl-1.2.15/docs/html/guidethebasics.html new file mode 100644 index 0000000..4f32363 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidethebasics.html @@ -0,0 +1,173 @@ +<HTML +><HEAD +><TITLE +>The Basics</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Guide" +HREF="guide.html"><LINK +REL="PREVIOUS" +TITLE="Credits" +HREF="guidecredits.html"><LINK +REL="NEXT" +TITLE="Initializing SDL" +HREF="guidebasicsinit.html"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidecredits.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidebasicsinit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="GUIDETHEBASICS" +></A +>Chapter 1. The Basics</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="guidethebasics.html#GUIDEINTRODUCTION" +>Introduction</A +></DT +><DT +><A +HREF="guidebasicsinit.html" +>Initializing SDL</A +></DT +></DL +></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEINTRODUCTION" +></A +>Introduction</H1 +><P +>The SDL Guide section is pretty incomplete. If you feel you have anything to add mail akawaka@skynet.ie or visit http://akawaka.csn.ul.ie/tne/.</P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidecredits.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidebasicsinit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Credits</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Initializing SDL</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidetimeexamples.html b/distrib/sdl-1.2.15/docs/html/guidetimeexamples.html new file mode 100644 index 0000000..42b5019 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidetimeexamples.html @@ -0,0 +1,183 @@ +<HTML +><HEAD +><TITLE +>Time Examples</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Examples" +HREF="guideexamples.html"><LINK +REL="PREVIOUS" +TITLE="CDROM Examples" +HREF="guidecdromexamples.html"><LINK +REL="NEXT" +TITLE="SDL Reference" +HREF="reference.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidecdromexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 4. Examples</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="reference.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDETIMEEXAMPLES" +></A +>Time Examples</H1 +><P +></P +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN412" +></A +>Time based game loop</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>#define TICK_INTERVAL 30 + +static Uint32 next_time; + +Uint32 time_left(void) +{ + Uint32 now; + + now = SDL_GetTicks(); + if(next_time <= now) + return 0; + else + return next_time - now; +} + + +/* main game loop */ + + next_time = SDL_GetTicks() + TICK_INTERVAL; + while ( game_running ) { + update_game_state(); + SDL_Delay(time_left()); + next_time += TICK_INTERVAL; + } </PRE +></P +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidecdromexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>CDROM Examples</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guideexamples.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL Reference</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidevideo.html b/distrib/sdl-1.2.15/docs/html/guidevideo.html new file mode 100644 index 0000000..85da77d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidevideo.html @@ -0,0 +1,463 @@ +<HTML +><HEAD +><TITLE +>Graphics and Video</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Guide" +HREF="guide.html"><LINK +REL="PREVIOUS" +TITLE="Initializing SDL" +HREF="guidebasicsinit.html"><LINK +REL="NEXT" +TITLE="Using OpenGL With SDL" +HREF="guidevideoopengl.html"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidebasicsinit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guidevideoopengl.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="GUIDEVIDEO" +></A +>Chapter 2. Graphics and Video</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="guidevideo.html#GUIDEVIDEOINTRO" +>Introduction to SDL Video</A +></DT +><DT +><A +HREF="guidevideoopengl.html" +>Using OpenGL With SDL</A +></DT +></DL +></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEVIDEOINTRO" +></A +>Introduction to SDL Video</H1 +><P +>Video is probably the most common thing that SDL is used for, and +so it has the most complete subsystem. Here are a few +examples to demonstrate the basics.</P +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN68" +></A +>Initializing the Video Display</H2 +><P +>This is what almost all SDL programs have to do in one way or +another.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN71" +></A +><P +><B +>Example 2-1. Initializing the Video Display</B +></P +><PRE +CLASS="PROGRAMLISTING" +> SDL_Surface *screen; + + /* Initialize the SDL library */ + if( SDL_Init(SDL_INIT_VIDEO) < 0 ) { + fprintf(stderr, + "Couldn't initialize SDL: %s\n", SDL_GetError()); + exit(1); + } + + /* Clean up on exit */ + atexit(SDL_Quit); + + /* + * Initialize the display in a 640x480 8-bit palettized mode, + * requesting a software surface + */ + screen = SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE); + if ( screen == NULL ) { + fprintf(stderr, "Couldn't set 640x480x8 video mode: %s\n", + SDL_GetError()); + exit(1); + }</PRE +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN74" +></A +>Initializing the Best Video Mode</H2 +><P +>If you have a preference for a certain pixel depth but will accept any +other, use SDL_SetVideoMode with SDL_ANYFORMAT as below. You can also +use SDL_VideoModeOK() to find the native video mode that is closest to +the mode you request.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN77" +></A +><P +><B +>Example 2-2. Initializing the Best Video Mode</B +></P +><PRE +CLASS="PROGRAMLISTING" +> /* Have a preference for 8-bit, but accept any depth */ + screen = SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE|SDL_ANYFORMAT); + if ( screen == NULL ) { + fprintf(stderr, "Couldn't set 640x480x8 video mode: %s\n", + SDL_GetError()); + exit(1); + } + printf("Set 640x480 at %d bits-per-pixel mode\n", + screen->format->BitsPerPixel);</PRE +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN80" +></A +>Loading and Displaying a BMP File</H2 +><P +>The following function loads and displays a BMP file given as +argument, once SDL is initialised and a video mode has been set.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN83" +></A +><P +><B +>Example 2-3. Loading and Displaying a BMP File</B +></P +><PRE +CLASS="PROGRAMLISTING" +>void display_bmp(char *file_name) +{ + SDL_Surface *image; + + /* Load the BMP file into a surface */ + image = SDL_LoadBMP(file_name); + if (image == NULL) { + fprintf(stderr, "Couldn't load %s: %s\n", file_name, SDL_GetError()); + return; + } + + /* + * Palettized screen modes will have a default palette (a standard + * 8*8*4 colour cube), but if the image is palettized as well we can + * use that palette for a nicer colour matching + */ + if (image->format->palette && screen->format->palette) { + SDL_SetColors(screen, image->format->palette->colors, 0, + image->format->palette->ncolors); + } + + /* Blit onto the screen surface */ + if(SDL_BlitSurface(image, NULL, screen, NULL) < 0) + fprintf(stderr, "BlitSurface error: %s\n", SDL_GetError()); + + SDL_UpdateRect(screen, 0, 0, image->w, image->h); + + /* Free the allocated BMP surface */ + SDL_FreeSurface(image); +}</PRE +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN86" +></A +>Drawing Directly to the Display</H2 +><P +>The following two functions can be used to get and set single +pixels of a surface. They are carefully written to work with any depth +currently supported by SDL. Remember to lock the surface before +calling them, and to unlock it before calling any other SDL +functions.</P +><P +>To convert between pixel values and their red, green, blue +components, use SDL_GetRGB() and SDL_MapRGB().</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN90" +></A +><P +><B +>Example 2-4. getpixel()</B +></P +><PRE +CLASS="PROGRAMLISTING" +>/* + * Return the pixel value at (x, y) + * NOTE: The surface must be locked before calling this! + */ +Uint32 getpixel(SDL_Surface *surface, int x, int y) +{ + int bpp = surface->format->BytesPerPixel; + /* Here p is the address to the pixel we want to retrieve */ + Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp; + + switch(bpp) { + case 1: + return *p; + + case 2: + return *(Uint16 *)p; + + case 3: + if(SDL_BYTEORDER == SDL_BIG_ENDIAN) + return p[0] << 16 | p[1] << 8 | p[2]; + else + return p[0] | p[1] << 8 | p[2] << 16; + + case 4: + return *(Uint32 *)p; + + default: + return 0; /* shouldn't happen, but avoids warnings */ + } +}</PRE +></DIV +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN93" +></A +><P +><B +>Example 2-5. putpixel()</B +></P +><PRE +CLASS="PROGRAMLISTING" +>/* + * Set the pixel at (x, y) to the given value + * NOTE: The surface must be locked before calling this! + */ +void putpixel(SDL_Surface *surface, int x, int y, Uint32 pixel) +{ + int bpp = surface->format->BytesPerPixel; + /* Here p is the address to the pixel we want to set */ + Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp; + + switch(bpp) { + case 1: + *p = pixel; + break; + + case 2: + *(Uint16 *)p = pixel; + break; + + case 3: + if(SDL_BYTEORDER == SDL_BIG_ENDIAN) { + p[0] = (pixel >> 16) & 0xff; + p[1] = (pixel >> 8) & 0xff; + p[2] = pixel & 0xff; + } else { + p[0] = pixel & 0xff; + p[1] = (pixel >> 8) & 0xff; + p[2] = (pixel >> 16) & 0xff; + } + break; + + case 4: + *(Uint32 *)p = pixel; + break; + } +}</PRE +></DIV +><P +>The following code uses the putpixel() function above to set a +yellow pixel in the middle of the screen.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN97" +></A +><P +><B +>Example 2-6. Using putpixel()</B +></P +><PRE +CLASS="PROGRAMLISTING" +> /* Code to set a yellow pixel at the center of the screen */ + + int x, y; + Uint32 yellow; + + /* Map the color yellow to this display (R=0xff, G=0xFF, B=0x00) + Note: If the display is palettized, you must set the palette first. + */ + yellow = SDL_MapRGB(screen->format, 0xff, 0xff, 0x00); + + x = screen->w / 2; + y = screen->h / 2; + + /* Lock the screen for direct access to the pixels */ + if ( SDL_MUSTLOCK(screen) ) { + if ( SDL_LockSurface(screen) < 0 ) { + fprintf(stderr, "Can't lock screen: %s\n", SDL_GetError()); + return; + } + } + + putpixel(screen, x, y, yellow); + + if ( SDL_MUSTLOCK(screen) ) { + SDL_UnlockSurface(screen); + } + /* Update just the part of the display that we've changed */ + SDL_UpdateRect(screen, x, y, 1, 1); + + return; </PRE +></DIV +></DIV +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidebasicsinit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guidevideoopengl.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Initializing SDL</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Using OpenGL With SDL</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/guidevideoopengl.html b/distrib/sdl-1.2.15/docs/html/guidevideoopengl.html new file mode 100644 index 0000000..0abd567 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/guidevideoopengl.html @@ -0,0 +1,730 @@ +<HTML +><HEAD +><TITLE +>Using OpenGL With SDL</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Graphics and Video" +HREF="guidevideo.html"><LINK +REL="PREVIOUS" +TITLE="Graphics and Video" +HREF="guidevideo.html"><LINK +REL="NEXT" +TITLE="Input handling" +HREF="guideinput.html"></HEAD +><BODY +CLASS="SECT1" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidevideo.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +>Chapter 2. Graphics and Video</TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="guideinput.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="SECT1" +><H1 +CLASS="SECT1" +><A +NAME="GUIDEVIDEOOPENGL" +></A +>Using OpenGL With SDL</H1 +><P +>SDL has the ability to create and use OpenGL contexts on several platforms(Linux/X11, Win32, BeOS, MacOS Classic/Toolbox, Mac OS X, FreeBSD/X11 and Solaris/X11). This allows you to use SDL's audio, event handling, threads and times in your OpenGL applications (a function often performed by GLUT).</P +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN103" +></A +>Initialisation</H2 +><P +>Initialising SDL to use OpenGL is not very different to initialising SDL normally. There are three differences; you must pass <TT +CLASS="LITERAL" +>SDL_OPENGL</TT +> to <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, you must specify several GL attributes (depth buffer size, framebuffer sizes) using <A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +> and finally, if you wish to use double buffering you must specify it as a GL attribute, <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>not</I +></SPAN +> by passing the <TT +CLASS="LITERAL" +>SDL_DOUBLEBUF</TT +> flag to <TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +>.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN114" +></A +><P +><B +>Example 2-7. Initializing SDL with OpenGL</B +></P +><PRE +CLASS="PROGRAMLISTING" +> /* Information about the current video settings. */ + const SDL_VideoInfo* info = NULL; + /* Dimensions of our window. */ + int width = 0; + int height = 0; + /* Color depth in bits of our window. */ + int bpp = 0; + /* Flags we will pass into SDL_SetVideoMode. */ + int flags = 0; + + /* First, initialize SDL's video subsystem. */ + if( SDL_Init( SDL_INIT_VIDEO ) < 0 ) { + /* Failed, exit. */ + fprintf( stderr, "Video initialization failed: %s\n", + SDL_GetError( ) ); + quit_tutorial( 1 ); + } + + /* Let's get some video information. */ + info = SDL_GetVideoInfo( ); + + if( !info ) { + /* This should probably never happen. */ + fprintf( stderr, "Video query failed: %s\n", + SDL_GetError( ) ); + quit_tutorial( 1 ); + } + + /* + * Set our width/height to 640/480 (you would + * of course let the user decide this in a normal + * app). We get the bpp we will request from + * the display. On X11, VidMode can't change + * resolution, so this is probably being overly + * safe. Under Win32, ChangeDisplaySettings + * can change the bpp. + */ + width = 640; + height = 480; + bpp = info->vfmt->BitsPerPixel; + + /* + * Now, we want to setup our requested + * window attributes for our OpenGL window. + * We want *at least* 5 bits of red, green + * and blue. We also want at least a 16-bit + * depth buffer. + * + * The last thing we do is request a double + * buffered window. '1' turns on double + * buffering, '0' turns it off. + * + * Note that we do not use SDL_DOUBLEBUF in + * the flags to SDL_SetVideoMode. That does + * not affect the GL attribute state, only + * the standard 2D blitting setup. + */ + SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 ); + SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 ); + SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 ); + SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); + SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); + + /* + * We want to request that SDL provide us + * with an OpenGL window, in a fullscreen + * video mode. + * + * EXERCISE: + * Make starting windowed an option, and + * handle the resize events properly with + * glViewport. + */ + flags = SDL_OPENGL | SDL_FULLSCREEN; + + /* + * Set the video mode + */ + if( SDL_SetVideoMode( width, height, bpp, flags ) == 0 ) { + /* + * This could happen for a variety of reasons, + * including DISPLAY not being set, the specified + * resolution not being available, etc. + */ + fprintf( stderr, "Video mode set failed: %s\n", + SDL_GetError( ) ); + quit_tutorial( 1 ); + }</PRE +></DIV +></DIV +><DIV +CLASS="SECT2" +><H2 +CLASS="SECT2" +><A +NAME="AEN117" +></A +>Drawing</H2 +><P +>Apart from initialisation, using OpenGL within SDL is the same as using OpenGL +with any other API, e.g. GLUT. You still use all the same function calls and +data types. However if you are using a double-buffered display, then you must +use +<A +HREF="sdlglswapbuffers.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SwapBuffers()</TT +></A +> +to swap the buffers and update the display. To request double-buffering +with OpenGL, use +<A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +> +with <TT +CLASS="LITERAL" +>SDL_GL_DOUBLEBUFFER</TT +>, and use +<A +HREF="sdlglgetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetAttribute</TT +></A +> +to see if you actually got it.</P +><P +>A full example code listing is now presented below.</P +><DIV +CLASS="EXAMPLE" +><A +NAME="AEN128" +></A +><P +><B +>Example 2-8. SDL and OpenGL</B +></P +><PRE +CLASS="PROGRAMLISTING" +>/* + * SDL OpenGL Tutorial. + * (c) Michael Vance, 2000 + * briareos@lokigames.com + * + * Distributed under terms of the LGPL. + */ + +#include <SDL/SDL.h> +#include <GL/gl.h> +#include <GL/glu.h> + +#include <stdio.h> +#include <stdlib.h> + +static GLboolean should_rotate = GL_TRUE; + +static void quit_tutorial( int code ) +{ + /* + * Quit SDL so we can release the fullscreen + * mode and restore the previous video settings, + * etc. + */ + SDL_Quit( ); + + /* Exit program. */ + exit( code ); +} + +static void handle_key_down( SDL_keysym* keysym ) +{ + + /* + * We're only interested if 'Esc' has + * been presssed. + * + * EXERCISE: + * Handle the arrow keys and have that change the + * viewing position/angle. + */ + switch( keysym->sym ) { + case SDLK_ESCAPE: + quit_tutorial( 0 ); + break; + case SDLK_SPACE: + should_rotate = !should_rotate; + break; + default: + break; + } + +} + +static void process_events( void ) +{ + /* Our SDL event placeholder. */ + SDL_Event event; + + /* Grab all the events off the queue. */ + while( SDL_PollEvent( &event ) ) { + + switch( event.type ) { + case SDL_KEYDOWN: + /* Handle key presses. */ + handle_key_down( &event.key.keysym ); + break; + case SDL_QUIT: + /* Handle quit requests (like Ctrl-c). */ + quit_tutorial( 0 ); + break; + } + + } + +} + +static void draw_screen( void ) +{ + /* Our angle of rotation. */ + static float angle = 0.0f; + + /* + * EXERCISE: + * Replace this awful mess with vertex + * arrays and a call to glDrawElements. + * + * EXERCISE: + * After completing the above, change + * it to use compiled vertex arrays. + * + * EXERCISE: + * Verify my windings are correct here ;). + */ + static GLfloat v0[] = { -1.0f, -1.0f, 1.0f }; + static GLfloat v1[] = { 1.0f, -1.0f, 1.0f }; + static GLfloat v2[] = { 1.0f, 1.0f, 1.0f }; + static GLfloat v3[] = { -1.0f, 1.0f, 1.0f }; + static GLfloat v4[] = { -1.0f, -1.0f, -1.0f }; + static GLfloat v5[] = { 1.0f, -1.0f, -1.0f }; + static GLfloat v6[] = { 1.0f, 1.0f, -1.0f }; + static GLfloat v7[] = { -1.0f, 1.0f, -1.0f }; + static GLubyte red[] = { 255, 0, 0, 255 }; + static GLubyte green[] = { 0, 255, 0, 255 }; + static GLubyte blue[] = { 0, 0, 255, 255 }; + static GLubyte white[] = { 255, 255, 255, 255 }; + static GLubyte yellow[] = { 0, 255, 255, 255 }; + static GLubyte black[] = { 0, 0, 0, 255 }; + static GLubyte orange[] = { 255, 255, 0, 255 }; + static GLubyte purple[] = { 255, 0, 255, 0 }; + + /* Clear the color and depth buffers. */ + glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); + + /* We don't want to modify the projection matrix. */ + glMatrixMode( GL_MODELVIEW ); + glLoadIdentity( ); + + /* Move down the z-axis. */ + glTranslatef( 0.0, 0.0, -5.0 ); + + /* Rotate. */ + glRotatef( angle, 0.0, 1.0, 0.0 ); + + if( should_rotate ) { + + if( ++angle > 360.0f ) { + angle = 0.0f; + } + + } + + /* Send our triangle data to the pipeline. */ + glBegin( GL_TRIANGLES ); + + glColor4ubv( red ); + glVertex3fv( v0 ); + glColor4ubv( green ); + glVertex3fv( v1 ); + glColor4ubv( blue ); + glVertex3fv( v2 ); + + glColor4ubv( red ); + glVertex3fv( v0 ); + glColor4ubv( blue ); + glVertex3fv( v2 ); + glColor4ubv( white ); + glVertex3fv( v3 ); + + glColor4ubv( green ); + glVertex3fv( v1 ); + glColor4ubv( black ); + glVertex3fv( v5 ); + glColor4ubv( orange ); + glVertex3fv( v6 ); + + glColor4ubv( green ); + glVertex3fv( v1 ); + glColor4ubv( orange ); + glVertex3fv( v6 ); + glColor4ubv( blue ); + glVertex3fv( v2 ); + + glColor4ubv( black ); + glVertex3fv( v5 ); + glColor4ubv( yellow ); + glVertex3fv( v4 ); + glColor4ubv( purple ); + glVertex3fv( v7 ); + + glColor4ubv( black ); + glVertex3fv( v5 ); + glColor4ubv( purple ); + glVertex3fv( v7 ); + glColor4ubv( orange ); + glVertex3fv( v6 ); + + glColor4ubv( yellow ); + glVertex3fv( v4 ); + glColor4ubv( red ); + glVertex3fv( v0 ); + glColor4ubv( white ); + glVertex3fv( v3 ); + + glColor4ubv( yellow ); + glVertex3fv( v4 ); + glColor4ubv( white ); + glVertex3fv( v3 ); + glColor4ubv( purple ); + glVertex3fv( v7 ); + + glColor4ubv( white ); + glVertex3fv( v3 ); + glColor4ubv( blue ); + glVertex3fv( v2 ); + glColor4ubv( orange ); + glVertex3fv( v6 ); + + glColor4ubv( white ); + glVertex3fv( v3 ); + glColor4ubv( orange ); + glVertex3fv( v6 ); + glColor4ubv( purple ); + glVertex3fv( v7 ); + + glColor4ubv( green ); + glVertex3fv( v1 ); + glColor4ubv( red ); + glVertex3fv( v0 ); + glColor4ubv( yellow ); + glVertex3fv( v4 ); + + glColor4ubv( green ); + glVertex3fv( v1 ); + glColor4ubv( yellow ); + glVertex3fv( v4 ); + glColor4ubv( black ); + glVertex3fv( v5 ); + + glEnd( ); + + /* + * EXERCISE: + * Draw text telling the user that 'Spc' + * pauses the rotation and 'Esc' quits. + * Do it using vetors and textured quads. + */ + + /* + * Swap the buffers. This this tells the driver to + * render the next frame from the contents of the + * back-buffer, and to set all rendering operations + * to occur on what was the front-buffer. + * + * Double buffering prevents nasty visual tearing + * from the application drawing on areas of the + * screen that are being updated at the same time. + */ + SDL_GL_SwapBuffers( ); +} + +static void setup_opengl( int width, int height ) +{ + float ratio = (float) width / (float) height; + + /* Our shading model--Gouraud (smooth). */ + glShadeModel( GL_SMOOTH ); + + /* Culling. */ + glCullFace( GL_BACK ); + glFrontFace( GL_CCW ); + glEnable( GL_CULL_FACE ); + + /* Set the clear color. */ + glClearColor( 0, 0, 0, 0 ); + + /* Setup our viewport. */ + glViewport( 0, 0, width, height ); + + /* + * Change to the projection matrix and set + * our viewing volume. + */ + glMatrixMode( GL_PROJECTION ); + glLoadIdentity( ); + /* + * EXERCISE: + * Replace this with a call to glFrustum. + */ + gluPerspective( 60.0, ratio, 1.0, 1024.0 ); +} + +int main( int argc, char* argv[] ) +{ + /* Information about the current video settings. */ + const SDL_VideoInfo* info = NULL; + /* Dimensions of our window. */ + int width = 0; + int height = 0; + /* Color depth in bits of our window. */ + int bpp = 0; + /* Flags we will pass into SDL_SetVideoMode. */ + int flags = 0; + + /* First, initialize SDL's video subsystem. */ + if( SDL_Init( SDL_INIT_VIDEO ) < 0 ) { + /* Failed, exit. */ + fprintf( stderr, "Video initialization failed: %s\n", + SDL_GetError( ) ); + quit_tutorial( 1 ); + } + + /* Let's get some video information. */ + info = SDL_GetVideoInfo( ); + + if( !info ) { + /* This should probably never happen. */ + fprintf( stderr, "Video query failed: %s\n", + SDL_GetError( ) ); + quit_tutorial( 1 ); + } + + /* + * Set our width/height to 640/480 (you would + * of course let the user decide this in a normal + * app). We get the bpp we will request from + * the display. On X11, VidMode can't change + * resolution, so this is probably being overly + * safe. Under Win32, ChangeDisplaySettings + * can change the bpp. + */ + width = 640; + height = 480; + bpp = info->vfmt->BitsPerPixel; + + /* + * Now, we want to setup our requested + * window attributes for our OpenGL window. + * We want *at least* 5 bits of red, green + * and blue. We also want at least a 16-bit + * depth buffer. + * + * The last thing we do is request a double + * buffered window. '1' turns on double + * buffering, '0' turns it off. + * + * Note that we do not use SDL_DOUBLEBUF in + * the flags to SDL_SetVideoMode. That does + * not affect the GL attribute state, only + * the standard 2D blitting setup. + */ + SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 ); + SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 ); + SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 ); + SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); + SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); + + /* + * We want to request that SDL provide us + * with an OpenGL window, in a fullscreen + * video mode. + * + * EXERCISE: + * Make starting windowed an option, and + * handle the resize events properly with + * glViewport. + */ + flags = SDL_OPENGL | SDL_FULLSCREEN; + + /* + * Set the video mode + */ + if( SDL_SetVideoMode( width, height, bpp, flags ) == 0 ) { + /* + * This could happen for a variety of reasons, + * including DISPLAY not being set, the specified + * resolution not being available, etc. + */ + fprintf( stderr, "Video mode set failed: %s\n", + SDL_GetError( ) ); + quit_tutorial( 1 ); + } + + /* + * At this point, we should have a properly setup + * double-buffered window for use with OpenGL. + */ + setup_opengl( width, height ); + + /* + * Now we want to begin our normal app process-- + * an event loop with a lot of redrawing. + */ + while( 1 ) { + /* Process incoming events. */ + process_events( ); + /* Draw the screen. */ + draw_screen( ); + } + + /* + * EXERCISE: + * Record timings using SDL_GetTicks() and + * and print out frames per second at program + * end. + */ + + /* Never reached. */ + return 0; +}</PRE +></DIV +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidevideo.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guideinput.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Graphics and Video</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="guidevideo.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Input handling</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/index.html b/distrib/sdl-1.2.15/docs/html/index.html new file mode 100644 index 0000000..f86ff19 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/index.html @@ -0,0 +1,1156 @@ +<HTML +><HEAD +><TITLE +></TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="NEXT" +TITLE="SDL Guide" +HREF="guide.html"></HEAD +><BODY +CLASS="BOOK" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="BOOK" +><A +NAME="AEN1" +></A +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +>I. <A +HREF="guide.html" +>SDL Guide</A +></DT +><DD +><DL +><DT +><A +HREF="guidepreface.html" +>Preface</A +></DT +><DD +><DL +><DT +><A +HREF="guidepreface.html#GUIDEABOUTSDL" +>About SDL</A +></DT +><DT +><A +HREF="guideaboutsdldoc.html" +>About SDLdoc</A +></DT +><DT +><A +HREF="guidecredits.html" +>Credits</A +></DT +></DL +></DD +><DT +>1. <A +HREF="guidethebasics.html" +>The Basics</A +></DT +><DD +><DL +><DT +><A +HREF="guidethebasics.html#GUIDEINTRODUCTION" +>Introduction</A +></DT +><DT +><A +HREF="guidebasicsinit.html" +>Initializing SDL</A +></DT +></DL +></DD +><DT +>2. <A +HREF="guidevideo.html" +>Graphics and Video</A +></DT +><DD +><DL +><DT +><A +HREF="guidevideo.html#GUIDEVIDEOINTRO" +>Introduction to SDL Video</A +></DT +><DT +><A +HREF="guidevideoopengl.html" +>Using OpenGL With SDL</A +></DT +></DL +></DD +><DT +>3. <A +HREF="guideinput.html" +>Input handling</A +></DT +><DD +><DL +><DT +><A +HREF="guideinput.html#GUIDEINPUTJOYSTICK" +>Handling Joysticks</A +></DT +><DT +><A +HREF="guideinputkeyboard.html" +>Handling the Keyboard</A +></DT +></DL +></DD +><DT +>4. <A +HREF="guideexamples.html" +>Examples</A +></DT +><DD +><DL +><DT +><A +HREF="guideexamples.html#AEN369" +>Introduction</A +></DT +><DT +><A +HREF="guideeventexamples.html" +>Event Examples</A +></DT +><DT +><A +HREF="guideaudioexamples.html" +>Audio Examples</A +></DT +><DT +><A +HREF="guidecdromexamples.html" +>CDROM Examples</A +></DT +><DT +><A +HREF="guidetimeexamples.html" +>Time Examples</A +></DT +></DL +></DD +></DL +></DD +><DT +>II. <A +HREF="reference.html" +>SDL Reference</A +></DT +><DD +><DL +><DT +>5. <A +HREF="general.html" +>General</A +></DT +><DD +><DL +><DT +><A +HREF="sdlinit.html" +>SDL_Init</A +> -- Initializes SDL</DT +><DT +><A +HREF="sdlinitsubsystem.html" +>SDL_InitSubSystem</A +> -- Initialize subsystems</DT +><DT +><A +HREF="sdlquitsubsystem.html" +>SDL_QuitSubSystem</A +> -- Shut down a subsystem</DT +><DT +><A +HREF="sdlquit.html" +>SDL_Quit</A +> -- Shut down SDL</DT +><DT +><A +HREF="sdlwasinit.html" +>SDL_WasInit</A +> -- Check which subsystems are initialized</DT +><DT +><A +HREF="sdlgeterror.html" +>SDL_GetError</A +> -- Get SDL error string</DT +><DT +><A +HREF="sdlenvvars.html" +>SDL_envvars</A +> -- SDL environment variables</DT +></DL +></DD +><DT +>6. <A +HREF="video.html" +>Video</A +></DT +><DD +><DL +><DT +><A +HREF="sdlgetvideosurface.html" +>SDL_GetVideoSurface</A +> -- returns a pointer to the current display surface</DT +><DT +><A +HREF="sdlgetvideoinfo.html" +>SDL_GetVideoInfo</A +> -- returns a pointer to information about the video hardware</DT +><DT +><A +HREF="sdlvideodrivername.html" +>SDL_VideoDriverName</A +> -- Obtain the name of the video driver</DT +><DT +><A +HREF="sdllistmodes.html" +>SDL_ListModes</A +> -- Returns a pointer to an array of available screen dimensions for +the given format and video flags</DT +><DT +><A +HREF="sdlvideomodeok.html" +>SDL_VideoModeOK</A +> -- Check to see if a particular video mode is supported.</DT +><DT +><A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +> -- Set up a video mode with the specified width, height and bits-per-pixel.</DT +><DT +><A +HREF="sdlupdaterect.html" +>SDL_UpdateRect</A +> -- Makes sure the given area is updated on the given screen.</DT +><DT +><A +HREF="sdlupdaterects.html" +>SDL_UpdateRects</A +> -- Makes sure the given list of rectangles is updated on the given screen.</DT +><DT +><A +HREF="sdlflip.html" +>SDL_Flip</A +> -- Swaps screen buffers</DT +><DT +><A +HREF="sdlsetcolors.html" +>SDL_SetColors</A +> -- Sets a portion of the colormap for the given 8-bit surface.</DT +><DT +><A +HREF="sdlsetpalette.html" +>SDL_SetPalette</A +> -- Sets the colors in the palette of an 8-bit surface.</DT +><DT +><A +HREF="sdlsetgamma.html" +>SDL_SetGamma</A +> -- Sets the color gamma function for the display</DT +><DT +><A +HREF="sdlgetgammaramp.html" +>SDL_GetGammaRamp</A +> -- Gets the color gamma lookup tables for the display</DT +><DT +><A +HREF="sdlsetgammaramp.html" +>SDL_SetGammaRamp</A +> -- Sets the color gamma lookup tables for the display</DT +><DT +><A +HREF="sdlmaprgb.html" +>SDL_MapRGB</A +> -- Map a RGB color value to a pixel format.</DT +><DT +><A +HREF="sdlmaprgba.html" +>SDL_MapRGBA</A +> -- Map a RGBA color value to a pixel format.</DT +><DT +><A +HREF="sdlgetrgb.html" +>SDL_GetRGB</A +> -- Get RGB values from a pixel in the specified pixel format.</DT +><DT +><A +HREF="sdlgetrgba.html" +>SDL_GetRGBA</A +> -- Get RGBA values from a pixel in the specified pixel format.</DT +><DT +><A +HREF="sdlcreatergbsurface.html" +>SDL_CreateRGBSurface</A +> -- Create an empty SDL_Surface</DT +><DT +><A +HREF="sdlcreatergbsurfacefrom.html" +>SDL_CreateRGBSurfaceFrom</A +> -- Create an SDL_Surface from pixel data</DT +><DT +><A +HREF="sdlfreesurface.html" +>SDL_FreeSurface</A +> -- Frees (deletes) a SDL_Surface</DT +><DT +><A +HREF="sdllocksurface.html" +>SDL_LockSurface</A +> -- Lock a surface for directly access.</DT +><DT +><A +HREF="sdlunlocksurface.html" +>SDL_UnlockSurface</A +> -- Unlocks a previously locked surface.</DT +><DT +><A +HREF="sdlloadbmp.html" +>SDL_LoadBMP</A +> -- Load a Windows BMP file into an SDL_Surface.</DT +><DT +><A +HREF="sdlsavebmp.html" +>SDL_SaveBMP</A +> -- Save an SDL_Surface as a Windows BMP file.</DT +><DT +><A +HREF="sdlsetcolorkey.html" +>SDL_SetColorKey</A +> -- Sets the color key (transparent pixel) in a blittable surface and +RLE acceleration.</DT +><DT +><A +HREF="sdlsetalpha.html" +>SDL_SetAlpha</A +> -- Adjust the alpha properties of a surface</DT +><DT +><A +HREF="sdlsetcliprect.html" +>SDL_SetClipRect</A +> -- Sets the clipping rectangle for a surface.</DT +><DT +><A +HREF="sdlgetcliprect.html" +>SDL_GetClipRect</A +> -- Gets the clipping rectangle for a surface.</DT +><DT +><A +HREF="sdlconvertsurface.html" +>SDL_ConvertSurface</A +> -- Converts a surface to the same format as another surface.</DT +><DT +><A +HREF="sdlblitsurface.html" +>SDL_BlitSurface</A +> -- This performs a fast blit from the source surface to the destination surface.</DT +><DT +><A +HREF="sdlfillrect.html" +>SDL_FillRect</A +> -- This function performs a fast fill of the given rectangle with some color</DT +><DT +><A +HREF="sdldisplayformat.html" +>SDL_DisplayFormat</A +> -- Convert a surface to the display format</DT +><DT +><A +HREF="sdldisplayformatalpha.html" +>SDL_DisplayFormatAlpha</A +> -- Convert a surface to the display format</DT +><DT +><A +HREF="sdlwarpmouse.html" +>SDL_WarpMouse</A +> -- Set the position of the mouse cursor.</DT +><DT +><A +HREF="sdlcreatecursor.html" +>SDL_CreateCursor</A +> -- Creates a new mouse cursor.</DT +><DT +><A +HREF="sdlfreecursor.html" +>SDL_FreeCursor</A +> -- Frees a cursor created with SDL_CreateCursor.</DT +><DT +><A +HREF="sdlsetcursor.html" +>SDL_SetCursor</A +> -- Set the currently active mouse cursor.</DT +><DT +><A +HREF="sdlgetcursor.html" +>SDL_GetCursor</A +> -- Get the currently active mouse cursor.</DT +><DT +><A +HREF="sdlshowcursor.html" +>SDL_ShowCursor</A +> -- Toggle whether or not the cursor is shown on the screen.</DT +><DT +><A +HREF="sdlglloadlibrary.html" +>SDL_GL_LoadLibrary</A +> -- Specify an OpenGL library</DT +><DT +><A +HREF="sdlglgetprocaddress.html" +>SDL_GL_GetProcAddress</A +> -- Get the address of a GL function</DT +><DT +><A +HREF="sdlglgetattribute.html" +>SDL_GL_GetAttribute</A +> -- Get the value of a special SDL/OpenGL attribute</DT +><DT +><A +HREF="sdlglsetattribute.html" +>SDL_GL_SetAttribute</A +> -- Set a special SDL/OpenGL attribute</DT +><DT +><A +HREF="sdlglswapbuffers.html" +>SDL_GL_SwapBuffers</A +> -- Swap OpenGL framebuffers/Update Display</DT +><DT +><A +HREF="sdlcreateyuvoverlay.html" +>SDL_CreateYUVOverlay</A +> -- Create a YUV video overlay</DT +><DT +><A +HREF="sdllockyuvoverlay.html" +>SDL_LockYUVOverlay</A +> -- Lock an overlay</DT +><DT +><A +HREF="sdlunlockyuvoverlay.html" +>SDL_UnlockYUVOverlay</A +> -- Unlock an overlay</DT +><DT +><A +HREF="sdldisplayyuvoverlay.html" +>SDL_DisplayYUVOverlay</A +> -- Blit the overlay to the display</DT +><DT +><A +HREF="sdlfreeyuvoverlay.html" +>SDL_FreeYUVOverlay</A +> -- Free a YUV video overlay</DT +><DT +><A +HREF="sdlglattr.html" +>SDL_GLattr</A +> -- SDL GL Attributes</DT +><DT +><A +HREF="sdlrect.html" +>SDL_Rect</A +> -- Defines a rectangular area</DT +><DT +><A +HREF="sdlcolor.html" +>SDL_Color</A +> -- Format independent color description</DT +><DT +><A +HREF="sdlpalette.html" +>SDL_Palette</A +> -- Color palette for 8-bit pixel formats</DT +><DT +><A +HREF="sdlpixelformat.html" +>SDL_PixelFormat</A +> -- Stores surface format information</DT +><DT +><A +HREF="sdlsurface.html" +>SDL_Surface</A +> -- Graphical Surface Structure</DT +><DT +><A +HREF="sdlvideoinfo.html" +>SDL_VideoInfo</A +> -- Video Target information</DT +><DT +><A +HREF="sdloverlay.html" +>SDL_Overlay</A +> -- YUV video overlay</DT +></DL +></DD +><DT +>7. <A +HREF="wm.html" +>Window Management</A +></DT +><DD +><DL +><DT +><A +HREF="sdlwmsetcaption.html" +>SDL_WM_SetCaption</A +> -- Sets the window tile and icon name.</DT +><DT +><A +HREF="sdlwmgetcaption.html" +>SDL_WM_GetCaption</A +> -- Gets the window title and icon name.</DT +><DT +><A +HREF="sdlwmseticon.html" +>SDL_WM_SetIcon</A +> -- Sets the icon for the display window.</DT +><DT +><A +HREF="sdlwmiconifywindow.html" +>SDL_WM_IconifyWindow</A +> -- Iconify/Minimise the window</DT +><DT +><A +HREF="sdlwmtogglefullscreen.html" +>SDL_WM_ToggleFullScreen</A +> -- Toggles fullscreen mode</DT +><DT +><A +HREF="sdlwmgrabinput.html" +>SDL_WM_GrabInput</A +> -- Grabs mouse and keyboard input.</DT +></DL +></DD +><DT +>8. <A +HREF="event.html" +>Events</A +></DT +><DD +><DL +><DT +><A +HREF="event.html#AEN3691" +>Introduction</A +></DT +><DT +><A +HREF="eventstructures.html" +>SDL Event Structures.</A +></DT +><DT +><A +HREF="eventfunctions.html" +>Event Functions.</A +></DT +></DL +></DD +><DT +>9. <A +HREF="joystick.html" +>Joystick</A +></DT +><DD +><DL +><DT +><A +HREF="sdlnumjoysticks.html" +>SDL_NumJoysticks</A +> -- Count available joysticks.</DT +><DT +><A +HREF="sdljoystickname.html" +>SDL_JoystickName</A +> -- Get joystick name.</DT +><DT +><A +HREF="sdljoystickopen.html" +>SDL_JoystickOpen</A +> -- Opens a joystick for use.</DT +><DT +><A +HREF="sdljoystickopened.html" +>SDL_JoystickOpened</A +> -- Determine if a joystick has been opened</DT +><DT +><A +HREF="sdljoystickindex.html" +>SDL_JoystickIndex</A +> -- Get the index of an SDL_Joystick.</DT +><DT +><A +HREF="sdljoysticknumaxes.html" +>SDL_JoystickNumAxes</A +> -- Get the number of joystick axes</DT +><DT +><A +HREF="sdljoysticknumballs.html" +>SDL_JoystickNumBalls</A +> -- Get the number of joystick trackballs</DT +><DT +><A +HREF="sdljoysticknumhats.html" +>SDL_JoystickNumHats</A +> -- Get the number of joystick hats</DT +><DT +><A +HREF="sdljoysticknumbuttons.html" +>SDL_JoystickNumButtons</A +> -- Get the number of joysitck buttons</DT +><DT +><A +HREF="sdljoystickupdate.html" +>SDL_JoystickUpdate</A +> -- Updates the state of all joysticks</DT +><DT +><A +HREF="sdljoystickgetaxis.html" +>SDL_JoystickGetAxis</A +> -- Get the current state of an axis</DT +><DT +><A +HREF="sdljoystickgethat.html" +>SDL_JoystickGetHat</A +> -- Get the current state of a joystick hat</DT +><DT +><A +HREF="sdljoystickgetbutton.html" +>SDL_JoystickGetButton</A +> -- Get the current state of a given button on a given joystick</DT +><DT +><A +HREF="sdljoystickgetball.html" +>SDL_JoystickGetBall</A +> -- Get relative trackball motion</DT +><DT +><A +HREF="sdljoystickclose.html" +>SDL_JoystickClose</A +> -- Closes a previously opened joystick</DT +></DL +></DD +><DT +>10. <A +HREF="audio.html" +>Audio</A +></DT +><DD +><DL +><DT +><A +HREF="sdlaudiospec.html" +>SDL_AudioSpec</A +> -- Audio Specification Structure</DT +><DT +><A +HREF="sdlopenaudio.html" +>SDL_OpenAudio</A +> -- Opens the audio device with the desired parameters.</DT +><DT +><A +HREF="sdlpauseaudio.html" +>SDL_PauseAudio</A +> -- Pauses and unpauses the audio callback processing</DT +><DT +><A +HREF="sdlgetaudiostatus.html" +>SDL_GetAudioStatus</A +> -- Get the current audio state</DT +><DT +><A +HREF="sdlloadwav.html" +>SDL_LoadWAV</A +> -- Load a WAVE file</DT +><DT +><A +HREF="sdlfreewav.html" +>SDL_FreeWAV</A +> -- Frees previously opened WAV data</DT +><DT +><A +HREF="sdlaudiocvt.html" +>SDL_AudioCVT</A +> -- Audio Conversion Structure</DT +><DT +><A +HREF="sdlbuildaudiocvt.html" +>SDL_BuildAudioCVT</A +> -- Initializes a SDL_AudioCVT structure for conversion</DT +><DT +><A +HREF="sdlconvertaudio.html" +>SDL_ConvertAudio</A +> -- Convert audio data to a desired audio format.</DT +><DT +><A +HREF="sdlmixaudio.html" +>SDL_MixAudio</A +> -- Mix audio data</DT +><DT +><A +HREF="sdllockaudio.html" +>SDL_LockAudio</A +> -- Lock out the callback function</DT +><DT +><A +HREF="sdlunlockaudio.html" +>SDL_UnlockAudio</A +> -- Unlock the callback function</DT +><DT +><A +HREF="sdlcloseaudio.html" +>SDL_CloseAudio</A +> -- Shuts down audio processing and closes the audio device.</DT +></DL +></DD +><DT +>11. <A +HREF="cdrom.html" +>CD-ROM</A +></DT +><DD +><DL +><DT +><A +HREF="sdlcdnumdrives.html" +>SDL_CDNumDrives</A +> -- Returns the number of CD-ROM drives on the system.</DT +><DT +><A +HREF="sdlcdname.html" +>SDL_CDName</A +> -- Returns a human-readable, system-dependent identifier for the CD-ROM.</DT +><DT +><A +HREF="sdlcdopen.html" +>SDL_CDOpen</A +> -- Opens a CD-ROM drive for access.</DT +><DT +><A +HREF="sdlcdstatus.html" +>SDL_CDStatus</A +> -- Returns the current status of the given drive.</DT +><DT +><A +HREF="sdlcdplay.html" +>SDL_CDPlay</A +> -- Play a CD</DT +><DT +><A +HREF="sdlcdplaytracks.html" +>SDL_CDPlayTracks</A +> -- Play the given CD track(s)</DT +><DT +><A +HREF="sdlcdpause.html" +>SDL_CDPause</A +> -- Pauses a CDROM</DT +><DT +><A +HREF="sdlcdresume.html" +>SDL_CDResume</A +> -- Resumes a CDROM</DT +><DT +><A +HREF="sdlcdstop.html" +>SDL_CDStop</A +> -- Stops a CDROM</DT +><DT +><A +HREF="sdlcdeject.html" +>SDL_CDEject</A +> -- Ejects a CDROM</DT +><DT +><A +HREF="sdlcdclose.html" +>SDL_CDClose</A +> -- Closes a SDL_CD handle</DT +><DT +><A +HREF="sdlcd.html" +>SDL_CD</A +> -- CDROM Drive Information</DT +><DT +><A +HREF="sdlcdtrack.html" +>SDL_CDtrack</A +> -- CD Track Information Structure</DT +></DL +></DD +><DT +>12. <A +HREF="thread.html" +>Multi-threaded Programming</A +></DT +><DD +><DL +><DT +><A +HREF="sdlcreatethread.html" +>SDL_CreateThread</A +> -- Creates a new thread of execution that shares its parent's properties.</DT +><DT +><A +HREF="sdlthreadid.html" +>SDL_ThreadID</A +> -- Get the 32-bit thread identifier for the current thread.</DT +><DT +><A +HREF="sdlgetthreadid.html" +>SDL_GetThreadID</A +> -- Get the SDL thread ID of a SDL_Thread</DT +><DT +><A +HREF="sdlwaitthread.html" +>SDL_WaitThread</A +> -- Wait for a thread to finish.</DT +><DT +><A +HREF="sdlkillthread.html" +>SDL_KillThread</A +> -- Gracelessly terminates the thread.</DT +><DT +><A +HREF="sdlcreatemutex.html" +>SDL_CreateMutex</A +> -- Create a mutex</DT +><DT +><A +HREF="sdldestroymutex.html" +>SDL_DestroyMutex</A +> -- Destroy a mutex</DT +><DT +><A +HREF="sdlmutexp.html" +>SDL_mutexP</A +> -- Lock a mutex</DT +><DT +><A +HREF="sdlmutexv.html" +>SDL_mutexV</A +> -- Unlock a mutex</DT +><DT +><A +HREF="sdlcreatesemaphore.html" +>SDL_CreateSemaphore</A +> -- Creates a new semaphore and assigns an initial value to it.</DT +><DT +><A +HREF="sdldestroysemaphore.html" +>SDL_DestroySemaphore</A +> -- Destroys a semaphore that was created by <A +HREF="sdlcreatesemaphore.html" +>SDL_CreateSemaphore</A +>.</DT +><DT +><A +HREF="sdlsemwait.html" +>SDL_SemWait</A +> -- Lock a semaphore and suspend the thread if the semaphore value is zero.</DT +><DT +><A +HREF="sdlsemtrywait.html" +>SDL_SemTryWait</A +> -- Attempt to lock a semaphore but don't suspend the thread.</DT +><DT +><A +HREF="sdlsemwaittimeout.html" +>SDL_SemWaitTimeout</A +> -- Lock a semaphore, but only wait up to a specified maximum time.</DT +><DT +><A +HREF="sdlsempost.html" +>SDL_SemPost</A +> -- Unlock a semaphore.</DT +><DT +><A +HREF="sdlsemvalue.html" +>SDL_SemValue</A +> -- Return the current value of a semaphore.</DT +><DT +><A +HREF="sdlcreatecond.html" +>SDL_CreateCond</A +> -- Create a condition variable</DT +><DT +><A +HREF="sdldestroycond.html" +>SDL_DestroyCond</A +> -- Destroy a condition variable</DT +><DT +><A +HREF="sdlcondsignal.html" +>SDL_CondSignal</A +> -- Restart a thread wait on a condition variable</DT +><DT +><A +HREF="sdlcondbroadcast.html" +>SDL_CondBroadcast</A +> -- Restart all threads waiting on a condition variable</DT +><DT +><A +HREF="sdlcondwait.html" +>SDL_CondWait</A +> -- Wait on a condition variable</DT +><DT +><A +HREF="sdlcondwaittimeout.html" +>SDL_CondWaitTimeout</A +> -- Wait on a condition variable, with timeout</DT +></DL +></DD +><DT +>13. <A +HREF="time.html" +>Time</A +></DT +><DD +><DL +><DT +><A +HREF="sdlgetticks.html" +>SDL_GetTicks</A +> -- Get the number of milliseconds since the SDL library initialization.</DT +><DT +><A +HREF="sdldelay.html" +>SDL_Delay</A +> -- Wait a specified number of milliseconds before returning.</DT +><DT +><A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +> -- Add a timer which will call a callback after the specified number of milliseconds has +elapsed.</DT +><DT +><A +HREF="sdlremovetimer.html" +>SDL_RemoveTimer</A +> -- Remove a timer which was added with +<A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +>.</DT +><DT +><A +HREF="sdlsettimer.html" +>SDL_SetTimer</A +> -- Set a callback to run after the specified number of milliseconds has +elapsed.</DT +></DL +></DD +></DL +></DD +></DL +></DIV +><DIV +CLASS="LOT" +><DL +CLASS="LOT" +><DT +><B +>List of Tables</B +></DT +><DT +>8-1. <A +HREF="sdlkey.html#AEN4720" +>SDL Keysym definitions</A +></DT +><DT +>8-2. <A +HREF="sdlkey.html#SDLMOD" +>SDL modifier definitions</A +></DT +></DL +></DIV +><DIV +CLASS="LOT" +><DL +CLASS="LOT" +><DT +><B +>List of Examples</B +></DT +><DT +>1-1. <A +HREF="guidebasicsinit.html#AEN60" +>Initializing SDL</A +></DT +><DT +>2-1. <A +HREF="guidevideo.html#AEN71" +>Initializing the Video Display</A +></DT +><DT +>2-2. <A +HREF="guidevideo.html#AEN77" +>Initializing the Best Video Mode</A +></DT +><DT +>2-3. <A +HREF="guidevideo.html#AEN83" +>Loading and Displaying a BMP File</A +></DT +><DT +>2-4. <A +HREF="guidevideo.html#AEN90" +>getpixel()</A +></DT +><DT +>2-5. <A +HREF="guidevideo.html#AEN93" +>putpixel()</A +></DT +><DT +>2-6. <A +HREF="guidevideo.html#AEN97" +>Using putpixel()</A +></DT +><DT +>2-7. <A +HREF="guidevideoopengl.html#AEN114" +>Initializing SDL with OpenGL</A +></DT +><DT +>2-8. <A +HREF="guidevideoopengl.html#AEN128" +>SDL and OpenGL</A +></DT +><DT +>3-1. <A +HREF="guideinput.html#AEN141" +>Initializing SDL with Joystick Support</A +></DT +><DT +>3-2. <A +HREF="guideinput.html#AEN154" +>Querying the Number of Available Joysticks</A +></DT +><DT +>3-3. <A +HREF="guideinput.html#AEN183" +>Opening a Joystick</A +></DT +><DT +>3-4. <A +HREF="guideinput.html#AEN191" +>Joystick Axis Events</A +></DT +><DT +>3-5. <A +HREF="guideinput.html#AEN195" +>More Joystick Axis Events</A +></DT +><DT +>3-6. <A +HREF="guideinput.html#AEN203" +>Joystick Button Events</A +></DT +><DT +>3-7. <A +HREF="guideinput.html#AEN217" +>Joystick Ball Events</A +></DT +><DT +>3-8. <A +HREF="guideinput.html#AEN244" +>Joystick Hat Events</A +></DT +><DT +>3-9. <A +HREF="guideinput.html#AEN265" +>Querying Joystick Characteristics</A +></DT +><DT +>3-10. <A +HREF="guideinputkeyboard.html#AEN334" +>Reading Keyboard Events</A +></DT +><DT +>3-11. <A +HREF="guideinputkeyboard.html#AEN351" +>Interpreting Key Event Information</A +></DT +><DT +>3-12. <A +HREF="guideinputkeyboard.html#AEN363" +>Proper Game Movement</A +></DT +></DL +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +> </TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +> </TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="guide.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +> </TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +> </TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL Guide</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/joystick.html b/distrib/sdl-1.2.15/docs/html/joystick.html new file mode 100644 index 0000000..05da008 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/joystick.html @@ -0,0 +1,296 @@ +<HTML +><HEAD +><TITLE +>Joystick</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickEventState" +HREF="sdljoystickeventstate.html"><LINK +REL="NEXT" +TITLE="SDL_NumJoysticks" +HREF="sdlnumjoysticks.html"><META +NAME="KEYWORD" +CONTENT="joystick"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickeventstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlnumjoysticks.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="JOYSTICK" +></A +>Chapter 9. Joystick</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlnumjoysticks.html" +>SDL_NumJoysticks</A +> -- Count available joysticks.</DT +><DT +><A +HREF="sdljoystickname.html" +>SDL_JoystickName</A +> -- Get joystick name.</DT +><DT +><A +HREF="sdljoystickopen.html" +>SDL_JoystickOpen</A +> -- Opens a joystick for use.</DT +><DT +><A +HREF="sdljoystickopened.html" +>SDL_JoystickOpened</A +> -- Determine if a joystick has been opened</DT +><DT +><A +HREF="sdljoystickindex.html" +>SDL_JoystickIndex</A +> -- Get the index of an SDL_Joystick.</DT +><DT +><A +HREF="sdljoysticknumaxes.html" +>SDL_JoystickNumAxes</A +> -- Get the number of joystick axes</DT +><DT +><A +HREF="sdljoysticknumballs.html" +>SDL_JoystickNumBalls</A +> -- Get the number of joystick trackballs</DT +><DT +><A +HREF="sdljoysticknumhats.html" +>SDL_JoystickNumHats</A +> -- Get the number of joystick hats</DT +><DT +><A +HREF="sdljoysticknumbuttons.html" +>SDL_JoystickNumButtons</A +> -- Get the number of joysitck buttons</DT +><DT +><A +HREF="sdljoystickupdate.html" +>SDL_JoystickUpdate</A +> -- Updates the state of all joysticks</DT +><DT +><A +HREF="sdljoystickgetaxis.html" +>SDL_JoystickGetAxis</A +> -- Get the current state of an axis</DT +><DT +><A +HREF="sdljoystickgethat.html" +>SDL_JoystickGetHat</A +> -- Get the current state of a joystick hat</DT +><DT +><A +HREF="sdljoystickgetbutton.html" +>SDL_JoystickGetButton</A +> -- Get the current state of a given button on a given joystick</DT +><DT +><A +HREF="sdljoystickgetball.html" +>SDL_JoystickGetBall</A +> -- Get relative trackball motion</DT +><DT +><A +HREF="sdljoystickclose.html" +>SDL_JoystickClose</A +> -- Closes a previously opened joystick</DT +></DL +></DIV +><P +>Joysticks, and other similar input devices, have a very strong role in game playing and SDL provides comprehensive support for them. Axes, Buttons, POV Hats and trackballs are all supported.</P +><P +>Joystick support is initialized by passed the <TT +CLASS="LITERAL" +>SDL_INIT_JOYSTICK</TT +> flag to <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>. Once initilized joysticks must be opened using <A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +>.</P +><P +>While using the functions describe in this secton may seem like the best way to access and read from joysticks, in most cases they aren't. Ideally joysticks should be read using the <A +HREF="event.html" +>event</A +> system. To enable this, you must set the joystick event processing state with <A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +>. Joysticks must be <A +HREF="sdljoystickopen.html" +>opened</A +> before they can be used of course.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>If you are <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>not</I +></SPAN +> handling the joystick via the event queue then you must explicitly request a joystick update by calling <A +HREF="sdljoystickupdate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickUpdate</TT +></A +>.</P +></BLOCKQUOTE +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Force Feedback is not yet supported. Sam (slouken@libsdl.org) is soliciting suggestions from people with force-feedback experience on the best way to design the API.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickeventstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlnumjoysticks.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickEventState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_NumJoysticks</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/reference.html b/distrib/sdl-1.2.15/docs/html/reference.html new file mode 100644 index 0000000..e7707a7 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/reference.html @@ -0,0 +1,194 @@ +<HTML +><HEAD +><TITLE +>SDL Reference</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="PREVIOUS" +TITLE="Time Examples" +HREF="guidetimeexamples.html"><LINK +REL="NEXT" +TITLE="General" +HREF="general.html"></HEAD +><BODY +CLASS="PART" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="guidetimeexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="general.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="PART" +><A +NAME="REFERENCE" +></A +><DIV +CLASS="TITLEPAGE" +><H1 +CLASS="TITLE" +>II. SDL Reference</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +>5. <A +HREF="general.html" +>General</A +></DT +><DT +>6. <A +HREF="video.html" +>Video</A +></DT +><DT +>7. <A +HREF="wm.html" +>Window Management</A +></DT +><DT +>8. <A +HREF="event.html" +>Events</A +></DT +><DT +>9. <A +HREF="joystick.html" +>Joystick</A +></DT +><DT +>10. <A +HREF="audio.html" +>Audio</A +></DT +><DT +>11. <A +HREF="cdrom.html" +>CD-ROM</A +></DT +><DT +>12. <A +HREF="thread.html" +>Multi-threaded Programming</A +></DT +><DT +>13. <A +HREF="time.html" +>Time</A +></DT +></DL +></DIV +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="guidetimeexamples.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Time Examples</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +> </TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>General</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlactiveevent.html b/distrib/sdl-1.2.15/docs/html/sdlactiveevent.html new file mode 100644 index 0000000..d3f2821 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlactiveevent.html @@ -0,0 +1,335 @@ +<HTML +><HEAD +><TITLE +>SDL_ActiveEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Event" +HREF="sdlevent.html"><LINK +REL="NEXT" +TITLE="SDL_KeyboardEvent" +HREF="sdlkeyboardevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlkeyboardevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLACTIVEEVENT" +></A +>SDL_ActiveEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3955" +></A +><H2 +>Name</H2 +>SDL_ActiveEvent -- Application visibility event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3958" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 gain; + Uint8 state; +} SDL_ActiveEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3961" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3963" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_ACTIVEEVENT.</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>gain</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>0 if the event is a loss or 1 if it is a gain.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_APPMOUSEFOCUS</TT +> if mouse focus was gained or lost, <TT +CLASS="LITERAL" +>SDL_APPINPUTFOCUS</TT +> if input focus was gained or lost, or <TT +CLASS="LITERAL" +>SDL_APPACTIVE</TT +> if the application was iconified (<TT +CLASS="STRUCTFIELD" +><I +>gain</I +></TT +>=0) or restored(<TT +CLASS="STRUCTFIELD" +><I +>gain</I +></TT +>=1).</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3984" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_ActiveEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_ACTIVEEVENT</TT +> is reported.</P +><P +>When the mouse leaves or enters the window area a <TT +CLASS="LITERAL" +>SDL_APPMOUSEFOCUS</TT +> type activation event occurs, if the mouse entered the window then <TT +CLASS="STRUCTFIELD" +><I +>gain</I +></TT +> will be 1, otherwise <TT +CLASS="STRUCTFIELD" +><I +>gain</I +></TT +> will be 0. A <TT +CLASS="LITERAL" +>SDL_APPINPUTFOCUS</TT +> type activation event occurs when the application loses or gains keyboard focus. This usually occurs when another application is made active. Finally, a <TT +CLASS="LITERAL" +>SDL_APPACTIVE</TT +> type event occurs when the application is either minimised/iconified (<TT +CLASS="STRUCTFIELD" +><I +>gain</I +></TT +>=0) or restored.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>This event does not occur when an application window is first created.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4000" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlgetappstate.html" +><TT +CLASS="FUNCTION" +>SDL_GetAppState</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlkeyboardevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Event</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_KeyboardEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdladdtimer.html b/distrib/sdl-1.2.15/docs/html/sdladdtimer.html new file mode 100644 index 0000000..81c49e5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdladdtimer.html @@ -0,0 +1,296 @@ +<HTML +><HEAD +><TITLE +>SDL_AddTimer</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Time" +HREF="time.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Delay" +HREF="sdldelay.html"><LINK +REL="NEXT" +TITLE="SDL_RemoveTimer" +HREF="sdlremovetimer.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldelay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlremovetimer.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLADDTIMER" +></A +>SDL_AddTimer</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8482" +></A +><H2 +>Name</H2 +>SDL_AddTimer -- Add a timer which will call a callback after the specified number of milliseconds has +elapsed.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8485" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8486" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_TimerID <B +CLASS="FSFUNC" +>SDL_AddTimer</B +></CODE +>(Uint32 interval, SDL_NewTimerCallback callback, void *param);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="SDLNEWTIMERCALLBACK" +></A +><H2 +>Callback</H2 +><PRE +CLASS="PROGRAMLISTING" +>/* type definition for the "new" timer callback function */ +typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8495" +></A +><H2 +>Description</H2 +><P +>Adds a callback function to be run after the specified number of +milliseconds has elapsed. The callback function is passed the current +timer interval and the user supplied parameter from the +<TT +CLASS="FUNCTION" +>SDL_AddTimer</TT +> call and returns the next timer +interval. If the returned value from the callback is the same as the one +passed in, the periodic alarm continues, otherwise a new alarm is +scheduled.</P +><P +>To cancel a currently running timer call +<A +HREF="sdlremovetimer.html" +>SDL_RemoveTimer</A +> with the +timer ID returned from +<TT +CLASS="FUNCTION" +>SDL_AddTimer</TT +>.</P +><P +>The timer callback function may run in a different thread than your +main program, and so shouldn't call any functions from within itself. +You may always call <A +HREF="sdlpushevent.html" +>SDL_PushEvent</A +>, however.</P +><P +>The granularity of the timer is platform-dependent, but you should count +on it being at least 10 ms as this is the most common number. +This means that if +you request a 16 ms timer, your callback will run approximately 20 ms +later on an unloaded system. If you wanted to set a flag signaling +a frame update at 30 frames per second (every 33 ms), you might set a +timer for 30 ms (see example below). + +If you use this function, you need to pass <TT +CLASS="LITERAL" +>SDL_INIT_TIMER</TT +> +to <A +HREF="sdlinit.html" +>SDL_Init</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8507" +></A +><H2 +>Return Value</H2 +><P +>Returns an ID value for the added timer or +<SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8511" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>my_timer_id = SDL_AddTimer((33/10)*10, my_callbackfunc, my_callback_param);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8515" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlremovetimer.html" +><TT +CLASS="FUNCTION" +>SDL_RemoveTimer</TT +></A +>, +<A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldelay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlremovetimer.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Delay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_RemoveTimer</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlaudiocvt.html b/distrib/sdl-1.2.15/docs/html/sdlaudiocvt.html new file mode 100644 index 0000000..ff39209 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlaudiocvt.html @@ -0,0 +1,556 @@ +<HTML +><HEAD +><TITLE +>SDL_AudioCVT</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_FreeWAV" +HREF="sdlfreewav.html"><LINK +REL="NEXT" +TITLE="SDL_BuildAudioCVT" +HREF="sdlbuildaudiocvt.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlfreewav.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlbuildaudiocvt.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLAUDIOCVT" +></A +>SDL_AudioCVT</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6884" +></A +><H2 +>Name</H2 +>SDL_AudioCVT -- Audio Conversion Structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6887" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + int needed; + Uint16 src_format; + Uint16 dest_format; + double rate_incr; + Uint8 *buf; + int len; + int len_cvt; + int len_mult; + double len_ratio; + void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format); + int filter_index; +} SDL_AudioCVT;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6890" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN6892" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>needed</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Set to one if the conversion is possible</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>src_format</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio format of the source</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>dest_format</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio format of the destination</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>rate_incr</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Rate conversion increment</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio buffer</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Length of the original audio buffer in bytes</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>len_cvt</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Length of converted audio buffer in bytes (calculated)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +> must be <TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +>*<TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +> bytes in size(calculated)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>len_ratio</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Final audio size is <TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +>*<TT +CLASS="STRUCTFIELD" +><I +>len_ratio</I +></TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>filters[10](..)</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pointers to functions needed for this conversion</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>filter_index</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Current conversion function</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6944" +></A +><H2 +>Description</H2 +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +> is used to convert audio data between different formats. A <SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +> structure is created with the <A +HREF="sdlbuildaudiocvt.html" +><TT +CLASS="FUNCTION" +>SDL_BuildAudioCVT</TT +></A +> function, while the actual conversion is done by the <A +HREF="sdlconvertaudio.html" +><TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +></A +> function.</P +><P +>Many of the fields in the <SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +> structure should be considered private and their function will not be discussed here.</P +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><SPAN +CLASS="TYPE" +>Uint8 *</SPAN +><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +></DT +><DD +><P +>This points to the audio data that will be used in the conversion. It is both the source and the destination, which means the converted audio data overwrites the original data. It also means that the converted data may be larger than the original data (if you were converting from 8-bit to 16-bit, for instance), so you must ensure <TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +> is large enough. See below.</P +></DD +><DT +><SPAN +CLASS="TYPE" +>int</SPAN +> <TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +></DT +><DD +><P +>This is the length of the original audio data in bytes.</P +></DD +><DT +><SPAN +CLASS="TYPE" +>int</SPAN +> <TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +></DT +><DD +><P +>As explained above, the audio buffer needs to be big enough to store the converted data, which may be bigger than the original audio data. The length of <TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +> should be <TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +>*<TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +>.</P +></DD +><DT +><SPAN +CLASS="TYPE" +>double</SPAN +> <TT +CLASS="STRUCTFIELD" +><I +>len_ratio</I +></TT +></DT +><DD +><P +>When you have finished converting your audio data, you need to know how much of your audio buffer is valid. <TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +>*<TT +CLASS="STRUCTFIELD" +><I +>len_ratio</I +></TT +> is the size of the converted audio data in bytes. This is very similar to <TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +>, however when the convert audio data is shorter than the original <TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +> would be 1. <TT +CLASS="STRUCTFIELD" +><I +>len_ratio</I +></TT +>, on the other hand, would be a fractional number between 0 and 1.</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6989" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlbuildaudiocvt.html" +><TT +CLASS="FUNCTION" +>SDL_BuildAudioCVT</TT +></A +>, +<A +HREF="sdlconvertaudio.html" +><TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +></A +>, +<A +HREF="sdlaudiospec.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlfreewav.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlbuildaudiocvt.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_FreeWAV</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_BuildAudioCVT</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlaudiospec.html b/distrib/sdl-1.2.15/docs/html/sdlaudiospec.html new file mode 100644 index 0000000..fc6fa75 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlaudiospec.html @@ -0,0 +1,589 @@ +<HTML +><HEAD +><TITLE +>SDL_AudioSpec</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="Audio" +HREF="audio.html"><LINK +REL="NEXT" +TITLE="SDL_OpenAudio" +HREF="sdlopenaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="audio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlopenaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLAUDIOSPEC" +></A +>SDL_AudioSpec</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6507" +></A +><H2 +>Name</H2 +>SDL_AudioSpec -- Audio Specification Structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6510" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + int freq; + Uint16 format; + Uint8 channels; + Uint8 silence; + Uint16 samples; + Uint32 size; + void (*callback)(void *userdata, Uint8 *stream, int len); + void *userdata; +} SDL_AudioSpec;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6513" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN6515" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>freq</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio frequency in samples per second</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio data format</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>channels</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Number of channels: 1 mono, 2 stereo</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>silence</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio buffer silence value (calculated)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>samples</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio buffer size in samples</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>size</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Audio buffer size in bytes (calculated)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>callback(..)</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Callback function for filling the audio buffer</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>userdata</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pointer the user data which is passed to the callback function</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6550" +></A +><H2 +>Description</H2 +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +> structure is used to describe the format of some audio data. This structure is used by <A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +> and <A +HREF="sdlloadwav.html" +><TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +></A +>. While all fields are used by <TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +> only <TT +CLASS="STRUCTFIELD" +><I +>freq</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>samples</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>channels</I +></TT +> are used by <TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +>. We will detail these common members here.</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN6564" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>freq</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The number of samples sent to the sound device every second. Common values are 11025, 22050 and 44100. The higher the better.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>Specifies the size and type of each sample element +<P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>AUDIO_U8</TT +></DT +><DD +><P +>Unsigned 8-bit samples</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_S8</TT +></DT +><DD +><P +>Signed 8-bit samples</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_U16</TT +> or <TT +CLASS="LITERAL" +>AUDIO_U16LSB</TT +></DT +><DD +><P +>Unsigned 16-bit little-endian samples</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_S16</TT +> or <TT +CLASS="LITERAL" +>AUDIO_S16LSB</TT +></DT +><DD +><P +>Signed 16-bit little-endian samples</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_U16MSB</TT +></DT +><DD +><P +>Unsigned 16-bit big-endian samples</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_S16MSB</TT +></DT +><DD +><P +>Signed 16-bit big-endian samples</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_U16SYS</TT +></DT +><DD +><P +>Either <TT +CLASS="LITERAL" +>AUDIO_U16LSB</TT +> or <TT +CLASS="LITERAL" +>AUDIO_U16MSB</TT +> depending on you systems endianness</P +></DD +><DT +><TT +CLASS="LITERAL" +>AUDIO_S16SYS</TT +></DT +><DD +><P +>Either <TT +CLASS="LITERAL" +>AUDIO_S16LSB</TT +> or <TT +CLASS="LITERAL" +>AUDIO_S16MSB</TT +> depending on you systems endianness</P +></DD +></DL +></DIV +></P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>channels</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The number of seperate sound channels. 1 is mono (single channel), 2 is stereo (dual channel).</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>samples</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>When used with <A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +> this refers to the size of the audio buffer in samples. A sample a chunk of audio data of the size specified in <TT +CLASS="PARAMETER" +><I +>format</I +></TT +> mulitplied by the number of channels. When the <SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +> is used with <A +HREF="sdlloadwav.html" +><TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +></A +> <TT +CLASS="STRUCTFIELD" +><I +>samples</I +></TT +> is set to 4096.</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6639" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +>, +<A +HREF="sdlloadwav.html" +><TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlopenaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Audio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_OpenAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlblitsurface.html b/distrib/sdl-1.2.15/docs/html/sdlblitsurface.html new file mode 100644 index 0000000..3123ff5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlblitsurface.html @@ -0,0 +1,339 @@ +<HTML +><HEAD +><TITLE +>SDL_BlitSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ConvertSurface" +HREF="sdlconvertsurface.html"><LINK +REL="NEXT" +TITLE="SDL_FillRect" +HREF="sdlfillrect.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlconvertsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlfillrect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLBLITSURFACE" +></A +>SDL_BlitSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2299" +></A +><H2 +>Name</H2 +>SDL_BlitSurface -- This performs a fast blit from the source surface to the destination surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2302" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2303" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_BlitSurface</B +></CODE +>(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2309" +></A +><H2 +>Description</H2 +><P +>This performs a fast blit from the source surface to the destination surface.</P +><P +>The width and height in <TT +CLASS="PARAMETER" +><I +>srcrect</I +></TT +> determine the +size of the copied rectangle. Only the position is used in the +<TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +> (the width and height are ignored).</P +><P +>If <TT +CLASS="PARAMETER" +><I +>srcrect</I +></TT +> is <TT +CLASS="LITERAL" +>NULL</TT +>, the +entire surface is copied. If <TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +> is +<TT +CLASS="LITERAL" +>NULL</TT +>, then the destination position (upper left +corner) is (0, 0).</P +><P +>The final blit rectangle is saved in +<TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +> after all clipping is performed +(<TT +CLASS="PARAMETER" +><I +>srcrect</I +></TT +> is not modified).</P +><P +>The blit function should not be called on a locked surface.</P +><P +>The results of blitting operations vary greatly depending on whether <TT +CLASS="LITERAL" +>SDL_SRCAPLHA</TT +> is set or not. See <A +HREF="sdlsetalpha.html" +>SDL_SetAlpha</A +> for an explaination of how this affects your results. Colorkeying and alpha attributes also interact with surface blitting, as the following pseudo-code should hopefully explain. +<PRE +CLASS="PROGRAMLISTING" +>if (source surface has SDL_SRCALPHA set) { + if (source surface has alpha channel (that is, format->Amask != 0)) + blit using per-pixel alpha, ignoring any colour key + else { + if (source surface has SDL_SRCCOLORKEY set) + blit using the colour key AND the per-surface alpha value + else + blit using the per-surface alpha value + } +} else { + if (source surface has SDL_SRCCOLORKEY set) + blit using the colour key + else + ordinary opaque rectangular blit +}</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2328" +></A +><H2 +>Return Value</H2 +><P +>If the blit is successful, it returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, +otherwise it returns <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +>.</P +><P +>If either of the surfaces were in video memory, and the blit returns +<SPAN +CLASS="RETURNVALUE" +>-2</SPAN +>, the video memory was lost, so it should be +reloaded with artwork and re-blitted: +<PRE +CLASS="PROGRAMLISTING" +> while ( SDL_BlitSurface(image, imgrect, screen, dstrect) == -2 ) { + while ( SDL_LockSurface(image)) < 0 ) + SDL_Delay(10); + -- Write image pixels to image->pixels -- + SDL_UnlockSurface(image); + }</PRE +> +This happens under DirectX 5.0 when the system switches away from your +fullscreen application. Locking the surface will also fail until you +have access to the video memory again.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2336" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +>, +<A +HREF="sdlfillrect.html" +><TT +CLASS="FUNCTION" +>SDL_FillRect</TT +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>, +<A +HREF="sdlrect.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlconvertsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlfillrect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ConvertSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_FillRect</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlbuildaudiocvt.html b/distrib/sdl-1.2.15/docs/html/sdlbuildaudiocvt.html new file mode 100644 index 0000000..2e8420e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlbuildaudiocvt.html @@ -0,0 +1,291 @@ +<HTML +><HEAD +><TITLE +>SDL_BuildAudioCVT</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_AudioCVT" +HREF="sdlaudiocvt.html"><LINK +REL="NEXT" +TITLE="SDL_ConvertAudio" +HREF="sdlconvertaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlaudiocvt.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlconvertaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLBUILDAUDIOCVT" +></A +>SDL_BuildAudioCVT</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7002" +></A +><H2 +>Name</H2 +>SDL_BuildAudioCVT -- Initializes a SDL_AudioCVT structure for conversion</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7005" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7006" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_BuildAudioCVT</B +></CODE +>(SDL_AudioCVT *cvt, Uint16 src_format, Uint8 src_channels, int src_rate, Uint16 dst_format, Uint8 dst_channels, int dst_rate);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7012" +></A +><H2 +>Description</H2 +><P +>Before an <A +HREF="sdlaudiocvt.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +></A +> structure can be used to convert audio data it must be initialized with source and destination information. </P +><P +><TT +CLASS="PARAMETER" +><I +>src_format</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>dst_format</I +></TT +> are the source and destination format of the conversion. (For information on audio formats see <A +HREF="sdlaudiospec.html" +><SPAN +CLASS="STRUCTNAME" +> SDL_AudioSpec</SPAN +></A +>). <TT +CLASS="PARAMETER" +><I +>src_channels</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>dst_channels</I +></TT +> are the number of channels in the source and destination formats. Finally, <TT +CLASS="PARAMETER" +><I +>src_rate</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>dst_rate</I +></TT +> are the frequency or samples-per-second of the source and destination formats. Once again, see <A +HREF="sdlaudiospec.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7028" +></A +><H2 +>Return Values</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if the filter could not be built or 1 if it could.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7032" +></A +><H2 +>Examples</H2 +><P +>See <A +HREF="sdlconvertaudio.html" +><TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7037" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlconvertaudio.html" +><TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +></A +>, +<A +HREF="sdlaudiocvt.html" +><TT +CLASS="FUNCTION" +>SDL_AudioCVT</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlaudiocvt.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlconvertaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_AudioCVT</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ConvertAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcd.html b/distrib/sdl-1.2.15/docs/html/sdlcd.html new file mode 100644 index 0000000..6f8a7cd --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcd.html @@ -0,0 +1,359 @@ +<HTML +><HEAD +><TITLE +>SDL_CD</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDClose" +HREF="sdlcdclose.html"><LINK +REL="NEXT" +TITLE="SDL_CDtrack" +HREF="sdlcdtrack.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdclose.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdtrack.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCD" +></A +>SDL_CD</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7566" +></A +><H2 +>Name</H2 +>SDL_CD -- CDROM Drive Information</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7569" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + int id; + CDstatus status; + int numtracks; + int cur_track; + int cur_frame; + SDL_CDtrack track[SDL_MAX_TRACKS+1]; +} SDL_CD;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7572" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN7574" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>id</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Private drive identifier</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>status</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Drive <A +HREF="sdlcdstatus.html" +>status</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>numtracks</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Number of tracks on the CD</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>cur_track</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Current track</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>cur_frame</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Current frame offset within the track</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>track</I +></TT +>[SDL_MAX_TRACKS+1]</TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Array of track descriptions. (see <A +HREF="sdlcdtrack.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CDtrack</SPAN +></A +>)</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7604" +></A +><H2 +>Description</H2 +><P +>An <SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +> structure is returned by <A +HREF="sdlcdopen.html" +><TT +CLASS="FUNCTION" +>SDL_CDOpen</TT +></A +>. It represents an opened CDROM device and stores information on the layout of the tracks on the disc.</P +><P +>A frame is the base data unit of a CD. <TT +CLASS="LITERAL" +>CD_FPS</TT +> frames is equal to 1 second of music. SDL provides two macros for converting between time and frames: <TT +CLASS="LITERAL" +>FRAMES_TO_MSF(f, M,S,F)</TT +> and <TT +CLASS="LITERAL" +>MSF_TO_FRAMES</TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7614" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>int min, sec, frame; +int frame_offset; + +FRAMES_TO_MSF(cdrom->cur_frame, &min, &sec, &frame); +printf("Current Position: %d minutes, %d seconds, %d frames\n", min, sec, frame); + +frame_offset=MSF_TO_FRAMES(min, sec, frame);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7617" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdopen.html" +><TT +CLASS="FUNCTION" +>SDL_CDOpen</TT +></A +>, +<A +HREF="sdlcdtrack.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CDtrack</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdclose.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdtrack.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDClose</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDtrack</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdclose.html b/distrib/sdl-1.2.15/docs/html/sdlcdclose.html new file mode 100644 index 0000000..2a984a8 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdclose.html @@ -0,0 +1,217 @@ +<HTML +><HEAD +><TITLE +>SDL_CDClose</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDEject" +HREF="sdlcdeject.html"><LINK +REL="NEXT" +TITLE="SDL_CD" +HREF="sdlcd.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdeject.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcd.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDCLOSE" +></A +>SDL_CDClose</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7541" +></A +><H2 +>Name</H2 +>SDL_CDClose -- Closes a SDL_CD handle</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7544" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7545" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_CDClose</B +></CODE +>(SDL_CD *cdrom);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7551" +></A +><H2 +>Description</H2 +><P +>Closes the given <TT +CLASS="PARAMETER" +><I +>cdrom</I +></TT +> handle.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7555" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdopen.html" +><TT +CLASS="FUNCTION" +>SDL_CDOpen</TT +></A +>, +<A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdeject.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcd.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDEject</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CD</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdeject.html b/distrib/sdl-1.2.15/docs/html/sdlcdeject.html new file mode 100644 index 0000000..03a3b78 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdeject.html @@ -0,0 +1,226 @@ +<HTML +><HEAD +><TITLE +>SDL_CDEject</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDStop" +HREF="sdlcdstop.html"><LINK +REL="NEXT" +TITLE="SDL_CDClose" +HREF="sdlcdclose.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdstop.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdclose.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDEJECT" +></A +>SDL_CDEject</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7513" +></A +><H2 +>Name</H2 +>SDL_CDEject -- Ejects a CDROM</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7516" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7517" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDEject</B +></CODE +>(SDL_CD *cdrom);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7523" +></A +><H2 +>Description</H2 +><P +>Ejects the given <TT +CLASS="PARAMETER" +><I +>cdrom</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7527" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7532" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdstop.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdclose.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDStop</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDClose</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdname.html b/distrib/sdl-1.2.15/docs/html/sdlcdname.html new file mode 100644 index 0000000..55a18e2 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdname.html @@ -0,0 +1,239 @@ +<HTML +><HEAD +><TITLE +>SDL_CDName</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDNumDrives" +HREF="sdlcdnumdrives.html"><LINK +REL="NEXT" +TITLE="SDL_CDOpen" +HREF="sdlcdopen.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdnumdrives.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdopen.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDNAME" +></A +>SDL_CDName</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7240" +></A +><H2 +>Name</H2 +>SDL_CDName -- Returns a human-readable, system-dependent identifier for the CD-ROM.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7243" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7244" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>const char *<B +CLASS="FSFUNC" +>SDL_CDName</B +></CODE +>(int drive);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7250" +></A +><H2 +>Description</H2 +><P +>Returns a human-readable, system-dependent identifier for the CD-ROM. <TT +CLASS="PARAMETER" +><I +>drive</I +></TT +> is the index of the drive. Drive indices start to 0 and end at <TT +CLASS="FUNCTION" +>SDL_CDNumDrives()</TT +>-1.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7255" +></A +><H2 +>Examples</H2 +><P +><P +></P +><UL +><LI +><P +>"/dev/cdrom"</P +></LI +><LI +><P +>"E:"</P +></LI +><LI +><P +>"/dev/disk/ide/1/master"</P +></LI +></UL +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7265" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdnumdrives.html" +><TT +CLASS="FUNCTION" +>SDL_CDNumDrives</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdnumdrives.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdopen.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDNumDrives</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDOpen</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdnumdrives.html b/distrib/sdl-1.2.15/docs/html/sdlcdnumdrives.html new file mode 100644 index 0000000..9816a73 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdnumdrives.html @@ -0,0 +1,205 @@ +<HTML +><HEAD +><TITLE +>SDL_CDNumDrives</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="NEXT" +TITLE="SDL_CDName" +HREF="sdlcdname.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="cdrom.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdname.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDNUMDRIVES" +></A +>SDL_CDNumDrives</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7218" +></A +><H2 +>Name</H2 +>SDL_CDNumDrives -- Returns the number of CD-ROM drives on the system.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7221" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7222" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDNumDrives</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7228" +></A +><H2 +>Description</H2 +><P +>Returns the number of CD-ROM drives on the system.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7231" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdopen.html" +><TT +CLASS="FUNCTION" +>SDL_CDOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdname.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>CD-ROM</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDName</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdopen.html b/distrib/sdl-1.2.15/docs/html/sdlcdopen.html new file mode 100644 index 0000000..09a6bd9 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdopen.html @@ -0,0 +1,275 @@ +<HTML +><HEAD +><TITLE +>SDL_CDOpen</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDName" +HREF="sdlcdname.html"><LINK +REL="NEXT" +TITLE="SDL_CDStatus" +HREF="sdlcdstatus.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdname.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdstatus.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDOPEN" +></A +>SDL_CDOpen</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7274" +></A +><H2 +>Name</H2 +>SDL_CDOpen -- Opens a CD-ROM drive for access.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7277" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7278" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_CD *<B +CLASS="FSFUNC" +>SDL_CDOpen</B +></CODE +>(int drive);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7284" +></A +><H2 +>Description</H2 +><P +>Opens a CD-ROM drive for access. It returns a <A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +> structure on success, or <TT +CLASS="LITERAL" +>NULL</TT +> if the drive was invalid or busy. This newly opened CD-ROM becomes the default CD used when other CD functions are passed a <TT +CLASS="LITERAL" +>NULL</TT +> CD-ROM handle. </P +><P +>Drives are numbered starting with 0. +Drive 0 is the system default CD-ROM.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7292" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_CD *cdrom; +int cur_track; +int min, sec, frame; +SDL_Init(SDL_INIT_CDROM); +atexit(SDL_Quit); + +/* Check for CD drives */ +if(!SDL_CDNumDrives()){ + /* None found */ + fprintf(stderr, "No CDROM devices available\n"); + exit(-1); +} + +/* Open the default drive */ +cdrom=SDL_CDOpen(0); + +/* Did if open? Check if cdrom is NULL */ +if(!cdrom){ + fprintf(stderr, "Couldn't open drive: %s\n", SDL_GetError()); + exit(-1); +} + +/* Print Volume info */ +printf("Name: %s\n", SDL_CDName(0)); +printf("Tracks: %d\n", cdrom->numtracks); +for(cur_track=0;cur_track < cdrom->numtracks; cur_track++){ + FRAMES_TO_MSF(cdrom->track[cur_track].length, &min, &sec, &frame); + printf("\tTrack %d: Length %d:%d\n", cur_track, min, sec); +} + +SDL_CDClose(cdrom);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7295" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +>, +<A +HREF="sdlcdtrack.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CDtrack</SPAN +></A +>, +<A +HREF="sdlcdclose.html" +><TT +CLASS="FUNCTION" +>SDL_CDClose</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdname.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdstatus.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDName</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDStatus</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdpause.html b/distrib/sdl-1.2.15/docs/html/sdlcdpause.html new file mode 100644 index 0000000..4def8e3 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdpause.html @@ -0,0 +1,233 @@ +<HTML +><HEAD +><TITLE +>SDL_CDPause</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDPlayTracks" +HREF="sdlcdplaytracks.html"><LINK +REL="NEXT" +TITLE="SDL_CDResume" +HREF="sdlcdresume.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdplaytracks.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdresume.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDPAUSE" +></A +>SDL_CDPause</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7425" +></A +><H2 +>Name</H2 +>SDL_CDPause -- Pauses a CDROM</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7428" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7429" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDPause</B +></CODE +>(SDL_CD *cdrom);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7435" +></A +><H2 +>Description</H2 +><P +>Pauses play on the given <TT +CLASS="PARAMETER" +><I +>cdrom</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7439" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7444" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdplay.html" +><TT +CLASS="FUNCTION" +>SDL_CDPlay</TT +></A +>, +<A +HREF="sdlcdresume.html" +><TT +CLASS="FUNCTION" +>SDL_CDResume</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdplaytracks.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdresume.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDPlayTracks</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDResume</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdplay.html b/distrib/sdl-1.2.15/docs/html/sdlcdplay.html new file mode 100644 index 0000000..dc6489c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdplay.html @@ -0,0 +1,243 @@ +<HTML +><HEAD +><TITLE +>SDL_CDPlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDStatus" +HREF="sdlcdstatus.html"><LINK +REL="NEXT" +TITLE="SDL_CDPlayTracks" +HREF="sdlcdplaytracks.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdstatus.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdplaytracks.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDPLAY" +></A +>SDL_CDPlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7343" +></A +><H2 +>Name</H2 +>SDL_CDPlay -- Play a CD</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7346" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7347" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDPlay</B +></CODE +>(SDL_CD *cdrom, int start, int length);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7353" +></A +><H2 +>Description</H2 +><P +>Plays the given <TT +CLASS="PARAMETER" +><I +>cdrom</I +></TT +>, starting a frame <TT +CLASS="PARAMETER" +><I +>start</I +></TT +> for <TT +CLASS="PARAMETER" +><I +>length</I +></TT +> frames.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7359" +></A +><H2 +>Return Values</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7364" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdplaytracks.html" +><TT +CLASS="FUNCTION" +>SDL_CDPlayTracks</TT +></A +>, +<A +HREF="sdlcdstop.html" +><TT +CLASS="FUNCTION" +>SDL_CDStop</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdstatus.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdplaytracks.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDStatus</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDPlayTracks</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdplaytracks.html b/distrib/sdl-1.2.15/docs/html/sdlcdplaytracks.html new file mode 100644 index 0000000..7546181 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdplaytracks.html @@ -0,0 +1,325 @@ +<HTML +><HEAD +><TITLE +>SDL_CDPlayTracks</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDPlay" +HREF="sdlcdplay.html"><LINK +REL="NEXT" +TITLE="SDL_CDPause" +HREF="sdlcdpause.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdplay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdpause.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDPLAYTRACKS" +></A +>SDL_CDPlayTracks</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7375" +></A +><H2 +>Name</H2 +>SDL_CDPlayTracks -- Play the given CD track(s)</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7378" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7379" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDPlayTracks</B +></CODE +>(SDL_CD *cdrom, int start_track, int start_frame, int ntracks, int nframes));</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7385" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_CDPlayTracks</TT +> plays the given CD starting at track +<TT +CLASS="PARAMETER" +><I +>start_track</I +></TT +>, for <TT +CLASS="PARAMETER" +><I +>ntracks</I +></TT +> tracks. </P +><P +><TT +CLASS="PARAMETER" +><I +>start_frame</I +></TT +> is the frame offset, from the beginning of the <TT +CLASS="PARAMETER" +><I +>start_track</I +></TT +>, at which to start. <TT +CLASS="PARAMETER" +><I +>nframes</I +></TT +> is the frame offset, from the beginning of the last track (<TT +CLASS="PARAMETER" +><I +>start_track</I +></TT +>+<TT +CLASS="PARAMETER" +><I +>ntracks</I +></TT +>), at which to end playing.</P +><P +><TT +CLASS="FUNCTION" +>SDL_CDPlayTracks</TT +> should only be called after calling +<A +HREF="sdlcdstatus.html" +><TT +CLASS="FUNCTION" +>SDL_CDStatus</TT +></A +> +to get track information about the CD.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Data tracks are ignored.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7403" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> +if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7408" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>/* assuming cdrom is a previously opened device */ +/* Play the entire CD */ +if(CD_INDRIVE(SDL_CDStatus(cdrom))) + SDL_CDPlayTracks(cdrom, 0, 0, 0, 0); + +/* Play the first track */ +if(CD_INDRIVE(SDL_CDStatus(cdrom))) + SDL_CDPlayTracks(cdrom, 0, 0, 1, 0); + +/* Play first 15 seconds of the 2nd track */ +if(CD_INDRIVE(SDL_CDStatus(cdrom))) + SDL_CDPlayTracks(cdrom, 1, 0, 0, CD_FPS*15);</PRE +> + </P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7412" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdplay.html" +><TT +CLASS="FUNCTION" +>SDL_CDPlay</TT +></A +>, +<A +HREF="sdlcdstatus.html" +><TT +CLASS="FUNCTION" +>SDL_CDStatus</TT +></A +>, +<A +HREF="sdlcd.html" +><TT +CLASS="FUNCTION" +>SDL_CD</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdplay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdpause.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDPlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDPause</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdresume.html b/distrib/sdl-1.2.15/docs/html/sdlcdresume.html new file mode 100644 index 0000000..4a25ab6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdresume.html @@ -0,0 +1,233 @@ +<HTML +><HEAD +><TITLE +>SDL_CDResume</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDPause" +HREF="sdlcdpause.html"><LINK +REL="NEXT" +TITLE="SDL_CDStop" +HREF="sdlcdstop.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdpause.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdstop.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDRESUME" +></A +>SDL_CDResume</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7455" +></A +><H2 +>Name</H2 +>SDL_CDResume -- Resumes a CDROM</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7458" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7459" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDResume</B +></CODE +>(SDL_CD *cdrom);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7465" +></A +><H2 +>Description</H2 +><P +>Resumes play on the given <TT +CLASS="PARAMETER" +><I +>cdrom</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7469" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7474" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdplay.html" +><TT +CLASS="FUNCTION" +>SDL_CDPlay</TT +></A +>, +<A +HREF="sdlcdpause.html" +><TT +CLASS="FUNCTION" +>SDL_CDPause</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdpause.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdstop.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDPause</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDStop</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdstatus.html b/distrib/sdl-1.2.15/docs/html/sdlcdstatus.html new file mode 100644 index 0000000..3ebf965 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdstatus.html @@ -0,0 +1,273 @@ +<HTML +><HEAD +><TITLE +>SDL_CDStatus</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDOpen" +HREF="sdlcdopen.html"><LINK +REL="NEXT" +TITLE="SDL_CDPlay" +HREF="sdlcdplay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdopen.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdplay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDSTATUS" +></A +>SDL_CDStatus</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7308" +></A +><H2 +>Name</H2 +>SDL_CDStatus -- Returns the current status of the given drive.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7311" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7312" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>CDstatus <B +CLASS="FSFUNC" +>SDL_CDStatus</B +></CODE +>(SDL_CD *cdrom);</CODE +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>/* Given a status, returns true if there's a disk in the drive */ +#define CD_INDRIVE(status) ((int)status > 0)</PRE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7319" +></A +><H2 +>Description</H2 +><P +>This function returns the current status of the given drive. Status is described like so: +<PRE +CLASS="PROGRAMLISTING" +>typedef enum { + CD_TRAYEMPTY, + CD_STOPPED, + CD_PLAYING, + CD_PAUSED, + CD_ERROR = -1 +} CDstatus;</PRE +></P +><P +>If the drive has a CD in it, the table of contents of the CD and current +play position of the CD will be stored in the SDL_CD structure.</P +><P +>The macro <TT +CLASS="LITERAL" +>CD_INDRIVE</TT +> is provided for convenience, +and given a status returns true if there's a disk in the drive.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +><TT +CLASS="FUNCTION" +>SDL_CDStatus</TT +> also updates the <A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +> structure passed to it.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7331" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>int playTrack(int track) +{ + int playing = 0; + + if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) { + /* clamp to the actual number of tracks on the CD */ + if (track >= cdrom->numtracks) { + track = cdrom->numtracks-1; + } + + if ( SDL_CDPlayTracks(cdrom, track, 0, 1, 0) == 0 ) { + playing = 1; + } + } + return playing; +}</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7334" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcd.html" +><TT +CLASS="FUNCTION" +>SDL_CD</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdopen.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdplay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDOpen</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDPlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdstop.html b/distrib/sdl-1.2.15/docs/html/sdlcdstop.html new file mode 100644 index 0000000..68f8d81 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdstop.html @@ -0,0 +1,226 @@ +<HTML +><HEAD +><TITLE +>SDL_CDStop</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDResume" +HREF="sdlcdresume.html"><LINK +REL="NEXT" +TITLE="SDL_CDEject" +HREF="sdlcdeject.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdresume.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcdeject.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDSTOP" +></A +>SDL_CDStop</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7485" +></A +><H2 +>Name</H2 +>SDL_CDStop -- Stops a CDROM</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7488" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7489" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CDStop</B +></CODE +>(SDL_CD *cdrom);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7495" +></A +><H2 +>Description</H2 +><P +>Stops play on the given <TT +CLASS="PARAMETER" +><I +>cdrom</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7499" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7504" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcdplay.html" +><TT +CLASS="FUNCTION" +>SDL_CDPlay</TT +></A +>,</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdresume.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcdeject.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDResume</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CDEject</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcdtrack.html b/distrib/sdl-1.2.15/docs/html/sdlcdtrack.html new file mode 100644 index 0000000..bbb04bb --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcdtrack.html @@ -0,0 +1,313 @@ +<HTML +><HEAD +><TITLE +>SDL_CDtrack</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="CD-ROM" +HREF="cdrom.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CD" +HREF="sdlcd.html"><LINK +REL="NEXT" +TITLE="Multi-threaded Programming" +HREF="thread.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcd.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="thread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCDTRACK" +></A +>SDL_CDtrack</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7628" +></A +><H2 +>Name</H2 +>SDL_CDtrack -- CD Track Information Structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7631" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 id; + Uint8 type; + Uint32 length; + Uint32 offset; +} SDL_CDtrack;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7634" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN7636" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>id</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Track number (0-99)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_AUDIO_TRACK</TT +> or <TT +CLASS="LITERAL" +>SDL_DATA_TRACK</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>length</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Length, in frames, of this track</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>offset</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Frame offset to the beginning of this track</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7657" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_CDtrack</SPAN +> stores data on each track on a CD, its fields should be pretty self explainatory. It is a member a the <A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +> structure.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Frames can be converted to standard timings. There are <TT +CLASS="LITERAL" +>CD_FPS</TT +> frames per second, so <SPAN +CLASS="STRUCTNAME" +>SDL_CDtrack</SPAN +>.<TT +CLASS="STRUCTFIELD" +><I +>length</I +></TT +>/<TT +CLASS="LITERAL" +>CD_FPS</TT +>=length_in_seconds.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7669" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcd.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_CD</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcd.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CD</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Multi-threaded Programming</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcloseaudio.html b/distrib/sdl-1.2.15/docs/html/sdlcloseaudio.html new file mode 100644 index 0000000..599f058 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcloseaudio.html @@ -0,0 +1,205 @@ +<HTML +><HEAD +><TITLE +>SDL_CloseAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_UnlockAudio" +HREF="sdlunlockaudio.html"><LINK +REL="NEXT" +TITLE="CD-ROM" +HREF="cdrom.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlunlockaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="cdrom.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCLOSEAUDIO" +></A +>SDL_CloseAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7180" +></A +><H2 +>Name</H2 +>SDL_CloseAudio -- Shuts down audio processing and closes the audio device.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7183" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7184" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_CloseAudio</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7190" +></A +><H2 +>Description</H2 +><P +>This function shuts down audio processing and closes the audio device.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7193" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +> </P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlunlockaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="cdrom.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_UnlockAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>CD-ROM</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcolor.html b/distrib/sdl-1.2.15/docs/html/sdlcolor.html new file mode 100644 index 0000000..c8b7d44 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcolor.html @@ -0,0 +1,300 @@ +<HTML +><HEAD +><TITLE +>SDL_Color</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Rect" +HREF="sdlrect.html"><LINK +REL="NEXT" +TITLE="SDL_Palette" +HREF="sdlpalette.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlrect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpalette.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCOLOR" +></A +>SDL_Color</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3082" +></A +><H2 +>Name</H2 +>SDL_Color -- Format independent color description</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3085" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 r; + Uint8 g; + Uint8 b; + Uint8 unused; +} SDL_Color;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3088" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3090" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>r</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Red intensity</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>g</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Green intensity</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>b</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Blue intensity</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>unused</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Unused</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3109" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +> describes a color in a format independent way. You can convert a <SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +> to a pixel value for a certain pixel format using <A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGB</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3116" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +>, +<A +HREF="sdlsetcolors.html" +><TT +CLASS="FUNCTION" +>SDL_SetColors</TT +></A +>, +<A +HREF="sdlpalette.html" +><TT +CLASS="FUNCTION" +>SDL_Palette</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlrect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpalette.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Rect</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Palette</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcondbroadcast.html b/distrib/sdl-1.2.15/docs/html/sdlcondbroadcast.html new file mode 100644 index 0000000..9b0fc83 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcondbroadcast.html @@ -0,0 +1,224 @@ +<HTML +><HEAD +><TITLE +>SDL_CondBroadcast</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CondSignal" +HREF="sdlcondsignal.html"><LINK +REL="NEXT" +TITLE="SDL_CondWait" +HREF="sdlcondwait.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcondsignal.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcondwait.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCONDBROADCAST" +></A +>SDL_CondBroadcast</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8337" +></A +><H2 +>Name</H2 +>SDL_CondBroadcast -- Restart all threads waiting on a condition variable</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8340" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8341" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CondBroadcast</B +></CODE +>(SDL_cond *cond);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8347" +></A +><H2 +>Description</H2 +><P +>Restarts all threads that are waiting on the condition variable, <TT +CLASS="PARAMETER" +><I +>cond</I +></TT +>. Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8353" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcondsignal.html" +><TT +CLASS="FUNCTION" +>SDL_CondSignal</TT +></A +>, +<A +HREF="sdlcondwait.html" +><TT +CLASS="FUNCTION" +>SDL_CondWait</TT +></A +> </P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcondsignal.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcondwait.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CondSignal</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CondWait</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcondsignal.html b/distrib/sdl-1.2.15/docs/html/sdlcondsignal.html new file mode 100644 index 0000000..24e9175 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcondsignal.html @@ -0,0 +1,224 @@ +<HTML +><HEAD +><TITLE +>SDL_CondSignal</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_DestroyCond" +HREF="sdldestroycond.html"><LINK +REL="NEXT" +TITLE="SDL_CondBroadcast" +HREF="sdlcondbroadcast.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldestroycond.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcondbroadcast.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCONDSIGNAL" +></A +>SDL_CondSignal</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8310" +></A +><H2 +>Name</H2 +>SDL_CondSignal -- Restart a thread wait on a condition variable</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8313" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8314" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CondSignal</B +></CODE +>(SDL_cond *cond);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8320" +></A +><H2 +>Description</H2 +><P +>Restart one of the threads that are waiting on the condition variable, <TT +CLASS="PARAMETER" +><I +>cond</I +></TT +>. Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success of <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8326" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcondwait.html" +><TT +CLASS="FUNCTION" +>SDL_CondWait</TT +></A +>, +<A +HREF="sdlcondbroadcast.html" +><TT +CLASS="FUNCTION" +>SDL_CondBroadcast</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldestroycond.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcondbroadcast.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_DestroyCond</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CondBroadcast</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcondwait.html b/distrib/sdl-1.2.15/docs/html/sdlcondwait.html new file mode 100644 index 0000000..8f15452 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcondwait.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_CondWait</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CondBroadcast" +HREF="sdlcondbroadcast.html"><LINK +REL="NEXT" +TITLE="SDL_CondWaitTimeout" +HREF="sdlcondwaittimeout.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcondbroadcast.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcondwaittimeout.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCONDWAIT" +></A +>SDL_CondWait</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8364" +></A +><H2 +>Name</H2 +>SDL_CondWait -- Wait on a condition variable</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8367" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8368" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CondWait</B +></CODE +>(SDL_cond *cond, SDL_mutex *mut);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8374" +></A +><H2 +>Description</H2 +><P +>Wait on the condition variable <TT +CLASS="PARAMETER" +><I +>cond</I +></TT +> and unlock the provided mutex. The mutex must the locked before entering this function. Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> when it is signalled, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8380" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcondwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_CondWaitTimeout</TT +></A +>, +<A +HREF="sdlcondsignal.html" +><TT +CLASS="FUNCTION" +>SDL_CondSignal</TT +></A +>, +<A +HREF="sdlmutexp.html" +><TT +CLASS="FUNCTION" +>SDL_mutexP</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcondbroadcast.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcondwaittimeout.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CondBroadcast</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CondWaitTimeout</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcondwaittimeout.html b/distrib/sdl-1.2.15/docs/html/sdlcondwaittimeout.html new file mode 100644 index 0000000..deed50b --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcondwaittimeout.html @@ -0,0 +1,230 @@ +<HTML +><HEAD +><TITLE +>SDL_CondWaitTimeout</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CondWait" +HREF="sdlcondwait.html"><LINK +REL="NEXT" +TITLE="Time" +HREF="time.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcondwait.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="time.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCONDWAITTIMEOUT" +></A +>SDL_CondWaitTimeout</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8393" +></A +><H2 +>Name</H2 +>SDL_CondWaitTimeout -- Wait on a condition variable, with timeout</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8396" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8397" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_CondWaitTimeout</B +></CODE +>(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8403" +></A +><H2 +>Description</H2 +><P +>Wait on the condition variable <TT +CLASS="PARAMETER" +><I +>cond</I +></TT +> for, at most, <TT +CLASS="PARAMETER" +><I +>ms</I +></TT +> milliseconds. <TT +CLASS="PARAMETER" +><I +>mut</I +></TT +> is unlocked so it must be locked when the function is called. Returns <TT +CLASS="LITERAL" +>SDL_MUTEX_TIMEDOUT</TT +> if the condition is not signalled in the allotted time, <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if it was signalled or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8412" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcondwait.html" +><TT +CLASS="FUNCTION" +>SDL_CondWait</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcondwait.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CondWait</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Time</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlconvertaudio.html b/distrib/sdl-1.2.15/docs/html/sdlconvertaudio.html new file mode 100644 index 0000000..52f1229 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlconvertaudio.html @@ -0,0 +1,407 @@ +<HTML +><HEAD +><TITLE +>SDL_ConvertAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_BuildAudioCVT" +HREF="sdlbuildaudiocvt.html"><LINK +REL="NEXT" +TITLE="SDL_MixAudio" +HREF="sdlmixaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlbuildaudiocvt.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmixaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCONVERTAUDIO" +></A +>SDL_ConvertAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7048" +></A +><H2 +>Name</H2 +>SDL_ConvertAudio -- Convert audio data to a desired audio format.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7051" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7052" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_ConvertAudio</B +></CODE +>(SDL_AudioCVT *cvt);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7058" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +> takes one parameter, <TT +CLASS="PARAMETER" +><I +>cvt</I +></TT +>, which was previously initilized. Initilizing a <A +HREF="sdlaudiocvt.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +></A +> is a two step process. First of all, the structure must be passed to <A +HREF="sdlbuildaudiocvt.html" +><TT +CLASS="FUNCTION" +>SDL_BuildAudioCVT</TT +></A +> along with source and destination format parameters. Secondly, the <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +> and <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +> fields must be setup. <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +> should point to the audio data and <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +> should be set to the length of the audio data in bytes. Remember, the length of the buffer pointed to by <TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +> show be <TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +>*<TT +CLASS="STRUCTFIELD" +><I +>len_mult</I +></TT +> bytes in length.</P +><P +>Once the <SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +>structure is initilized then we can pass it to <TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +>, which will convert the audio data pointer to by <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +>. If <TT +CLASS="FUNCTION" +>SDL_ConvertAudio</TT +> returned <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> then the conversion was completed successfully, otherwise <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> is returned.</P +><P +>If the conversion completed successfully then the converted audio data can be read from <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>buf</I +></TT +>. The amount of valid, converted, audio data in the buffer is equal to <SPAN +CLASS="STRUCTNAME" +>cvt</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>len</I +></TT +>*<TT +CLASS="STRUCTFIELD" +><I +>cvt</I +></TT +>-><SPAN +CLASS="STRUCTNAME" +>len_ratio</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7093" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>/* Converting some WAV data to hardware format */ +void my_audio_callback(void *userdata, Uint8 *stream, int len); + +SDL_AudioSpec *desired, *obtained; +SDL_AudioSpec wav_spec; +SDL_AudioCVT wav_cvt; +Uint32 wav_len; +Uint8 *wav_buf; +int ret; + +/* Allocated audio specs */ +desired = malloc(sizeof(SDL_AudioSpec)); +obtained = malloc(sizeof(SDL_AudioSpec)); + +/* Set desired format */ +desired->freq=22050; +desired->format=AUDIO_S16LSB; +desired->samples=8192; +desired->callback=my_audio_callback; +desired->userdata=NULL; + +/* Open the audio device */ +if ( SDL_OpenAudio(desired, obtained) < 0 ){ + fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError()); + exit(-1); +} + +free(desired); + +/* Load the test.wav */ +if( SDL_LoadWAV("test.wav", &wav_spec, &wav_buf, &wav_len) == NULL ){ + fprintf(stderr, "Could not open test.wav: %s\n", SDL_GetError()); + SDL_CloseAudio(); + free(obtained); + exit(-1); +} + +/* Build AudioCVT */ +ret = SDL_BuildAudioCVT(&wav_cvt, + wav_spec.format, wav_spec.channels, wav_spec.freq, + obtained->format, obtained->channels, obtained->freq); + +/* Check that the convert was built */ +if(ret==-1){ + fprintf(stderr, "Couldn't build converter!\n"); + SDL_CloseAudio(); + free(obtained); + SDL_FreeWAV(wav_buf); +} + +/* Setup for conversion */ +wav_cvt.buf = malloc(wav_len * wav_cvt.len_mult); +wav_cvt.len = wav_len; +memcpy(wav_cvt.buf, wav_buf, wav_len); + +/* We can delete to original WAV data now */ +SDL_FreeWAV(wav_buf); + +/* And now we're ready to convert */ +SDL_ConvertAudio(&wav_cvt); + +/* do whatever */ +. +. +. +. + </PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7096" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlbuildaudiocvt.html" +><TT +CLASS="FUNCTION" +>SDL_BuildAudioCVT</TT +></A +>, +<A +HREF="sdlaudiocvt.html" +><TT +CLASS="FUNCTION" +>SDL_AudioCVT</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlbuildaudiocvt.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmixaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_BuildAudioCVT</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_MixAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlconvertsurface.html b/distrib/sdl-1.2.15/docs/html/sdlconvertsurface.html new file mode 100644 index 0000000..cc21f78 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlconvertsurface.html @@ -0,0 +1,271 @@ +<HTML +><HEAD +><TITLE +>SDL_ConvertSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetClipRect" +HREF="sdlgetcliprect.html"><LINK +REL="NEXT" +TITLE="SDL_BlitSurface" +HREF="sdlblitsurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetcliprect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlblitsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCONVERTSURFACE" +></A +>SDL_ConvertSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2258" +></A +><H2 +>Name</H2 +>SDL_ConvertSurface -- Converts a surface to the same format as another surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2261" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2262" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL/SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_ConvertSurface</B +></CODE +>(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2268" +></A +><H2 +>Description</H2 +><P +>Creates a new surface of the specified format, and then copies and maps +the given surface to it. If this function fails, it returns +<TT +CLASS="LITERAL" +>NULL</TT +>.</P +><P +>The <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> parameter is passed to +<A +HREF="sdlcreatergbsurface.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurface</TT +></A +> +and has those semantics.</P +><P +>This function is used internally by +<A +HREF="sdldisplayformat.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayFormat</TT +></A +>.</P +><P +>This function can only be called after SDL_Init.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2280" +></A +><H2 +>Return Value</H2 +><P +>Returns either a pointer to the new surface, or +<TT +CLASS="LITERAL" +>NULL</TT +> on error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2284" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatergbsurface.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurface</TT +></A +>, +<A +HREF="sdldisplayformat.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayFormat</TT +></A +>, +<A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetcliprect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlblitsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetClipRect</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_BlitSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatecond.html b/distrib/sdl-1.2.15/docs/html/sdlcreatecond.html new file mode 100644 index 0000000..02fcdb2 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatecond.html @@ -0,0 +1,240 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateCond</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SemValue" +HREF="sdlsemvalue.html"><LINK +REL="NEXT" +TITLE="SDL_DestroyCond" +HREF="sdldestroycond.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsemvalue.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldestroycond.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATECOND" +></A +>SDL_CreateCond</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8259" +></A +><H2 +>Name</H2 +>SDL_CreateCond -- Create a condition variable</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8262" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8263" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_cond *<B +CLASS="FSFUNC" +>SDL_CreateCond</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8269" +></A +><H2 +>Description</H2 +><P +>Creates a condition variable.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8272" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_cond *cond; + +cond=SDL_CreateCond(); +. +. +/* Do stuff */ + +. +. +SDL_DestroyCond(cond);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8275" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdldestroycond.html" +><TT +CLASS="FUNCTION" +>SDL_DestroyCond</TT +></A +>, +<A +HREF="sdlcondwait.html" +><TT +CLASS="FUNCTION" +>SDL_CondWait</TT +></A +>, +<A +HREF="sdlcondsignal.html" +><TT +CLASS="FUNCTION" +>SDL_CondSignal</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsemvalue.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldestroycond.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SemValue</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_DestroyCond</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatecursor.html b/distrib/sdl-1.2.15/docs/html/sdlcreatecursor.html new file mode 100644 index 0000000..a444165 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatecursor.html @@ -0,0 +1,398 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateCursor</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WarpMouse" +HREF="sdlwarpmouse.html"><LINK +REL="NEXT" +TITLE="SDL_FreeCursor" +HREF="sdlfreecursor.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwarpmouse.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlfreecursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATECURSOR" +></A +>SDL_CreateCursor</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2487" +></A +><H2 +>Name</H2 +>SDL_CreateCursor -- Creates a new mouse cursor.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2490" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2491" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Cursor *<B +CLASS="FSFUNC" +>SDL_CreateCursor</B +></CODE +>(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2497" +></A +><H2 +>Description</H2 +><P +>Create a cursor using the specified <TT +CLASS="PARAMETER" +><I +>data</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>mask</I +></TT +> (in MSB format). +The cursor width must be a multiple of 8 bits.</P +><P +>The cursor is created in black and white according to the following: +<DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN2503" +></A +><P +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><THEAD +><TR +><TH +ALIGN="LEFT" +VALIGN="TOP" +>Data / Mask</TH +><TH +ALIGN="LEFT" +VALIGN="TOP" +>Resulting pixel on screen</TH +></TR +></THEAD +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>0 / 1</TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>White</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>1 / 1</TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Black</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>0 / 0</TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Transparent</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>1 / 0</TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Inverted color if possible, black if not.</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></P +><P +>Cursors created with this function must be freed with +<A +HREF="sdlfreecursor.html" +>SDL_FreeCursor</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2524" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>/* Stolen from the mailing list */ +/* Creates a new mouse cursor from an XPM */ + + +/* XPM */ +static const char *arrow[] = { + /* width height num_colors chars_per_pixel */ + " 32 32 3 1", + /* colors */ + "X c #000000", + ". c #ffffff", + " c None", + /* pixels */ + "X ", + "XX ", + "X.X ", + "X..X ", + "X...X ", + "X....X ", + "X.....X ", + "X......X ", + "X.......X ", + "X........X ", + "X.....XXXXX ", + "X..X..X ", + "X.X X..X ", + "XX X..X ", + "X X..X ", + " X..X ", + " X..X ", + " X..X ", + " XX ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + "0,0" +}; + +static SDL_Cursor *init_system_cursor(const char *image[]) +{ + int i, row, col; + Uint8 data[4*32]; + Uint8 mask[4*32]; + int hot_x, hot_y; + + i = -1; + for ( row=0; row<32; ++row ) { + for ( col=0; col<32; ++col ) { + if ( col % 8 ) { + data[i] <<= 1; + mask[i] <<= 1; + } else { + ++i; + data[i] = mask[i] = 0; + } + switch (image[4+row][col]) { + case 'X': + data[i] |= 0x01; + mask[i] |= 0x01; + break; + case '.': + mask[i] |= 0x01; + break; + case ' ': + break; + } + } + } + sscanf(image[4+row], "%d,%d", &hot_x, &hot_y); + return SDL_CreateCursor(data, mask, 32, 32, hot_x, hot_y); +}</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2527" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlfreecursor.html" +><TT +CLASS="FUNCTION" +>SDL_FreeCursor</TT +></A +>, +<A +HREF="sdlsetcursor.html" +><TT +CLASS="FUNCTION" +>SDL_SetCursor</TT +></A +>, +<A +HREF="sdlshowcursor.html" +><TT +CLASS="FUNCTION" +>SDL_ShowCursor</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwarpmouse.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlfreecursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WarpMouse</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_FreeCursor</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatemutex.html b/distrib/sdl-1.2.15/docs/html/sdlcreatemutex.html new file mode 100644 index 0000000..53ed48b --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatemutex.html @@ -0,0 +1,249 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateMutex</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_KillThread" +HREF="sdlkillthread.html"><LINK +REL="NEXT" +TITLE="SDL_DestroyMutex" +HREF="sdldestroymutex.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlkillthread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldestroymutex.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATEMUTEX" +></A +>SDL_CreateMutex</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7820" +></A +><H2 +>Name</H2 +>SDL_CreateMutex -- Create a mutex</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7823" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7824" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_mutex *<B +CLASS="FSFUNC" +>SDL_CreateMutex</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7830" +></A +><H2 +>Description</H2 +><P +>Create a new, unlocked mutex.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7833" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_mutex *mut; + +mut=SDL_CreateMutex(); +. +. +if(SDL_mutexP(mut)==-1){ + fprintf(stderr, "Couldn't lock mutex\n"); + exit(-1); +} +. +/* Do stuff while mutex is locked */ +. +. +if(SDL_mutexV(mut)==-1){ + fprintf(stderr, "Couldn't unlock mutex\n"); + exit(-1); +} + +SDL_DestroyMutex(mut); </PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7836" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlmutexp.html" +><TT +CLASS="FUNCTION" +>SDL_mutexP</TT +></A +>, +<A +HREF="sdlmutexv.html" +><TT +CLASS="FUNCTION" +>SDL_mutexV</TT +></A +>, +<A +HREF="sdldestroymutex.html" +><TT +CLASS="FUNCTION" +>SDL_DestroyMutex</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlkillthread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldestroymutex.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_KillThread</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_DestroyMutex</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatergbsurface.html b/distrib/sdl-1.2.15/docs/html/sdlcreatergbsurface.html new file mode 100644 index 0000000..736ec8f --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatergbsurface.html @@ -0,0 +1,458 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateRGBSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetRGBA" +HREF="sdlgetrgba.html"><LINK +REL="NEXT" +TITLE="SDL_CreateRGBSurfaceFrom" +HREF="sdlcreatergbsurfacefrom.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetrgba.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatergbsurfacefrom.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATERGBSURFACE" +></A +>SDL_CreateRGBSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1773" +></A +><H2 +>Name</H2 +>SDL_CreateRGBSurface -- Create an empty SDL_Surface</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1776" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1777" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_CreateRGBSurface</B +></CODE +>(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1783" +></A +><H2 +>Description</H2 +><P +>Allocate an empty surface (must be called after <A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +>)</P +><P +>If <TT +CLASS="PARAMETER" +><I +>depth</I +></TT +> is 8 bits an empty palette is allocated for the surface, otherwise a 'packed-pixel' <A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +> is created using the <TT +CLASS="PARAMETER" +><I +>[RGBA]mask</I +></TT +>'s provided (see <A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +>). The <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> specifies the type of surface that should be created, it is an OR'd combination of the following possible values.</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN1795" +></A +><P +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SWSURFACE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>SDL will create the surface in system memory. This improves the performance of pixel level access, however you may not be able to take advantage of some types of hardware blitting.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_HWSURFACE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>SDL will attempt to create the surface in video memory. This will allow SDL to take advantage of Video->Video blits (which are often accelerated).</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>This flag turns on colourkeying for blits from this surface. If +<TT +CLASS="LITERAL" +>SDL_HWSURFACE</TT +> is also specified and colourkeyed blits +are hardware-accelerated, then SDL will attempt to place the surface in +video memory. +Use <A +HREF="sdlsetcolorkey.html" +><TT +CLASS="FUNCTION" +>SDL_SetColorKey</TT +></A +> +to set or clear this flag after surface creation.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>This flag turns on alpha-blending for blits from this surface. If +<TT +CLASS="LITERAL" +>SDL_HWSURFACE</TT +> is also specified and alpha-blending blits +are hardware-accelerated, then the surface will be placed in video memory if +possible. +Use <A +HREF="sdlsetalpha.html" +><TT +CLASS="FUNCTION" +>SDL_SetAlpha</TT +></A +> to +set or clear this flag after surface creation.</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>If an alpha-channel is specified (that is, if <TT +CLASS="PARAMETER" +><I +>Amask</I +></TT +> is +nonzero), then the <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +> flag is automatically +set. You may remove this flag by calling +<A +HREF="sdlsetalpha.html" +><TT +CLASS="FUNCTION" +>SDL_SetAlpha</TT +></A +> +after surface creation.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1826" +></A +><H2 +>Return Value</H2 +><P +>Returns the created surface, or <SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> upon error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1830" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +> /* Create a 32-bit surface with the bytes of each pixel in R,G,B,A order, + as expected by OpenGL for textures */ + SDL_Surface *surface; + Uint32 rmask, gmask, bmask, amask; + + /* SDL interprets each pixel as a 32-bit number, so our masks must depend + on the endianness (byte order) of the machine */ +#if SDL_BYTEORDER == SDL_BIG_ENDIAN + rmask = 0xff000000; + gmask = 0x00ff0000; + bmask = 0x0000ff00; + amask = 0x000000ff; +#else + rmask = 0x000000ff; + gmask = 0x0000ff00; + bmask = 0x00ff0000; + amask = 0xff000000; +#endif + + surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 32, + rmask, gmask, bmask, amask); + if(surface == NULL) { + fprintf(stderr, "CreateRGBSurface failed: %s\n", SDL_GetError()); + exit(1); + }</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1833" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatergbsurfacefrom.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurfaceFrom</TT +></A +>, +<A +HREF="sdlfreesurface.html" +><TT +CLASS="FUNCTION" +>SDL_FreeSurface</TT +></A +>, +<A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +>, +<A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +> +<A +HREF="sdlsetalpha.html" +><TT +CLASS="FUNCTION" +>SDL_SetAlpha</TT +></A +> +<A +HREF="sdlsetcolorkey.html" +><TT +CLASS="FUNCTION" +>SDL_SetColorKey</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetrgba.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatergbsurfacefrom.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetRGBA</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateRGBSurfaceFrom</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatergbsurfacefrom.html b/distrib/sdl-1.2.15/docs/html/sdlcreatergbsurfacefrom.html new file mode 100644 index 0000000..6acfdcc --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatergbsurfacefrom.html @@ -0,0 +1,256 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateRGBSurfaceFrom</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateRGBSurface" +HREF="sdlcreatergbsurface.html"><LINK +REL="NEXT" +TITLE="SDL_FreeSurface" +HREF="sdlfreesurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatergbsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlfreesurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATERGBSURFACEFROM" +></A +>SDL_CreateRGBSurfaceFrom</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1856" +></A +><H2 +>Name</H2 +>SDL_CreateRGBSurfaceFrom -- Create an SDL_Surface from pixel data</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1859" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1860" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_CreateRGBSurfaceFrom</B +></CODE +>(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1866" +></A +><H2 +>Description</H2 +><P +>Creates an SDL_Surface from the provided pixel data.</P +><P +>The data stored in <TT +CLASS="PARAMETER" +><I +>pixels</I +></TT +> is assumed to be of the <TT +CLASS="PARAMETER" +><I +>depth</I +></TT +> specified in the parameter list. The pixel data is not copied into the <SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +> structure so it should not be freed until the surface has been freed with a called to <A +HREF="sdlfreesurface.html" +>SDL_FreeSurface</A +>. <TT +CLASS="PARAMETER" +><I +>pitch</I +></TT +> is the length of each scanline in bytes. </P +><P +>See <A +HREF="sdlcreatergbsurface.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurface</TT +></A +> for a more detailed description of the other parameters.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1878" +></A +><H2 +>Return Value</H2 +><P +>Returns the created surface, or <SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> upon error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1882" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatergbsurface.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurface</TT +></A +>, +<A +HREF="sdlfreesurface.html" +><TT +CLASS="FUNCTION" +>SDL_FreeSurface</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatergbsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlfreesurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateRGBSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_FreeSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatesemaphore.html b/distrib/sdl-1.2.15/docs/html/sdlcreatesemaphore.html new file mode 100644 index 0000000..43dcbf5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatesemaphore.html @@ -0,0 +1,303 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateSemaphore</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_mutexV" +HREF="sdlmutexv.html"><LINK +REL="NEXT" +TITLE="SDL_DestroySemaphore" +HREF="sdldestroysemaphore.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmutexv.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldestroysemaphore.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATESEMAPHORE" +></A +>SDL_CreateSemaphore</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7936" +></A +><H2 +>Name</H2 +>SDL_CreateSemaphore -- Creates a new semaphore and assigns an initial value to it.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7939" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7940" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_sem *<B +CLASS="FSFUNC" +>SDL_CreateSemaphore</B +></CODE +>(Uint32 initial_value);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7946" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore()</TT +> creates a new semaphore and +initializes it with the value <TT +CLASS="PARAMETER" +><I +>initial_value</I +></TT +>. +Each locking operation on the semaphore by +<A +HREF="sdlsemwait.html" +>SDL_SemWait</A +>, +<A +HREF="sdlsemtrywait.html" +>SDL_SemTryWait</A +> or +<A +HREF="sdlsemwaittimeout.html" +>SDL_SemWaitTimeout</A +> +will atomically decrement the semaphore value. The locking operation will be blocked +if the semaphore value is not positive (greater than zero). Each unlock operation by +<A +HREF="sdlsempost.html" +>SDL_SemPost</A +> +will atomically increment the semaphore value.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7955" +></A +><H2 +>Return Value</H2 +><P +>Returns a pointer to an initialized semaphore or +<SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7959" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_sem *my_sem; + +my_sem = SDL_CreateSemaphore(INITIAL_SEM_VALUE); + +if (my_sem == NULL) { + return CREATE_SEM_FAILED; +}</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7963" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdldestroysemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +></A +>, +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>, +<A +HREF="sdlsemtrywait.html" +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +></A +>, +<A +HREF="sdlsemwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout</TT +></A +>, +<A +HREF="sdlsempost.html" +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +></A +>, +<A +HREF="sdlsemvalue.html" +><TT +CLASS="FUNCTION" +>SDL_SemValue</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmutexv.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldestroysemaphore.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_mutexV</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_DestroySemaphore</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreatethread.html b/distrib/sdl-1.2.15/docs/html/sdlcreatethread.html new file mode 100644 index 0000000..ca3c2d9 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreatethread.html @@ -0,0 +1,223 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateThread</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="NEXT" +TITLE="SDL_ThreadID" +HREF="sdlthreadid.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="thread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlthreadid.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATETHREAD" +></A +>SDL_CreateThread</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7701" +></A +><H2 +>Name</H2 +>SDL_CreateThread -- Creates a new thread of execution that shares its parent's properties.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7704" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7705" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Thread *<B +CLASS="FSFUNC" +>SDL_CreateThread</B +></CODE +>(int (*fn)(void *), void *data);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7711" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_CreateThread</TT +> creates a new thread of execution +that shares all of its parent's global memory, signal handlers, +file descriptors, etc, and runs the function <TT +CLASS="PARAMETER" +><I +>fn</I +></TT +> +passed the void pointer <TT +CLASS="PARAMETER" +><I +>data</I +></TT +> +The thread quits when this function returns.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7717" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlkillthread.html" +><TT +CLASS="FUNCTION" +>SDL_KillThread</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlthreadid.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Multi-threaded Programming</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ThreadID</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlcreateyuvoverlay.html b/distrib/sdl-1.2.15/docs/html/sdlcreateyuvoverlay.html new file mode 100644 index 0000000..c24ef6e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlcreateyuvoverlay.html @@ -0,0 +1,256 @@ +<HTML +><HEAD +><TITLE +>SDL_CreateYUVOverlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GL_SwapBuffers" +HREF="sdlglswapbuffers.html"><LINK +REL="NEXT" +TITLE="SDL_LockYUVOverlay" +HREF="sdllockyuvoverlay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlglswapbuffers.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdllockyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLCREATEYUVOVERLAY" +></A +>SDL_CreateYUVOverlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2808" +></A +><H2 +>Name</H2 +>SDL_CreateYUVOverlay -- Create a YUV video overlay</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2811" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2812" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Overlay *<B +CLASS="FSFUNC" +>SDL_CreateYUVOverlay</B +></CODE +>(int width, int height, Uint32 format, SDL_Surface *display);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2818" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +> creates a YUV overlay of the specified <TT +CLASS="PARAMETER" +><I +>width</I +></TT +>, <TT +CLASS="PARAMETER" +><I +>height</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>format</I +></TT +> (see <A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +> for a list of available formats), for the provided <TT +CLASS="PARAMETER" +><I +>display</I +></TT +>. A <A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +> structure is returned.</P +><P +>The term 'overlay' is a misnomer since, unless the overlay is created in hardware, the contents for the display surface underneath the area where the overlay is shown will be overwritten when the overlay is displayed.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2831" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +>, +<A +HREF="sdldisplayyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayYUVOverlay</TT +></A +>, +<A +HREF="sdlfreeyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_FreeYUVOverlay</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlglswapbuffers.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdllockyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GL_SwapBuffers</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_LockYUVOverlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldelay.html b/distrib/sdl-1.2.15/docs/html/sdldelay.html new file mode 100644 index 0000000..a5417fa --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldelay.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_Delay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Time" +HREF="time.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetTicks" +HREF="sdlgetticks.html"><LINK +REL="NEXT" +TITLE="SDL_AddTimer" +HREF="sdladdtimer.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetticks.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdladdtimer.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDELAY" +></A +>SDL_Delay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8455" +></A +><H2 +>Name</H2 +>SDL_Delay -- Wait a specified number of milliseconds before returning.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8458" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8459" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_Delay</B +></CODE +>(Uint32 ms);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8465" +></A +><H2 +>Description</H2 +><P +>Wait a specified number of milliseconds before returning. <TT +CLASS="FUNCTION" +>SDL_Delay</TT +> will wait at <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>least</I +></SPAN +> the specified time, but possible longer due to OS scheduling.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Count on a delay granularity of <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>at least</I +></SPAN +> 10 ms. +Some platforms have shorter clock ticks but this is the most common.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8473" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdladdtimer.html" +><TT +CLASS="FUNCTION" +>SDL_AddTimer</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetticks.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdladdtimer.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetTicks</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_AddTimer</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldestroycond.html b/distrib/sdl-1.2.15/docs/html/sdldestroycond.html new file mode 100644 index 0000000..ac08042 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldestroycond.html @@ -0,0 +1,206 @@ +<HTML +><HEAD +><TITLE +>SDL_DestroyCond</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateCond" +HREF="sdlcreatecond.html"><LINK +REL="NEXT" +TITLE="SDL_CondSignal" +HREF="sdlcondsignal.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatecond.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcondsignal.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDESTROYCOND" +></A +>SDL_DestroyCond</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8288" +></A +><H2 +>Name</H2 +>SDL_DestroyCond -- Destroy a condition variable</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8291" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8292" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_DestroyCond</B +></CODE +>(SDL_cond *cond);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8298" +></A +><H2 +>Description</H2 +><P +>Destroys a condition variable.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8301" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatecond.html" +><TT +CLASS="FUNCTION" +>SDL_CreateCond</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatecond.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcondsignal.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateCond</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CondSignal</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldestroymutex.html b/distrib/sdl-1.2.15/docs/html/sdldestroymutex.html new file mode 100644 index 0000000..949bfc5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldestroymutex.html @@ -0,0 +1,209 @@ +<HTML +><HEAD +><TITLE +>SDL_DestroyMutex</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateMutex" +HREF="sdlcreatemutex.html"><LINK +REL="NEXT" +TITLE="SDL_mutexP" +HREF="sdlmutexp.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatemutex.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmutexp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDESTROYMUTEX" +></A +>SDL_DestroyMutex</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7849" +></A +><H2 +>Name</H2 +>SDL_DestroyMutex -- Destroy a mutex</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7852" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7853" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_DestroyMutex</B +></CODE +>(SDL_mutex *mutex);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7859" +></A +><H2 +>Description</H2 +><P +>Destroy a previously <A +HREF="sdlcreatemutex.html" +>created</A +> mutex.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7863" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatemutex.html" +><TT +CLASS="FUNCTION" +>SDL_CreateMutex</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatemutex.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmutexp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateMutex</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_mutexP</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldestroysemaphore.html b/distrib/sdl-1.2.15/docs/html/sdldestroysemaphore.html new file mode 100644 index 0000000..d32bdfa --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldestroysemaphore.html @@ -0,0 +1,278 @@ +<HTML +><HEAD +><TITLE +>SDL_DestroySemaphore</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateSemaphore" +HREF="sdlcreatesemaphore.html"><LINK +REL="NEXT" +TITLE="SDL_SemWait" +HREF="sdlsemwait.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatesemaphore.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsemwait.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDESTROYSEMAPHORE" +></A +>SDL_DestroySemaphore</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7982" +></A +><H2 +>Name</H2 +>SDL_DestroySemaphore -- Destroys a semaphore that was created by <A +HREF="sdlcreatesemaphore.html" +>SDL_CreateSemaphore</A +>.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7986" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7987" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_DestroySemaphore</B +></CODE +>(SDL_sem *sem);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7993" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +> destroys the semaphore pointed to +by <TT +CLASS="PARAMETER" +><I +>sem</I +></TT +> that was created by +<A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>. +It is not safe to destroy a semaphore if there are threads currently blocked +waiting on it.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8000" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>if (my_sem != NULL) { + SDL_DestroySemaphore(my_sem); + my_sem = NULL; +}</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8004" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>, +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>, +<A +HREF="sdlsemtrywait.html" +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +></A +>, +<A +HREF="sdlsemwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout</TT +></A +>, +<A +HREF="sdlsempost.html" +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +></A +>, +<A +HREF="sdlsemvalue.html" +><TT +CLASS="FUNCTION" +>SDL_SemValue</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatesemaphore.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsemwait.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateSemaphore</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SemWait</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldisplayformat.html b/distrib/sdl-1.2.15/docs/html/sdldisplayformat.html new file mode 100644 index 0000000..c91adfe --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldisplayformat.html @@ -0,0 +1,262 @@ +<HTML +><HEAD +><TITLE +>SDL_DisplayFormat</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_FillRect" +HREF="sdlfillrect.html"><LINK +REL="NEXT" +TITLE="SDL_DisplayFormatAlpha" +HREF="sdldisplayformatalpha.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlfillrect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldisplayformatalpha.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDISPLAYFORMAT" +></A +>SDL_DisplayFormat</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2394" +></A +><H2 +>Name</H2 +>SDL_DisplayFormat -- Convert a surface to the display format</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2397" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2398" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_DisplayFormat</B +></CODE +>(SDL_Surface *surface);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2404" +></A +><H2 +>Description</H2 +><P +>This function takes a surface and copies it to a new surface of the +pixel format and colors of the video framebuffer, suitable for fast +blitting onto the display surface. It calls +<A +HREF="sdlconvertsurface.html" +>SDL_ConvertSurface</A +></P +><P +>If you want to take advantage of hardware colorkey or alpha blit +acceleration, you should set the colorkey and alpha value before +calling this function.</P +><P +>If you want an alpha channel, see <A +HREF="sdldisplayformatalpha.html" +>SDL_DisplayFormatAlpha</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2411" +></A +><H2 +>Return Value</H2 +><P +>If the conversion fails or runs out of memory, it returns +<SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2415" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlconvertsurface.html" +><TT +CLASS="FUNCTION" +>SDL_ConvertSurface</TT +></A +>, +<A +HREF="sdldisplayformatalpha.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayFormatAlpha</TT +></A +> +<A +HREF="sdlsetalpha.html" +><TT +CLASS="FUNCTION" +>SDL_SetAlpha</TT +></A +>, +<A +HREF="sdlsetcolorkey.html" +><TT +CLASS="FUNCTION" +>SDL_SetColorKey</TT +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlfillrect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldisplayformatalpha.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_FillRect</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_DisplayFormatAlpha</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldisplayformatalpha.html b/distrib/sdl-1.2.15/docs/html/sdldisplayformatalpha.html new file mode 100644 index 0000000..6e88604 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldisplayformatalpha.html @@ -0,0 +1,250 @@ +<HTML +><HEAD +><TITLE +>SDL_DisplayFormatAlpha</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_DisplayFormat" +HREF="sdldisplayformat.html"><LINK +REL="NEXT" +TITLE="SDL_WarpMouse" +HREF="sdlwarpmouse.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldisplayformat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwarpmouse.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDISPLAYFORMATALPHA" +></A +>SDL_DisplayFormatAlpha</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2432" +></A +><H2 +>Name</H2 +>SDL_DisplayFormatAlpha -- Convert a surface to the display format</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2435" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2436" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_DisplayFormatAlpha</B +></CODE +>(SDL_Surface *surface);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2442" +></A +><H2 +>Description</H2 +><P +>This function takes a surface and copies it to a new surface of the +pixel format and colors of the video framebuffer plus an alpha channel, +suitable for fast blitting onto the display surface. It calls +<A +HREF="sdlconvertsurface.html" +>SDL_ConvertSurface</A +></P +><P +>If you want to take advantage of hardware colorkey or alpha blit +acceleration, you should set the colorkey and alpha value before +calling this function.</P +><P +>This function can be used to convert a colourkey to an alpha channel, +if the <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> flag is set on the surface. +The generated surface will then be transparent (alpha=0) where the +pixels match the colourkey, and opaque (alpha=255) elsewhere.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2449" +></A +><H2 +>Return Value</H2 +><P +>If the conversion fails or runs out of memory, it returns +<SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2453" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlconvertsurface.html" +>SDL_ConvertSurface</A +>, +<A +HREF="sdlsetalpha.html" +>SDL_SetAlpha</A +>, +<A +HREF="sdlsetcolorkey.html" +>SDL_SetColorKey</A +>, +<A +HREF="sdldisplayformat.html" +>SDL_DisplayFormat</A +>, +<A +HREF="sdlsurface.html" +>SDL_Surface</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldisplayformat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwarpmouse.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_DisplayFormat</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WarpMouse</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdldisplayyuvoverlay.html b/distrib/sdl-1.2.15/docs/html/sdldisplayyuvoverlay.html new file mode 100644 index 0000000..456c998 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdldisplayyuvoverlay.html @@ -0,0 +1,246 @@ +<HTML +><HEAD +><TITLE +>SDL_DisplayYUVOverlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_UnlockYUVOverlay" +HREF="sdlunlockyuvoverlay.html"><LINK +REL="NEXT" +TITLE="SDL_FreeYUVOverlay" +HREF="sdlfreeyuvoverlay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlunlockyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlfreeyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLDISPLAYYUVOVERLAY" +></A +>SDL_DisplayYUVOverlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2908" +></A +><H2 +>Name</H2 +>SDL_DisplayYUVOverlay -- Blit the overlay to the display</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2911" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2912" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_DisplayYUVOverlay</B +></CODE +>(SDL_Overlay *overlay, SDL_Rect *dstrect);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2918" +></A +><H2 +>Description</H2 +><P +>Blit the <TT +CLASS="PARAMETER" +><I +>overlay</I +></TT +> to the surface specified when it was <A +HREF="sdlcreateyuvoverlay.html" +>created</A +>. The <A +HREF="sdlrect.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +></A +> structure, <TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +>, specifies the position and size of the destination. If the <TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +> is a larger or smaller than the overlay then the overlay will be scaled, this is optimized for 2x scaling.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2927" +></A +><H2 +>Return Values</H2 +><P +>Returns 0 on success</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2930" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +>, +<A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlunlockyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlfreeyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_UnlockYUVOverlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_FreeYUVOverlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlenablekeyrepeat.html b/distrib/sdl-1.2.15/docs/html/sdlenablekeyrepeat.html new file mode 100644 index 0000000..878feb1 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlenablekeyrepeat.html @@ -0,0 +1,238 @@ +<HTML +><HEAD +><TITLE +>SDL_EnableKeyRepeat</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_EnableUNICODE" +HREF="sdlenableunicode.html"><LINK +REL="NEXT" +TITLE="SDL_GetMouseState" +HREF="sdlgetmousestate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlenableunicode.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetmousestate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLENABLEKEYREPEAT" +></A +>SDL_EnableKeyRepeat</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5839" +></A +><H2 +>Name</H2 +>SDL_EnableKeyRepeat -- Set keyboard repeat rate.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5842" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5843" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_EnableKeyRepeat</B +></CODE +>(int delay, int interval);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5849" +></A +><H2 +>Description</H2 +><P +>Enables or disables the keyboard repeat rate. <TT +CLASS="PARAMETER" +><I +>delay</I +></TT +> specifies how long the key must be pressed before it begins repeating, it then repeats at the speed specified by <TT +CLASS="PARAMETER" +><I +>interval</I +></TT +>. Both <TT +CLASS="PARAMETER" +><I +>delay</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>interval</I +></TT +> are expressed in milliseconds.</P +><P +>Setting <TT +CLASS="PARAMETER" +><I +>delay</I +></TT +> to 0 disables key repeating completely. Good default values are <TT +CLASS="LITERAL" +>SDL_DEFAULT_REPEAT_DELAY</TT +> and <SPAN +CLASS="SYMBOL" +>SDL_DEFAULT_REPEAT_INTERVAL</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5860" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success and <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on failure.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlenableunicode.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetmousestate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_EnableUNICODE</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetMouseState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlenableunicode.html b/distrib/sdl-1.2.15/docs/html/sdlenableunicode.html new file mode 100644 index 0000000..855debb --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlenableunicode.html @@ -0,0 +1,252 @@ +<HTML +><HEAD +><TITLE +>SDL_EnableUNICODE</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetKeyName" +HREF="sdlgetkeyname.html"><LINK +REL="NEXT" +TITLE="SDL_EnableKeyRepeat" +HREF="sdlenablekeyrepeat.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetkeyname.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlenablekeyrepeat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLENABLEUNICODE" +></A +>SDL_EnableUNICODE</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5805" +></A +><H2 +>Name</H2 +>SDL_EnableUNICODE -- Enable UNICODE translation</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5808" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5809" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_EnableUNICODE</B +></CODE +>(int enable);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5815" +></A +><H2 +>Description</H2 +><P +>Enables/Disables Unicode keyboard translation.</P +><P +>To obtain the character codes corresponding to received keyboard events, +Unicode translation must first be turned on using this function. The +translation incurs a slight overhead for each keyboard event and is therefore +disabled by default. For each subsequently received key down event, the +<TT +CLASS="STRUCTFIELD" +><I +>unicode</I +></TT +> member of the +<A +HREF="sdlkeysym.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_keysym</SPAN +></A +> structure +will then contain the corresponding character code, or zero for keysyms that do +not correspond to any character code.</P +><P +>A value of 1 for <TT +CLASS="PARAMETER" +><I +>enable</I +></TT +> enables Unicode translation; +0 disables it, and -1 leaves it unchanged (useful for querying the current +translation mode).</P +><P +>Note that only key press events will be translated, not release events.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5825" +></A +><H2 +>Return Value</H2 +><P +>Returns the previous translation mode (<SPAN +CLASS="RETURNVALUE" +>0</SPAN +> or <SPAN +CLASS="RETURNVALUE" +>1</SPAN +>).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5830" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlkeysym.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_keysym</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetkeyname.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlenablekeyrepeat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetKeyName</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_EnableKeyRepeat</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlenvvars.html b/distrib/sdl-1.2.15/docs/html/sdlenvvars.html new file mode 100644 index 0000000..8999ed1 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlenvvars.html @@ -0,0 +1,1227 @@ +<HTML +><HEAD +><TITLE +>SDL_envvars</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetError" +HREF="sdlgeterror.html"><LINK +REL="NEXT" +TITLE="Video" +HREF="video.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgeterror.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="video.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLENVVARS" +></A +>SDL_envvars</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN675" +></A +><H2 +>Name</H2 +>SDL_envvars -- SDL environment variables</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN678" +></A +><H2 +>Description</H2 +><P +>Not a function, set using setenv()</P +><P +>Several environment variables are available to modify the +behaviour of SDL. Using these variables isn't recommened and the names +and presence of these variables aren't guaranteed from one release to +the next. However, they can be very useful for debugging +purposes.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN682" +></A +><H2 +>Video</H2 +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>SDL_FBACCEL</TT +></DT +><DD +><P +>If set to 0, disable hardware acceleration in the linux fbcon driver.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_FBDEV</TT +></DT +><DD +><P +>Frame buffer device to use in the linux fbcon driver, instead of /dev/fb0</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_FULLSCREEN_UPDATE</TT +></DT +><DD +><P +>In the ps2gs driver, sets the <TT +CLASS="LITERAL" +>SDL_ASYNCBLIT</TT +> flag on the +display surface.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEODRIVER</TT +></DT +><DD +><P +>Selectes the video driver for SDL to use. Possible values, in the +order they are tried if this variable is not set:</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN706" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>x11</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +></P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>dga</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(the XFree86 DGA2)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>nanox</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Linux)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>fbcon</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Linux)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>directfb</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Linux)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>ps2gs</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Playstation 2)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>ggi</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +></P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>vgl</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(BSD)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>svgalib</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Linux)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>aalib</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +></P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>directx</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Win32)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>windib</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Win32)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>bwindow</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(BeOS)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>toolbox</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(MacOS Classic)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>DSp</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(MacOS Classic)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>Quartz</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Mac OS X)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>CGX</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Amiga)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>photon</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(QNX)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>dummy</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +></P +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_CENTERED</TT +></DT +><DD +><P +>If set, tries to center the SDL window when running in X11 windowed +mode, or using the CyberGrafix driver.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_GL_DRIVER</TT +></DT +><DD +><P +>The openGL driver (shared library) to use for X11. Default is libGL.so.1</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_X11_DGAMOUSE</TT +></DT +><DD +><P +>With XFree86, enables use of DGA mouse if set.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_X11_MOUSEACCEL</TT +></DT +><DD +><P +>For X11, sets the mouse acceleration. The value should be a string +on the form:</P +><P +>"<TT +CLASS="PARAMETER" +><I +>n</I +></TT +>/<TT +CLASS="PARAMETER" +><I +>d</I +></TT +>/<TT +CLASS="PARAMETER" +><I +>t</I +></TT +>"</P +><P +>where <TT +CLASS="PARAMETER" +><I +>n</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>d</I +></TT +> are the +acceleration numerator/denumerators (so mouse movement is accelerated by +<TT +CLASS="PARAMETER" +><I +>n</I +></TT +>/<TT +CLASS="PARAMETER" +><I +>d</I +></TT +>), and +<TT +CLASS="PARAMETER" +><I +>t</I +></TT +> is the threshold above which acceleration applies +(counted as number of pixels the mouse moves at once).</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_X11_NODIRECTCOLOR</TT +></DT +><DD +><P +>If set, don't attempt to use DirectColor visuals even if they are +present. (SDL will use them otherwise for gamma correction). +This is needed with older X servers when using the XVideo extension.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_X11_VISUALID</TT +></DT +><DD +><P +>ID of an X11 visual to use, overriding SDL's default visual selection +algorithm. It can be in decimal or in hex (prefixed by 0x).</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_YUV_DIRECT</TT +></DT +><DD +><P +>If set, display YUV overlay directly on the video surface if possible, +instead of on the surface passed to +<A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +></A +>.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_VIDEO_YUV_HWACCEL</TT +></DT +><DD +><P +>If not set or set to a nonzero value, SDL will attempt to use +hardware YUV acceleration for video playback.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_WINDOWID</TT +></DT +><DD +><P +>For X11 or Win32, contains the ID number of the window to be used by +SDL instead of creating its own window. Either in decimal or +in hex (prefixed by 0x).</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN866" +></A +><H2 +>Events/Input</H2 +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>SDL_MOUSE_RELATIVE</TT +></DT +><DD +><P +>If set to 0, do not use mouse relative mode in X11. The default is +to use it if the mouse is hidden and input is grabbed.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_MOUSEDEV</TT +></DT +><DD +><P +>The mouse device to use for the linux fbcon driver. If not set, +SDL first tries to use GPM in repeater mode, then various other +devices (/dev/pcaux, /dev/adbmouse, /dev/mouse etc).</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_MOUSEDEV_IMPS2</TT +></DT +><DD +><P +>If set, SDL will not try to auto-detect the IMPS/2 protocol of +a PS/2 mouse but use it right away. For the fbcon and ps2gs drivers.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_MOUSEDRV</TT +></DT +><DD +><P +>For the linux fbcon driver: if set to ELO, use the ELO touchscreen +controller as a pointer device</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_NO_RAWKBD</TT +></DT +><DD +><P +>For the libvga driver: If set, do not attempt to put the keyboard in raw mode.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_NOMOUSE</TT +></DT +><DD +><P +>If set, the linux fbcon driver will not use a mouse at all.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_NO_LOCK_KEYS</TT +></DT +><DD +><P +>Disable CAPS-LOCK and NUM-LOCK suppression of down+up key events, +suitable for games where the player needs these keys to do more than just toggle. +A value of 1 will effect both CAPS-LOCK and NUM-LOCK. +A value of 2 will effect only CAPS-LOCK. +A value of 3 will effect only NUM-LOCK. +All other values have no effect. +</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN899" +></A +><H2 +>Audio</H2 +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>AUDIODEV</TT +></DT +><DD +><P +>The audio device to use, if <TT +CLASS="LITERAL" +>SDL_PATH_DSP</TT +> isn't set.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_AUDIODRIVER</TT +></DT +><DD +><P +>Selects the audio driver for SDL to use. Possible values, in the +order they are tried if this variable is not set:</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN913" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>openbsd</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(OpenBSD)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>dsp</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(OSS /dev/dsp: Linux, Solaris, BSD etc)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>alsa</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Linux)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>pulse</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(PulseAudio daemon)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>audio</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Unix style /dev/audio: SunOS, Solaris etc)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>AL</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Irix)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>artsc</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(ARTS audio daemon)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>esd</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(esound audio daemon)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>nas</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(NAS audio daemon)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>dma</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(OSS /dev/dsp, using DMA)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>dsound</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Win32 DirectX)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>waveout</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Win32 WaveOut)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>baudio</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(BeOS)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>sndmgr</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(MacOS SoundManager)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>paud</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(AIX)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>AHI</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(Amiga)</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>disk</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>(all; output to file)</P +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_DISKAUDIOFILE</TT +></DT +><DD +><P +>The name of the output file for the "disk" audio driver. If not +set, the name <TT +CLASS="LITERAL" +>sdlaudio.raw</TT +> is used.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_DISKAUDIODELAY</TT +></DT +><DD +><P +>For the "disk" audio driver, how long to wait (in ms) before writing +a full sound buffer. The default is 150 ms.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_DSP_NOSELECT</TT +></DT +><DD +><P +>For some audio drivers (alsa, paud, dma and dsp), don't use select() +but a timed method instead. May cure some audio problems, or cause +others.</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_PATH_DSP</TT +></DT +><DD +><P +>The audio device to use. If not set, SDL tries AUDIODEV and then +a platform-dependent default value (/dev/audio on Solaris, +/dev/dsp on Linux etc).</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1017" +></A +><H2 +>CD-ROM</H2 +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>SDL_CDROM</TT +></DT +><DD +><P +>A colon-separated list of CD-ROM devices to use, in addition to +the standard devices (typically /dev/cdrom, platform-dependent).</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1025" +></A +><H2 +>Debugging</H2 +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>SDL_DEBUG</TT +></DT +><DD +><P +>If set, causes every call to <TT +CLASS="FUNCTION" +>SDL_SetError</TT +> (that +is, every time SDL signals an error) to also print an error message on +stderr.</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1034" +></A +><H2 +>Joystick</H2 +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><TT +CLASS="LITERAL" +>SDL_JOYSTICK_DEVICE</TT +></DT +><DD +><P +>Joystick device to use in the linux joystick driver, in addition +to the usual: /dev/js*, /dev/input/event*, /dev/input/js*</P +></DD +><DT +><TT +CLASS="LITERAL" +>SDL_LINUX_JOYSTICK</TT +></DT +><DD +><P +>Special joystick configuration string for linux. The format is</P +><P +>"<TT +CLASS="PARAMETER" +><I +>name</I +></TT +> <TT +CLASS="PARAMETER" +><I +>numaxes</I +></TT +> <TT +CLASS="PARAMETER" +><I +>numhats</I +></TT +> <TT +CLASS="PARAMETER" +><I +>numballs</I +></TT +>"</P +><P +>where <TT +CLASS="PARAMETER" +><I +>name</I +></TT +> is the name string of the joystick +(possibly in single quotes), and the rest are the number of axes, hats +and balls respectively.</P +></DD +></DL +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgeterror.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetError</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Video</TD +></TR +></TABLE +></DIV +></BODY +></HTML +> diff --git a/distrib/sdl-1.2.15/docs/html/sdlevent.html b/distrib/sdl-1.2.15/docs/html/sdlevent.html new file mode 100644 index 0000000..dfd21b7 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlevent.html @@ -0,0 +1,994 @@ +<HTML +><HEAD +><TITLE +>SDL_Event</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="NEXT" +TITLE="SDL_ActiveEvent" +HREF="sdlactiveevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="eventstructures.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlactiveevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLEVENT" +></A +>SDL_Event</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3711" +></A +><H2 +>Name</H2 +>SDL_Event -- General event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3714" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef union{ + Uint8 type; + SDL_ActiveEvent active; + SDL_KeyboardEvent key; + SDL_MouseMotionEvent motion; + SDL_MouseButtonEvent button; + SDL_JoyAxisEvent jaxis; + SDL_JoyBallEvent jball; + SDL_JoyHatEvent jhat; + SDL_JoyButtonEvent jbutton; + SDL_ResizeEvent resize; + SDL_ExposeEvent expose; + SDL_QuitEvent quit; + SDL_UserEvent user; + SDL_SysWMEvent syswm; +} SDL_Event;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3717" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3719" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The type of event</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>active</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlactiveevent.html" +>Activation event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>key</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlkeyboardevent.html" +>Keyboard event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>motion</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlmousemotionevent.html" +>Mouse motion event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>button</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlmousebuttonevent.html" +>Mouse button event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>jaxis</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoyaxisevent.html" +>Joystick axis motion event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>jball</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoyballevent.html" +>Joystick trackball motion event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>jhat</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoyhatevent.html" +>Joystick hat motion event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>jbutton</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoybuttonevent.html" +>Joystick button event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>resize</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlresizeevent.html" +>Application window resize event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>expose</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlexposeevent.html" +>Application window expose event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>quit</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlquitevent.html" +>Application quit request event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>user</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdluserevent.html" +>User defined event</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>syswm</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlsyswmevent.html" +>Undefined window manager event</A +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3791" +></A +><H2 +>Description</H2 +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> union is the core to all event handling is SDL, its probably the most important structure after <SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +>. <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> is a union of all event structures used in SDL, using it is a simple matter of knowing which union member relates to which event <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +>.</P +><P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3799" +></A +><P +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><THEAD +><TR +><TH +ALIGN="LEFT" +VALIGN="TOP" +>Event <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TH +><TH +ALIGN="LEFT" +VALIGN="TOP" +>Event Structure</TH +></TR +></THEAD +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="MIDDLE" +><TT +CLASS="LITERAL" +>SDL_ACTIVEEVENT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="MIDDLE" +><A +HREF="sdlactiveevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_ActiveEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_KEYDOWN/UP</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlkeyboardevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_KeyboardEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlmousemotionevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseMotionEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_MOUSEBUTTONDOWN/UP</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlmousebuttonevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseButtonEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYAXISMOTION</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoyaxisevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyAxisEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYBALLMOTION</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoyballevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyBallEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYHATMOTION</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoyhatevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyHatEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYBUTTONDOWN/UP</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdljoybuttonevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyButtonEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_QUIT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlquitevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_QuitEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SYSWMEVENT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlsyswmevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_SysWMEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_VIDEORESIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlresizeevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_ResizeEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_VIDEOEXPOSE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlexposeevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_ExposeEvent</SPAN +></A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_USEREVENT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdluserevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_UserEvent</SPAN +></A +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3885" +></A +><H2 +>Use</H2 +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> structure has two uses</P +><P +></P +><UL +COMPACT="COMPACT" +><LI +><P +>Reading events on the event queue</P +></LI +><LI +><P +>Placing events on the event queue</P +></LI +></UL +><P +>Reading events from the event queue is done with either <A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +> or <A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +>. We'll use <TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +> and step through an example.</P +><P +>First off, we create an empty <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> structure. +<PRE +CLASS="PROGRAMLISTING" +>SDL_Event test_event;</PRE +> +<TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +> removes the next event from the event queue, if there are no events on the queue it returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> otherwise it returns <SPAN +CLASS="RETURNVALUE" +>1</SPAN +>. We use a <TT +CLASS="FUNCTION" +>while</TT +> loop to process each event in turn. +<PRE +CLASS="PROGRAMLISTING" +>while(SDL_PollEvent(&test_event)) {</PRE +> +The <TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +> function take a pointer to an <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +> structure that is to be filled with event information. We know that if <TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +> removes an event from the queue then the event information will be placed in our <SPAN +CLASS="STRUCTNAME" +>test_event</SPAN +> structure, but we also know that the <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>type</I +></SPAN +> of event will be placed in the <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> member of <SPAN +CLASS="STRUCTNAME" +>test_event</SPAN +>. So to handle each event <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> seperately we use a <TT +CLASS="FUNCTION" +>switch</TT +> statement. +<PRE +CLASS="PROGRAMLISTING" +> switch(test_event.type) {</PRE +> +We need to know what kind of events we're looking for <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>and</I +></SPAN +> the event <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +>'s of those events. So lets assume we want to detect where the user is moving the mouse pointer within our application. We look through our event types and notice that <TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +> is, more than likely, the event we're looking for. A little <A +HREF="sdlmousemotionevent.html" +>more</A +> research tells use that <TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +> events are handled within the <A +HREF="sdlmousemotionevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseMotionEvent</SPAN +></A +> structure which is the <TT +CLASS="STRUCTFIELD" +><I +>motion</I +></TT +> member of <SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +>. We can check for the <TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +> event <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> within our <TT +CLASS="FUNCTION" +>switch</TT +> statement like so: +<PRE +CLASS="PROGRAMLISTING" +> case SDL_MOUSEMOTION:</PRE +> +All we need do now is read the information out of the <TT +CLASS="STRUCTFIELD" +><I +>motion</I +></TT +> member of <SPAN +CLASS="STRUCTNAME" +>test_event</SPAN +>. +<PRE +CLASS="PROGRAMLISTING" +> printf("We got a motion event.\n"); + printf("Current mouse position is: (%d, %d)\n", test_event.motion.x, test_event.motion.y); + break; + default: + printf("Unhandled Event!\n"); + break; + } +} +printf("Event queue empty.\n");</PRE +></P +><P +>It is also possible to push events onto the event queue and so use it as a two-way communication path. Both <A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +> and <A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +> allow you to place events onto the event queue. This is usually used to place a <TT +CLASS="LITERAL" +>SDL_USEREVENT</TT +> on the event queue, however you could use it to post fake input events if you wished. Creating your own events is a simple matter of choosing the event type you want, setting the <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> member and filling the appropriate member structure with information. +<PRE +CLASS="PROGRAMLISTING" +>SDL_Event user_event; + +user_event.type=SDL_USEREVENT; +user_event.user.code=2; +user_event.user.data1=NULL; +user_event.user.data2=NULL; +SDL_PushEvent(&user_event);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3942" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +>, +<A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +>, +<A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlactiveevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL Event Structures.</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ActiveEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +> diff --git a/distrib/sdl-1.2.15/docs/html/sdleventstate.html b/distrib/sdl-1.2.15/docs/html/sdleventstate.html new file mode 100644 index 0000000..b9a2448 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdleventstate.html @@ -0,0 +1,276 @@ +<HTML +><HEAD +><TITLE +>SDL_EventState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetEventFilter" +HREF="sdlgeteventfilter.html"><LINK +REL="NEXT" +TITLE="SDL_GetKeyState" +HREF="sdlgetkeystate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgeteventfilter.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetkeystate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLEVENTSTATE" +></A +>SDL_EventState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5646" +></A +><H2 +>Name</H2 +>SDL_EventState -- This function allows you to set the state of processing certain events.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5649" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5650" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 <B +CLASS="FSFUNC" +>SDL_EventState</B +></CODE +>(Uint8 type, int state);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5656" +></A +><H2 +>Description</H2 +><P +>This function allows you to set the state of processing certain event <TT +CLASS="PARAMETER" +><I +>type</I +></TT +>'s.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>state</I +></TT +> is set to <TT +CLASS="LITERAL" +>SDL_IGNORE</TT +>, +that event <TT +CLASS="PARAMETER" +><I +>type</I +></TT +> will be automatically dropped from the event queue and will +not be filtered.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>state</I +></TT +> is set to <TT +CLASS="LITERAL" +>SDL_ENABLE</TT +>, +that event <TT +CLASS="PARAMETER" +><I +>type</I +></TT +> will be processed normally.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>state</I +></TT +> is set to <TT +CLASS="LITERAL" +>SDL_QUERY</TT +>, +<TT +CLASS="FUNCTION" +>SDL_EventState</TT +> will return the current processing +state of the specified event <TT +CLASS="PARAMETER" +><I +>type</I +></TT +>.</P +><P +>A list of event <TT +CLASS="PARAMETER" +><I +>type</I +></TT +>'s can be found in the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> section.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5677" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgeteventfilter.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetkeystate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetEventFilter</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetKeyState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlexposeevent.html b/distrib/sdl-1.2.15/docs/html/sdlexposeevent.html new file mode 100644 index 0000000..82c2a3e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlexposeevent.html @@ -0,0 +1,252 @@ +<HTML +><HEAD +><TITLE +>SDL_ExposeEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ResizeEvent" +HREF="sdlresizeevent.html"><LINK +REL="NEXT" +TITLE="SDL_SysWMEvent" +HREF="sdlsyswmevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlresizeevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsyswmevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLEXPOSEEVENT" +></A +>SDL_ExposeEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4503" +></A +><H2 +>Name</H2 +>SDL_ExposeEvent -- Quit requested event</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4506" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type +} SDL_ExposeEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4509" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4511" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_VIDEOEXPOSE</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4519" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_ExposeEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used whan an event of type <TT +CLASS="LITERAL" +>SDL_VIDEOEXPOSE</TT +> is reported.</P +><P +>A VIDEOEXPOSE event is triggered when the screen has been modified +outside of the application, usually by the window manager and needs to +be redrawn.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4527" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlseteventfilter.html" +><TT +CLASS="FUNCTION" +>SDL_SetEventFilter</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlresizeevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsyswmevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ResizeEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SysWMEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +> diff --git a/distrib/sdl-1.2.15/docs/html/sdlfillrect.html b/distrib/sdl-1.2.15/docs/html/sdlfillrect.html new file mode 100644 index 0000000..4ace062 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlfillrect.html @@ -0,0 +1,291 @@ +<HTML +><HEAD +><TITLE +>SDL_FillRect</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_BlitSurface" +HREF="sdlblitsurface.html"><LINK +REL="NEXT" +TITLE="SDL_DisplayFormat" +HREF="sdldisplayformat.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlblitsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldisplayformat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLFILLRECT" +></A +>SDL_FillRect</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2351" +></A +><H2 +>Name</H2 +>SDL_FillRect -- This function performs a fast fill of the given rectangle with some color</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2354" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2355" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_FillRect</B +></CODE +>(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2361" +></A +><H2 +>Description</H2 +><P +>This function performs a fast fill of the given rectangle with +<TT +CLASS="PARAMETER" +><I +>color</I +></TT +>. If <TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +> +is <TT +CLASS="LITERAL" +>NULL</TT +>, the whole surface will be filled with +<TT +CLASS="PARAMETER" +><I +>color</I +></TT +>.</P +><P +>The color should be a pixel of the format used by the surface, and +can be generated by the +<A +HREF="sdlmaprgb.html" +>SDL_MapRGB</A +> or <A +HREF="sdlmaprgba.html" +>SDL_MapRGBA</A +> +functions. If the color value contains an alpha value then the +destination is simply "filled" with that alpha information, no blending +takes place.</P +><P +>If there is a clip rectangle set on the destination (set via +<A +HREF="sdlsetcliprect.html" +>SDL_SetClipRect</A +>) then this +function will clip based on the intersection of the clip rectangle and +the <TT +CLASS="PARAMETER" +><I +>dstrect</I +></TT +> rectangle and the dstrect rectangle +will be modified to represent the area actually filled.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2374" +></A +><H2 +>Return Value</H2 +><P +>This function returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2379" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGB</TT +></A +>, +<A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGBA</TT +></A +>, +<A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +>, +<A +HREF="sdlrect.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlblitsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldisplayformat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_BlitSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_DisplayFormat</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlflip.html b/distrib/sdl-1.2.15/docs/html/sdlflip.html new file mode 100644 index 0000000..b480f99 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlflip.html @@ -0,0 +1,259 @@ +<HTML +><HEAD +><TITLE +>SDL_Flip</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_UpdateRects" +HREF="sdlupdaterects.html"><LINK +REL="NEXT" +TITLE="SDL_SetColors" +HREF="sdlsetcolors.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlupdaterects.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetcolors.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLFLIP" +></A +>SDL_Flip</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1426" +></A +><H2 +>Name</H2 +>SDL_Flip -- Swaps screen buffers</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1429" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1430" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_Flip</B +></CODE +>(SDL_Surface *screen);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1436" +></A +><H2 +>Description</H2 +><P +>On hardware that supports double-buffering, this function sets up a flip +and returns. The hardware will wait for vertical retrace, and then swap +video buffers before the next video surface blit or lock will return. +On hardware that doesn't support double-buffering, this is equivalent +to calling <A +HREF="sdlupdaterect.html" +>SDL_UpdateRect</A +><TT +CLASS="PARAMETER" +><I +>(screen, 0, 0, 0, 0)</I +></TT +></P +><P +>The <TT +CLASS="LITERAL" +>SDL_DOUBLEBUF</TT +> flag must have been passed to +<A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +>, + when +setting the video mode for this function to perform hardware flipping.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1444" +></A +><H2 +>Return Value</H2 +><P +>This function returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if successful, or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1449" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdlupdaterect.html" +><TT +CLASS="FUNCTION" +>SDL_UpdateRect</TT +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlupdaterects.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetcolors.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_UpdateRects</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetColors</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlfreecursor.html b/distrib/sdl-1.2.15/docs/html/sdlfreecursor.html new file mode 100644 index 0000000..01a4f7c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlfreecursor.html @@ -0,0 +1,209 @@ +<HTML +><HEAD +><TITLE +>SDL_FreeCursor</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateCursor" +HREF="sdlcreatecursor.html"><LINK +REL="NEXT" +TITLE="SDL_SetCursor" +HREF="sdlsetcursor.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatecursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetcursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLFREECURSOR" +></A +>SDL_FreeCursor</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2540" +></A +><H2 +>Name</H2 +>SDL_FreeCursor -- Frees a cursor created with SDL_CreateCursor.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2543" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2544" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_FreeCursor</B +></CODE +>(SDL_Cursor *cursor);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2550" +></A +><H2 +>Description</H2 +><P +>Frees a <SPAN +CLASS="STRUCTNAME" +>SDL_Cursor</SPAN +> that was created using +<A +HREF="sdlcreatecursor.html" +>SDL_CreateCursor</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2555" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatecursor.html" +>SDL_CreateCursor</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatecursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetcursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateCursor</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetCursor</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlfreesurface.html b/distrib/sdl-1.2.15/docs/html/sdlfreesurface.html new file mode 100644 index 0000000..84b6048 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlfreesurface.html @@ -0,0 +1,219 @@ +<HTML +><HEAD +><TITLE +>SDL_FreeSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateRGBSurfaceFrom" +HREF="sdlcreatergbsurfacefrom.html"><LINK +REL="NEXT" +TITLE="SDL_LockSurface" +HREF="sdllocksurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatergbsurfacefrom.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdllocksurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLFREESURFACE" +></A +>SDL_FreeSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1893" +></A +><H2 +>Name</H2 +>SDL_FreeSurface -- Frees (deletes) a SDL_Surface</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1896" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1897" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_FreeSurface</B +></CODE +>(SDL_Surface *surface);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1903" +></A +><H2 +>Description</H2 +><P +>Frees the resources used by a previously created <SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +>. If the surface was created using +<A +HREF="sdlcreatergbsurfacefrom.html" +>SDL_CreateRGBSurfaceFrom</A +> then the pixel data is not freed.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1908" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatergbsurface.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurface</TT +></A +> +<A +HREF="sdlcreatergbsurfacefrom.html" +><TT +CLASS="FUNCTION" +>SDL_CreateRGBSurfaceFrom</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatergbsurfacefrom.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdllocksurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateRGBSurfaceFrom</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_LockSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlfreewav.html b/distrib/sdl-1.2.15/docs/html/sdlfreewav.html new file mode 100644 index 0000000..24242c4 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlfreewav.html @@ -0,0 +1,222 @@ +<HTML +><HEAD +><TITLE +>SDL_FreeWAV</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_LoadWAV" +HREF="sdlloadwav.html"><LINK +REL="NEXT" +TITLE="SDL_AudioCVT" +HREF="sdlaudiocvt.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlloadwav.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlaudiocvt.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLFREEWAV" +></A +>SDL_FreeWAV</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6857" +></A +><H2 +>Name</H2 +>SDL_FreeWAV -- Frees previously opened WAV data</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6860" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6861" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_FreeWAV</B +></CODE +>(Uint8 *audio_buf);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6867" +></A +><H2 +>Description</H2 +><P +>After a WAVE file has been opened with <A +HREF="sdlloadwav.html" +><TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +></A +> its data can eventually be freed with <TT +CLASS="FUNCTION" +>SDL_FreeWAV</TT +>. <TT +CLASS="PARAMETER" +><I +>audio_buf</I +></TT +> is a pointer to the buffer created by <TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6875" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlloadwav.html" +><TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlloadwav.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlaudiocvt.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_LoadWAV</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_AudioCVT</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlfreeyuvoverlay.html b/distrib/sdl-1.2.15/docs/html/sdlfreeyuvoverlay.html new file mode 100644 index 0000000..e82340d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlfreeyuvoverlay.html @@ -0,0 +1,233 @@ +<HTML +><HEAD +><TITLE +>SDL_FreeYUVOverlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_DisplayYUVOverlay" +HREF="sdldisplayyuvoverlay.html"><LINK +REL="NEXT" +TITLE="SDL_GLattr" +HREF="sdlglattr.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldisplayyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlglattr.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLFREEYUVOVERLAY" +></A +>SDL_FreeYUVOverlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2941" +></A +><H2 +>Name</H2 +>SDL_FreeYUVOverlay -- Free a YUV video overlay</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2944" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2945" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_FreeYUVOverlay</B +></CODE +>(SDL_Overlay *overlay);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2951" +></A +><H2 +>Description</H2 +><P +>Frees and <A +HREF="sdloverlay.html" +><TT +CLASS="PARAMETER" +><I +>overlay</I +></TT +></A +> created by <A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2958" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +>, +<A +HREF="sdldisplayyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayYUVOverlay</TT +></A +>, +<A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_FreeYUVOverlay</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldisplayyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlglattr.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_DisplayYUVOverlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GLattr</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetappstate.html b/distrib/sdl-1.2.15/docs/html/sdlgetappstate.html new file mode 100644 index 0000000..d09e2e0 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetappstate.html @@ -0,0 +1,263 @@ +<HTML +><HEAD +><TITLE +>SDL_GetAppState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetRelativeMouseState" +HREF="sdlgetrelativemousestate.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickEventState" +HREF="sdljoystickeventstate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetrelativemousestate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickeventstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETAPPSTATE" +></A +>SDL_GetAppState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5931" +></A +><H2 +>Name</H2 +><TT +CLASS="FUNCTION" +>SDL_GetAppState</TT +> -- Get the state of the application</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5935" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5936" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 <B +CLASS="FSFUNC" +>SDL_GetAppState</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5942" +></A +><H2 +>Description</H2 +><P +>This function returns the current state of the application. The value returned is a bitwise combination of:</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN5945" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_APPMOUSEFOCUS</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The application has mouse focus.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_APPINPUTFOCUS</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The application has keyboard focus</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_APPACTIVE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The application is visible</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5960" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlactiveevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_ActiveEvent</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetrelativemousestate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickeventstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetRelativeMouseState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickEventState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetaudiostatus.html b/distrib/sdl-1.2.15/docs/html/sdlgetaudiostatus.html new file mode 100644 index 0000000..3fc3a09 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetaudiostatus.html @@ -0,0 +1,221 @@ +<HTML +><HEAD +><TITLE +>SDL_GetAudioStatus</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_PauseAudio" +HREF="sdlpauseaudio.html"><LINK +REL="NEXT" +TITLE="SDL_LoadWAV" +HREF="sdlloadwav.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpauseaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlloadwav.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETAUDIOSTATUS" +></A +>SDL_GetAudioStatus</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6790" +></A +><H2 +>Name</H2 +>SDL_GetAudioStatus -- Get the current audio state</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6793" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6794" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_audiostatus<B +CLASS="FSFUNC" +>SDL_GetAudioStatus</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6800" +></A +><H2 +>Description</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef enum{ + SDL_AUDIO_STOPPED, + SDL_AUDIO_PAUSED, + SDL_AUDIO_PLAYING +} SDL_audiostatus;</PRE +><P +>Returns either <TT +CLASS="LITERAL" +>SDL_AUDIO_STOPPED</TT +>, <TT +CLASS="LITERAL" +>SDL_AUDIO_PAUSED</TT +> or <TT +CLASS="LITERAL" +>SDL_AUDIO_PLAYING</TT +> depending on the current audio state.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6807" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpauseaudio.html" +><TT +CLASS="FUNCTION" +>SDL_PauseAudio</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpauseaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlloadwav.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_PauseAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_LoadWAV</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetcliprect.html b/distrib/sdl-1.2.15/docs/html/sdlgetcliprect.html new file mode 100644 index 0000000..f00ac77 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetcliprect.html @@ -0,0 +1,229 @@ +<HTML +><HEAD +><TITLE +>SDL_GetClipRect</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetClipRect" +HREF="sdlsetcliprect.html"><LINK +REL="NEXT" +TITLE="SDL_ConvertSurface" +HREF="sdlconvertsurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetcliprect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlconvertsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETCLIPRECT" +></A +>SDL_GetClipRect</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2230" +></A +><H2 +>Name</H2 +>SDL_GetClipRect -- Gets the clipping rectangle for a surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2233" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2234" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_GetClipRect</B +></CODE +>(SDL_Surface *surface, SDL_Rect *rect);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2240" +></A +><H2 +>Description</H2 +><P +>Gets the clipping rectangle for a surface. When this surface is the +destination of a blit, only the area within the clip rectangle is +drawn into.</P +><P +>The rectangle pointed to by <TT +CLASS="PARAMETER" +><I +>rect</I +></TT +> will be +filled with the clipping rectangle of the surface.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2245" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetcliprect.html" +><TT +CLASS="FUNCTION" +>SDL_SetClipRect</TT +></A +>, +<A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetcliprect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlconvertsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetClipRect</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ConvertSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetcursor.html b/distrib/sdl-1.2.15/docs/html/sdlgetcursor.html new file mode 100644 index 0000000..72ecbc7 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetcursor.html @@ -0,0 +1,219 @@ +<HTML +><HEAD +><TITLE +>SDL_GetCursor</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetCursor" +HREF="sdlsetcursor.html"><LINK +REL="NEXT" +TITLE="SDL_ShowCursor" +HREF="sdlshowcursor.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetcursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlshowcursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETCURSOR" +></A +>SDL_GetCursor</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2589" +></A +><H2 +>Name</H2 +>SDL_GetCursor -- Get the currently active mouse cursor.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2592" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2593" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Cursor *<B +CLASS="FSFUNC" +>SDL_GetCursor</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2599" +></A +><H2 +>Description</H2 +><P +>Returns the currently active mouse cursor.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2602" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetcursor.html" +><TT +CLASS="FUNCTION" +>SDL_SetCursor</TT +></A +>, +<A +HREF="sdlcreatecursor.html" +><TT +CLASS="FUNCTION" +>SDL_CreateCursor</TT +></A +>, +<A +HREF="sdlshowcursor.html" +><TT +CLASS="FUNCTION" +>SDL_ShowCursor</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetcursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlshowcursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetCursor</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ShowCursor</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgeterror.html b/distrib/sdl-1.2.15/docs/html/sdlgeterror.html new file mode 100644 index 0000000..cdf5792 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgeterror.html @@ -0,0 +1,205 @@ +<HTML +><HEAD +><TITLE +>SDL_GetError</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WasInit" +HREF="sdlwasinit.html"><LINK +REL="NEXT" +TITLE="SDL_envvars" +HREF="sdlenvvars.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwasinit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlenvvars.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETERROR" +></A +>SDL_GetError</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN653" +></A +><H2 +>Name</H2 +>SDL_GetError -- Get SDL error string</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN656" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN657" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL/SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>char *<B +CLASS="FSFUNC" +>SDL_GetError</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN663" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_GetError</TT +> returns a NULL terminated string containing information about the last internal SDL error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN667" +></A +><H2 +>Return Value</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_GetError</TT +> returns a string containing the last error.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwasinit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlenvvars.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WasInit</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_envvars</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgeteventfilter.html b/distrib/sdl-1.2.15/docs/html/sdlgeteventfilter.html new file mode 100644 index 0000000..d254d34 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgeteventfilter.html @@ -0,0 +1,235 @@ +<HTML +><HEAD +><TITLE +>SDL_GetEventFilter</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetEventFilter" +HREF="sdlseteventfilter.html"><LINK +REL="NEXT" +TITLE="SDL_EventState" +HREF="sdleventstate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlseteventfilter.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdleventstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETEVENTFILTER" +></A +>SDL_GetEventFilter</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5615" +></A +><H2 +>Name</H2 +>SDL_GetEventFilter -- Retrieves a pointer to he event filter</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5618" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5619" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_EventFilter <B +CLASS="FSFUNC" +>SDL_GetEventFilter</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5625" +></A +><H2 +>Description</H2 +><P +>This function retrieces a pointer to the event filter that was previously set using <A +HREF="sdlseteventfilter.html" +><TT +CLASS="FUNCTION" +>SDL_SetEventFilter</TT +></A +>. An SDL_EventFilter function is defined as: +<PRE +CLASS="PROGRAMLISTING" +>typedef int (*SDL_EventFilter)(const SDL_Event *event);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5631" +></A +><H2 +>Return Value</H2 +><P +>Returns a pointer to the event filter or <TT +CLASS="LITERAL" +>NULL</TT +> if no filter has been set.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5635" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlseteventfilter.html" +><TT +CLASS="FUNCTION" +>SDL_SetEventFilter</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlseteventfilter.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdleventstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetEventFilter</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_EventState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetgammaramp.html b/distrib/sdl-1.2.15/docs/html/sdlgetgammaramp.html new file mode 100644 index 0000000..bfcc03c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetgammaramp.html @@ -0,0 +1,219 @@ +<HTML +><HEAD +><TITLE +>SDL_GetGammaRamp</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetGamma" +HREF="sdlsetgamma.html"><LINK +REL="NEXT" +TITLE="SDL_SetGammaRamp" +HREF="sdlsetgammaramp.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetgamma.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetgammaramp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETGAMMARAMP" +></A +>SDL_GetGammaRamp</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1598" +></A +><H2 +>Name</H2 +>SDL_GetGammaRamp -- Gets the color gamma lookup tables for the display</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1601" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1602" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_GetGammaRamp</B +></CODE +>(Uint16 *redtable, Uint16 *greentable, Uint16 *bluetable);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1608" +></A +><H2 +>Description</H2 +><P +>Gets the gamma translation lookup tables currently used by the display. +Each table is an array of 256 Uint16 values.</P +><P +>Not all display hardware is able to change gamma.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1612" +></A +><H2 +>Return Value</H2 +><P +>Returns -1 on error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1615" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetgamma.html" +>SDL_SetGamma</A +> +<A +HREF="sdlsetgammaramp.html" +>SDL_SetGammaRamp</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetgamma.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetgammaramp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetGamma</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetGammaRamp</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetkeyname.html b/distrib/sdl-1.2.15/docs/html/sdlgetkeyname.html new file mode 100644 index 0000000..6c51c94 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetkeyname.html @@ -0,0 +1,216 @@ +<HTML +><HEAD +><TITLE +>SDL_GetKeyName</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetModState" +HREF="sdlsetmodstate.html"><LINK +REL="NEXT" +TITLE="SDL_EnableUNICODE" +HREF="sdlenableunicode.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetmodstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlenableunicode.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETKEYNAME" +></A +>SDL_GetKeyName</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5780" +></A +><H2 +>Name</H2 +>SDL_GetKeyName -- Get the name of an SDL virtual keysym</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5783" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5784" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>char *<B +CLASS="FSFUNC" +>SDL_GetKeyName</B +></CODE +>(SDLKey key);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5790" +></A +><H2 +>Description</H2 +><P +>Returns the SDL-defined name of the <A +HREF="sdlkey.html" +><SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +></A +> <TT +CLASS="PARAMETER" +><I +>key</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5796" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlkey.html" +><SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetmodstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlenableunicode.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetModState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_EnableUNICODE</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetkeystate.html b/distrib/sdl-1.2.15/docs/html/sdlgetkeystate.html new file mode 100644 index 0000000..1c16f2e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetkeystate.html @@ -0,0 +1,253 @@ +<HTML +><HEAD +><TITLE +>SDL_GetKeyState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_EventState" +HREF="sdleventstate.html"><LINK +REL="NEXT" +TITLE="SDL_GetModState" +HREF="sdlgetmodstate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdleventstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetmodstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETKEYSTATE" +></A +>SDL_GetKeyState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5686" +></A +><H2 +>Name</H2 +>SDL_GetKeyState -- Get a snapshot of the current keyboard state</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5689" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5690" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 *<B +CLASS="FSFUNC" +>SDL_GetKeyState</B +></CODE +>(int *numkeys);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5696" +></A +><H2 +>Description</H2 +><P +>Gets a snapshot of the current keyboard state. The current state is return as a pointer to an array, the size of this array is stored in <TT +CLASS="PARAMETER" +><I +>numkeys</I +></TT +>. The array is indexed by the <A +HREF="sdlkey.html" +><TT +CLASS="LITERAL" +>SDLK_*</TT +></A +> symbols. A value of 1 means the key is pressed and a value of 0 means its not. The pointer returned is a pointer to an internal SDL array and should not be freed by the caller.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Use <A +HREF="sdlpumpevents.html" +><TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +></A +> to update the state array.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5706" +></A +><H2 +>Example</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>Uint8 *keystate = SDL_GetKeyState(NULL); +if ( keystate[SDLK_RETURN] ) printf("Return Key Pressed.\n");</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5710" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlkey.html" +><TT +CLASS="LITERAL" +>SDL Key Symbols</TT +></A +>, +<A +HREF="sdlpumpevents.html" +><TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdleventstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetmodstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_EventState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetModState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetmodstate.html b/distrib/sdl-1.2.15/docs/html/sdlgetmodstate.html new file mode 100644 index 0000000..64d2f35 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetmodstate.html @@ -0,0 +1,257 @@ +<HTML +><HEAD +><TITLE +>SDL_GetModState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetKeyState" +HREF="sdlgetkeystate.html"><LINK +REL="NEXT" +TITLE="SDL_SetModState" +HREF="sdlsetmodstate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetkeystate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetmodstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETMODSTATE" +></A +>SDL_GetModState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5721" +></A +><H2 +>Name</H2 +>SDL_GetModState -- Get the state of modifier keys.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5724" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5725" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDLMod <B +CLASS="FSFUNC" +>SDL_GetModState</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5731" +></A +><H2 +>Description</H2 +><P +>Returns the current state of the modifier keys (CTRL, ALT, etc.).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5734" +></A +><H2 +>Return Value</H2 +><P +>The return value can be an OR'd combination of the SDLMod enum.</P +><P +><A +NAME="AEN5738" +></A +><BLOCKQUOTE +CLASS="BLOCKQUOTE" +><P +><B +>SDLMod</B +></P +><PRE +CLASS="PROGRAMLISTING" +>typedef enum { + KMOD_NONE = 0x0000, + KMOD_LSHIFT= 0x0001, + KMOD_RSHIFT= 0x0002, + KMOD_LCTRL = 0x0040, + KMOD_RCTRL = 0x0080, + KMOD_LALT = 0x0100, + KMOD_RALT = 0x0200, + KMOD_LMETA = 0x0400, + KMOD_RMETA = 0x0800, + KMOD_NUM = 0x1000, + KMOD_CAPS = 0x2000, + KMOD_MODE = 0x4000, +} SDLMod;</PRE +></BLOCKQUOTE +> +SDL also defines the following symbols for convenience: +<A +NAME="AEN5741" +></A +><BLOCKQUOTE +CLASS="BLOCKQUOTE" +><PRE +CLASS="PROGRAMLISTING" +>#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL) +#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT) +#define KMOD_ALT (KMOD_LALT|KMOD_RALT) +#define KMOD_META (KMOD_LMETA|KMOD_RMETA)</PRE +></BLOCKQUOTE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5743" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetkeystate.html" +><TT +CLASS="FUNCTION" +>SDL_GetKeyState</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetkeystate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetmodstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetKeyState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetModState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetmousestate.html b/distrib/sdl-1.2.15/docs/html/sdlgetmousestate.html new file mode 100644 index 0000000..d96a55b --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetmousestate.html @@ -0,0 +1,253 @@ +<HTML +><HEAD +><TITLE +>SDL_GetMouseState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_EnableKeyRepeat" +HREF="sdlenablekeyrepeat.html"><LINK +REL="NEXT" +TITLE="SDL_GetRelativeMouseState" +HREF="sdlgetrelativemousestate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlenablekeyrepeat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetrelativemousestate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETMOUSESTATE" +></A +>SDL_GetMouseState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5869" +></A +><H2 +>Name</H2 +>SDL_GetMouseState -- Retrieve the current state of the mouse</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5872" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5873" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 <B +CLASS="FSFUNC" +>SDL_GetMouseState</B +></CODE +>(int *x, int *y);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5879" +></A +><H2 +>Description</H2 +><P +>The current button state is returned as a button bitmask, which can +be tested using the <TT +CLASS="LITERAL" +>SDL_BUTTON(X)</TT +> macros, and <TT +CLASS="PARAMETER" +><I +>x</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>y</I +></TT +> are set to the +current mouse cursor position. You can pass <TT +CLASS="LITERAL" +>NULL</TT +> for either <TT +CLASS="PARAMETER" +><I +>x</I +></TT +> or <TT +CLASS="PARAMETER" +><I +>y</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5888" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_PumpEvents(); +if(SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(1)) + printf("Mouse Button 1(left) is pressed.\n");</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5891" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetrelativemousestate.html" +><TT +CLASS="FUNCTION" +>SDL_GetRelativeMouseState</TT +></A +>, +<A +HREF="sdlpumpevents.html" +><TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlenablekeyrepeat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetrelativemousestate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_EnableKeyRepeat</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetRelativeMouseState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetrelativemousestate.html b/distrib/sdl-1.2.15/docs/html/sdlgetrelativemousestate.html new file mode 100644 index 0000000..52a5106 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetrelativemousestate.html @@ -0,0 +1,235 @@ +<HTML +><HEAD +><TITLE +>SDL_GetRelativeMouseState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetMouseState" +HREF="sdlgetmousestate.html"><LINK +REL="NEXT" +TITLE="SDL_GetAppState" +HREF="sdlgetappstate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetmousestate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetappstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETRELATIVEMOUSESTATE" +></A +>SDL_GetRelativeMouseState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5902" +></A +><H2 +>Name</H2 +>SDL_GetRelativeMouseState -- Retrieve the current state of the mouse</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5905" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5906" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 <B +CLASS="FSFUNC" +>SDL_GetRelativeMouseState</B +></CODE +>(int *x, int *y);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5912" +></A +><H2 +>Description</H2 +><P +>The current button state is returned as a button bitmask, which can +be tested using the <TT +CLASS="LITERAL" +>SDL_BUTTON(X)</TT +> macros, and <TT +CLASS="PARAMETER" +><I +>x</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>y</I +></TT +> are set to the change in the mouse position since the last call to <TT +CLASS="FUNCTION" +>SDL_GetRelativeMouseState</TT +> or since event initialization. You can pass <TT +CLASS="LITERAL" +>NULL</TT +> for either <TT +CLASS="PARAMETER" +><I +>x</I +></TT +> or <TT +CLASS="PARAMETER" +><I +>y</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5922" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetmousestate.html" +><TT +CLASS="FUNCTION" +>SDL_GetMouseState</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetmousestate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetappstate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetMouseState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetAppState</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetrgb.html b/distrib/sdl-1.2.15/docs/html/sdlgetrgb.html new file mode 100644 index 0000000..47774dc --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetrgb.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_GetRGB</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_MapRGBA" +HREF="sdlmaprgba.html"><LINK +REL="NEXT" +TITLE="SDL_GetRGBA" +HREF="sdlgetrgba.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmaprgba.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetrgba.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETRGB" +></A +>SDL_GetRGB</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1718" +></A +><H2 +>Name</H2 +>SDL_GetRGB -- Get RGB values from a pixel in the specified pixel format.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1721" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1722" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_GetRGB</B +></CODE +>(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1728" +></A +><H2 +>Description</H2 +><P +>Get RGB component values from a pixel stored in the specified pixel format.</P +><P +>This function uses the entire 8-bit [0..255] range when converting color +components from pixel formats with less than 8-bits per RGB component +(e.g., a completely white pixel in 16-bit RGB565 format would return +[0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1732" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetrgba.html" +><TT +CLASS="FUNCTION" +>SDL_GetRGBA</TT +></A +>, +<A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGB</TT +></A +>, +<A +HREF="sdlmaprgba.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGBA</TT +></A +>, +<A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmaprgba.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetrgba.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_MapRGBA</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetRGBA</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetrgba.html b/distrib/sdl-1.2.15/docs/html/sdlgetrgba.html new file mode 100644 index 0000000..a9e1093 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetrgba.html @@ -0,0 +1,222 @@ +<HTML +><HEAD +><TITLE +>SDL_GetRGBA</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetRGB" +HREF="sdlgetrgb.html"><LINK +REL="NEXT" +TITLE="SDL_CreateRGBSurface" +HREF="sdlcreatergbsurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetrgb.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatergbsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETRGBA" +></A +>SDL_GetRGBA</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1747" +></A +><H2 +>Name</H2 +>SDL_GetRGBA -- Get RGBA values from a pixel in the specified pixel format.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1750" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1751" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_GetRGBA</B +></CODE +>(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1757" +></A +><H2 +>Description</H2 +><P +>Get RGBA component values from a pixel stored in the specified pixel format.</P +><P +>This function uses the entire 8-bit [0..255] range when converting color +components from pixel formats with less than 8-bits per RGB component +(e.g., a completely white pixel in 16-bit RGB565 format would return +[0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).</P +><P +>If the surface has no alpha component, the alpha will be returned as 0xff +(100% opaque).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1762" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetrgb.html" +>SDL_GetRGB</A +>, +<A +HREF="sdlmaprgb.html" +>SDL_MapRGB</A +>, +<A +HREF="sdlmaprgba.html" +>SDL_MapRGBA</A +>, +<A +HREF="sdlpixelformat.html" +>SDL_PixelFormat</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetrgb.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatergbsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetRGB</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateRGBSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetthreadid.html b/distrib/sdl-1.2.15/docs/html/sdlgetthreadid.html new file mode 100644 index 0000000..4bc59cb --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetthreadid.html @@ -0,0 +1,209 @@ +<HTML +><HEAD +><TITLE +>SDL_GetThreadID</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ThreadID" +HREF="sdlthreadid.html"><LINK +REL="NEXT" +TITLE="SDL_WaitThread" +HREF="sdlwaitthread.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlthreadid.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwaitthread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETTHREADID" +></A +>SDL_GetThreadID</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7743" +></A +><H2 +>Name</H2 +>SDL_GetThreadID -- Get the SDL thread ID of a SDL_Thread</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7746" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7747" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_GetThreadID</B +></CODE +>(SDL_Thread *thread);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7753" +></A +><H2 +>Description</H2 +><P +>Returns the ID of a <SPAN +CLASS="STRUCTNAME" +>SDL_Thread</SPAN +> created by <A +HREF="sdlcreatethread.html" +>SDL_CreateThread</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7758" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatethread.html" +>SDL_CreateThread</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlthreadid.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwaitthread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ThreadID</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WaitThread</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetticks.html b/distrib/sdl-1.2.15/docs/html/sdlgetticks.html new file mode 100644 index 0000000..0911aae --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetticks.html @@ -0,0 +1,206 @@ +<HTML +><HEAD +><TITLE +>SDL_GetTicks</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Time" +HREF="time.html"><LINK +REL="PREVIOUS" +TITLE="Time" +HREF="time.html"><LINK +REL="NEXT" +TITLE="SDL_Delay" +HREF="sdldelay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="time.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldelay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETTICKS" +></A +>SDL_GetTicks</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8433" +></A +><H2 +>Name</H2 +>SDL_GetTicks -- Get the number of milliseconds since the SDL library initialization.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8436" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8437" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_GetTicks</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8443" +></A +><H2 +>Description</H2 +><P +>Get the number of milliseconds since the SDL library initialization. +Note that this value wraps if the program runs for more than ~49 days.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8446" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdldelay.html" +><TT +CLASS="FUNCTION" +>SDL_Delay</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldelay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Time</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Delay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetvideoinfo.html b/distrib/sdl-1.2.15/docs/html/sdlgetvideoinfo.html new file mode 100644 index 0000000..25c4b45 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetvideoinfo.html @@ -0,0 +1,226 @@ +<HTML +><HEAD +><TITLE +>SDL_GetVideoInfo</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetVideoSurface" +HREF="sdlgetvideosurface.html"><LINK +REL="NEXT" +TITLE="SDL_VideoDriverName" +HREF="sdlvideodrivername.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetvideosurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlvideodrivername.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETVIDEOINFO" +></A +>SDL_GetVideoInfo</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1100" +></A +><H2 +>Name</H2 +>SDL_GetVideoInfo -- returns a pointer to information about the video hardware</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1103" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1104" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_VideoInfo *<B +CLASS="FSFUNC" +>SDL_GetVideoInfo</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1110" +></A +><H2 +>Description</H2 +><P +>This function returns a read-only pointer to <A +HREF="sdlvideoinfo.html" +>information</A +> about the video +hardware. If this is called before <A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +>, the +<TT +CLASS="STRUCTFIELD" +><I +>vfmt</I +></TT +> member of the returned structure will contain the +pixel format of the "best" video mode.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1116" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdlvideoinfo.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_VideoInfo</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetvideosurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlvideodrivername.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetVideoSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_VideoDriverName</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlgetvideosurface.html b/distrib/sdl-1.2.15/docs/html/sdlgetvideosurface.html new file mode 100644 index 0000000..905b1f6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlgetvideosurface.html @@ -0,0 +1,208 @@ +<HTML +><HEAD +><TITLE +>SDL_GetVideoSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="Video" +HREF="video.html"><LINK +REL="NEXT" +TITLE="SDL_GetVideoInfo" +HREF="sdlgetvideoinfo.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="video.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetvideoinfo.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGETVIDEOSURFACE" +></A +>SDL_GetVideoSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1078" +></A +><H2 +>Name</H2 +>SDL_GetVideoSurface -- returns a pointer to the current display surface</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1081" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1082" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_GetVideoSurface</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1088" +></A +><H2 +>Description</H2 +><P +>This function returns a pointer to the current display surface. +If SDL is doing format conversion on the display surface, this +function returns the publicly visible surface, not the real video +surface.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1091" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetvideoinfo.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Video</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetVideoInfo</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlglattr.html b/distrib/sdl-1.2.15/docs/html/sdlglattr.html new file mode 100644 index 0000000..0ae0127 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlglattr.html @@ -0,0 +1,379 @@ +<HTML +><HEAD +><TITLE +>SDL_GLattr</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_FreeYUVOverlay" +HREF="sdlfreeyuvoverlay.html"><LINK +REL="NEXT" +TITLE="SDL_Rect" +HREF="sdlrect.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlfreeyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlrect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGLATTR" +></A +>SDL_GLattr</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2971" +></A +><H2 +>Name</H2 +>SDL_GLattr -- SDL GL Attributes</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2974" +></A +><H2 +>Attributes</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN2976" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_RED_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the framebuffer red component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_GREEN_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the framebuffer green component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_BLUE_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the framebuffer blue component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_ALPHA_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the framebuffer alpha component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_DOUBLEBUFFER</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>0 or 1, enable or disable double buffering</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_BUFFER_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the framebuffer, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_DEPTH_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the depth buffer, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_STENCIL_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the stencil buffer, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_ACCUM_RED_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the accumulation buffer red component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_ACCUM_GREEN_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the accumulation buffer green component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_ACCUM_BLUE_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the accumulation buffer blue component, in bits</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_GL_ACCUM_ALPHA_SIZE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Size of the accumulation buffer alpha component, in bits</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3027" +></A +><H2 +>Description</H2 +><P +>While you can set most OpenGL attributes normally, the attributes list above must be known <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>before</I +></SPAN +> SDL sets the video mode. These attributes a set and read with <A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +> and <A +HREF="sdlglgetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetAttribute</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3035" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +>, +<A +HREF="sdlglgetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetAttribute</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlfreeyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlrect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_FreeYUVOverlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Rect</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlglgetattribute.html b/distrib/sdl-1.2.15/docs/html/sdlglgetattribute.html new file mode 100644 index 0000000..26c8913 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlglgetattribute.html @@ -0,0 +1,247 @@ +<HTML +><HEAD +><TITLE +>SDL_GL_GetAttribute</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GL_GetProcAddress" +HREF="sdlglgetprocaddress.html"><LINK +REL="NEXT" +TITLE="SDL_GL_SetAttribute" +HREF="sdlglsetattribute.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlglgetprocaddress.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlglsetattribute.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGLGETATTRIBUTE" +></A +>SDL_GL_GetAttribute</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2708" +></A +><H2 +>Name</H2 +>SDL_GL_GetAttribute -- Get the value of a special SDL/OpenGL attribute</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2711" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2712" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_GL_GetAttribute</B +></CODE +>(SDLGLattr attr, int *value);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2718" +></A +><H2 +>Description</H2 +><P +>Places the value of the SDL/OpenGL <A +HREF="sdlglattr.html" +>attribute</A +> <TT +CLASS="PARAMETER" +><I +>attr</I +></TT +> into <TT +CLASS="PARAMETER" +><I +>value</I +></TT +>. This is useful after a call to <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +> to check whether your attributes have been <A +HREF="sdlglsetattribute.html" +>set</A +> as you expected.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2727" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2732" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +>, +<A +HREF="sdlglattr.html" +>GL Attributes</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlglgetprocaddress.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlglsetattribute.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GL_GetProcAddress</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GL_SetAttribute</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlglgetprocaddress.html b/distrib/sdl-1.2.15/docs/html/sdlglgetprocaddress.html new file mode 100644 index 0000000..a6cf6e4 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlglgetprocaddress.html @@ -0,0 +1,262 @@ +<HTML +><HEAD +><TITLE +>SDL_GL_GetProcAddress</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GL_LoadLibrary" +HREF="sdlglloadlibrary.html"><LINK +REL="NEXT" +TITLE="SDL_GL_GetAttribute" +HREF="sdlglgetattribute.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlglloadlibrary.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlglgetattribute.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGLGETPROCADDRESS" +></A +>SDL_GL_GetProcAddress</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2678" +></A +><H2 +>Name</H2 +>SDL_GL_GetProcAddress -- Get the address of a GL function</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2681" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2682" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void *<B +CLASS="FSFUNC" +>SDL_GL_GetProcAddress</B +></CODE +>(const char* proc);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2688" +></A +><H2 +>Description</H2 +><P +>Returns the address of the GL function <TT +CLASS="PARAMETER" +><I +>proc</I +></TT +>, or <SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> if the function is not found. If the GL library is loaded at runtime, with <A +HREF="sdlglloadlibrary.html" +><TT +CLASS="FUNCTION" +>SDL_GL_LoadLibrary</TT +></A +>, then <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>all</I +></SPAN +> GL functions must be retrieved this way. Usually this is used to retrieve function pointers to OpenGL extensions.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2696" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef void (*GL_ActiveTextureARB_Func)(unsigned int); +GL_ActiveTextureARB_Func glActiveTextureARB_ptr = 0; +int has_multitexture=1; +. +. +. +/* Get function pointer */ +glActiveTextureARB_ptr=(GL_ActiveTextureARB_Func) SDL_GL_GetProcAddress("glActiveTextureARB"); + +/* Check for a valid function ptr */ +if(!glActiveTextureARB_ptr){ + fprintf(stderr, "Multitexture Extensions not present.\n"); + has_multitexture=0; +} +. +. +. +. +if(has_multitexture){ + glActiveTextureARB_ptr(GL_TEXTURE0_ARB); + . + . +} +else{ + . + . +}</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2699" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlglloadlibrary.html" +><TT +CLASS="FUNCTION" +>SDL_GL_LoadLibrary</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlglloadlibrary.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlglgetattribute.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GL_LoadLibrary</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GL_GetAttribute</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlglloadlibrary.html b/distrib/sdl-1.2.15/docs/html/sdlglloadlibrary.html new file mode 100644 index 0000000..d3c4c6d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlglloadlibrary.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_GL_LoadLibrary</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ShowCursor" +HREF="sdlshowcursor.html"><LINK +REL="NEXT" +TITLE="SDL_GL_GetProcAddress" +HREF="sdlglgetprocaddress.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlshowcursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlglgetprocaddress.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGLLOADLIBRARY" +></A +>SDL_GL_LoadLibrary</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2648" +></A +><H2 +>Name</H2 +>SDL_GL_LoadLibrary -- Specify an OpenGL library</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2651" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2652" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_GL_LoadLibrary</B +></CODE +>(const char *path);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2658" +></A +><H2 +>Description</H2 +><P +>If you wish, you may load the OpenGL library at runtime, this must be done before <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +> is called. The <TT +CLASS="PARAMETER" +><I +>path</I +></TT +> of the GL library is passed to <TT +CLASS="FUNCTION" +>SDL_GL_LoadLibrary</TT +> and it returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error. You must then use <A +HREF="sdlglgetprocaddress.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetProcAddress</TT +></A +> to retrieve function pointers to GL functions.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2669" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlglgetprocaddress.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetProcAddress</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlshowcursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlglgetprocaddress.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ShowCursor</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GL_GetProcAddress</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlglsetattribute.html b/distrib/sdl-1.2.15/docs/html/sdlglsetattribute.html new file mode 100644 index 0000000..ffb1204 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlglsetattribute.html @@ -0,0 +1,286 @@ +<HTML +><HEAD +><TITLE +>SDL_GL_SetAttribute</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GL_GetAttribute" +HREF="sdlglgetattribute.html"><LINK +REL="NEXT" +TITLE="SDL_GL_SwapBuffers" +HREF="sdlglswapbuffers.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlglgetattribute.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlglswapbuffers.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGLSETATTRIBUTE" +></A +>SDL_GL_SetAttribute</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2742" +></A +><H2 +>Name</H2 +>SDL_GL_SetAttribute -- Set a special SDL/OpenGL attribute</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2745" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2746" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_GL_SetAttribute</B +></CODE +>(SDL_GLattr attr, int value);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2752" +></A +><H2 +>Description</H2 +><P +>Sets the OpenGL <A +HREF="sdlglattr.html" +>attribute</A +> <TT +CLASS="PARAMETER" +><I +>attr</I +></TT +> to <TT +CLASS="PARAMETER" +><I +>value</I +></TT +>. The attributes you set don't take effect until after a call to <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>. You should use <A +HREF="sdlglgetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetAttribute</TT +></A +> to check the values after a <TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +> call.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2763" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2768" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 ); +SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 ); +SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 ); +SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); +SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); +if ( (screen=SDL_SetVideoMode( 640, 480, 16, SDL_OPENGL )) == NULL ) { + fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError()); + SDL_Quit(); + return; +}</PRE +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>The <TT +CLASS="LITERAL" +>SDL_DOUBLEBUF</TT +> flag is not required to enable double buffering when setting an OpenGL video mode. Double buffering is enabled or disabled using the SDL_GL_DOUBLEBUFFER attribute.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2774" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlglgetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_GetAttribute</TT +></A +>, +<A +HREF="sdlglattr.html" +>GL Attributes</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlglgetattribute.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlglswapbuffers.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GL_GetAttribute</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GL_SwapBuffers</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlglswapbuffers.html b/distrib/sdl-1.2.15/docs/html/sdlglswapbuffers.html new file mode 100644 index 0000000..fa38341 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlglswapbuffers.html @@ -0,0 +1,212 @@ +<HTML +><HEAD +><TITLE +>SDL_GL_SwapBuffers</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GL_SetAttribute" +HREF="sdlglsetattribute.html"><LINK +REL="NEXT" +TITLE="SDL_CreateYUVOverlay" +HREF="sdlcreateyuvoverlay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlglsetattribute.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreateyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLGLSWAPBUFFERS" +></A +>SDL_GL_SwapBuffers</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2784" +></A +><H2 +>Name</H2 +>SDL_GL_SwapBuffers -- Swap OpenGL framebuffers/Update Display</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2787" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2788" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_GL_SwapBuffers</B +></CODE +>(void );</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2794" +></A +><H2 +>Description</H2 +><P +>Swap the OpenGL buffers, if double-buffering is supported.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2797" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlglsetattribute.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreateyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GL_SetAttribute</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateYUVOverlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlinit.html b/distrib/sdl-1.2.15/docs/html/sdlinit.html new file mode 100644 index 0000000..11f27b8 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlinit.html @@ -0,0 +1,368 @@ +<HTML +><HEAD +><TITLE +>SDL_Init</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="General" +HREF="general.html"><LINK +REL="NEXT" +TITLE="SDL_InitSubSystem" +HREF="sdlinitsubsystem.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="general.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlinitsubsystem.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLINIT" +></A +>SDL_Init</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN440" +></A +><H2 +>Name</H2 +>SDL_Init -- Initializes SDL</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN443" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN444" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_Init</B +></CODE +>(Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN450" +></A +><H2 +>Description</H2 +><P +>Initializes SDL. This should be called before all other SDL functions. The <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> parameter specifies what part(s) of SDL to initialize.</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN454" +></A +><P +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_TIMER</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Initializes the <A +HREF="time.html" +>timer</A +> subsystem.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_AUDIO</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Initializes the <A +HREF="audio.html" +>audio</A +> subsystem.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_VIDEO</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Initializes the <A +HREF="video.html" +>video</A +> subsystem.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_CDROM</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Initializes the <A +HREF="cdrom.html" +>cdrom</A +> subsystem.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_JOYSTICK</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Initializes the <A +HREF="joystick.html" +>joystick</A +> subsystem.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_EVERYTHING</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Initialize all of the above.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_NOPARACHUTE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Prevents SDL from catching fatal signals.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_INIT_EVENTTHREAD</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +> </TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN494" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error or <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN499" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlquit.html" +><TT +CLASS="FUNCTION" +>SDL_Quit</TT +></A +>, +<A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlinitsubsystem.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>General</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_InitSubSystem</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlinitsubsystem.html b/distrib/sdl-1.2.15/docs/html/sdlinitsubsystem.html new file mode 100644 index 0000000..917fd10 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlinitsubsystem.html @@ -0,0 +1,283 @@ +<HTML +><HEAD +><TITLE +>SDL_InitSubSystem</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Init" +HREF="sdlinit.html"><LINK +REL="NEXT" +TITLE="SDL_QuitSubSystem" +HREF="sdlquitsubsystem.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlinit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlquitsubsystem.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLINITSUBSYSTEM" +></A +>SDL_InitSubSystem</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN510" +></A +><H2 +>Name</H2 +>SDL_InitSubSystem -- Initialize subsystems</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN513" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN514" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_InitSubSystem</B +></CODE +>(Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN520" +></A +><H2 +>Description</H2 +><P +>After SDL has been initialized with <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +> you may initialize uninitialized subsystems with <TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +>. The <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> parameter is the same as that used in <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN529" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>/* Seperating Joystick and Video initialization. */ +SDL_Init(SDL_INIT_VIDEO); +. +. +SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN); +. +/* Do Some Video stuff */ +. +. +/* Initialize the joystick subsystem */ +SDL_InitSubSystem(SDL_INIT_JOYSTICK); + +/* Do some stuff with video and joystick */ +. +. +. +/* Shut them both down */ +SDL_Quit();</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN532" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error or <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN537" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>, +<A +HREF="sdlquit.html" +><TT +CLASS="FUNCTION" +>SDL_Quit</TT +></A +>, +<A +HREF="sdlquitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_QuitSubSystem</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlinit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlquitsubsystem.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Init</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_QuitSubSystem</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoyaxisevent.html b/distrib/sdl-1.2.15/docs/html/sdljoyaxisevent.html new file mode 100644 index 0000000..9f01669 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoyaxisevent.html @@ -0,0 +1,330 @@ +<HTML +><HEAD +><TITLE +>SDL_JoyAxisEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_MouseButtonEvent" +HREF="sdlmousebuttonevent.html"><LINK +REL="NEXT" +TITLE="SDL_JoyButtonEvent" +HREF="sdljoybuttonevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmousebuttonevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoybuttonevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYAXISEVENT" +></A +>SDL_JoyAxisEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4203" +></A +><H2 +>Name</H2 +>SDL_JoyAxisEvent -- Joystick axis motion event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4206" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 which; + Uint8 axis; + Sint16 value; +} SDL_JoyAxisEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4209" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4211" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYAXISMOTION</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick device index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>axis</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick axis index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>value</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Axis value (range: -32768 to 32767)</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4231" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyAxisEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_JOYAXISMOTION</TT +> is reported.</P +><P +>A <TT +CLASS="LITERAL" +>SDL_JOYAXISMOTION</TT +> event occurs when ever a user moves an axis on the joystick. The field <TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +> is the index of the joystick that reported the event and <TT +CLASS="STRUCTFIELD" +><I +>axis</I +></TT +> is the index of the axis (for a more detailed explaination see the <A +HREF="joystick.html" +>Joystick section</A +>). <TT +CLASS="STRUCTFIELD" +><I +>value</I +></TT +> is the current position of the axis.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4244" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="joystick.html" +>Joystick Functions</A +>, +<A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +>, +<A +HREF="sdljoystickgetaxis.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetAxis</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmousebuttonevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoybuttonevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_MouseButtonEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoyButtonEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoyballevent.html b/distrib/sdl-1.2.15/docs/html/sdljoyballevent.html new file mode 100644 index 0000000..4ab96fe --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoyballevent.html @@ -0,0 +1,340 @@ +<HTML +><HEAD +><TITLE +>SDL_JoyBallEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoyHatEvent" +HREF="sdljoyhatevent.html"><LINK +REL="NEXT" +TITLE="SDL_ResizeEvent" +HREF="sdlresizeevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoyhatevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlresizeevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYBALLEVENT" +></A +>SDL_JoyBallEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4396" +></A +><H2 +>Name</H2 +>SDL_JoyBallEvent -- Joystick trackball motion event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4399" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 which; + Uint8 ball; + Sint16 xrel, yrel; +} SDL_JoyBallEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4402" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4404" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYBALLMOTION</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick device index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>ball</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick trackball index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>xrel</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>yrel</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The relative motion in the X/Y direction</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4425" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyBallEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_JOYBALLMOTION</TT +> is reported.</P +><P +>A <TT +CLASS="LITERAL" +>SDL_JOYBALLMOTION</TT +> event occurs when a user moves a trackball on the joystick. The field <TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +> is the index of the joystick that reported the event and <TT +CLASS="STRUCTFIELD" +><I +>ball</I +></TT +> is the index of the trackball (for a more detailed explaination see the <A +HREF="joystick.html" +>Joystick section</A +>). Trackballs only return relative motion, this is the change in position on the ball since it was last polled (last cycle of the event loop) and it is stored in <TT +CLASS="STRUCTFIELD" +><I +>xrel</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>yrel</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4439" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="joystick.html" +>Joystick Functions</A +>, +<A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +>, +<A +HREF="sdljoystickgetball.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetBall</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoyhatevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlresizeevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoyHatEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ResizeEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoybuttonevent.html b/distrib/sdl-1.2.15/docs/html/sdljoybuttonevent.html new file mode 100644 index 0000000..d1d9c1e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoybuttonevent.html @@ -0,0 +1,351 @@ +<HTML +><HEAD +><TITLE +>SDL_JoyButtonEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoyAxisEvent" +HREF="sdljoyaxisevent.html"><LINK +REL="NEXT" +TITLE="SDL_JoyHatEvent" +HREF="sdljoyhatevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoyaxisevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoyhatevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYBUTTONEVENT" +></A +>SDL_JoyButtonEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4258" +></A +><H2 +>Name</H2 +>SDL_JoyButtonEvent -- Joystick button event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4261" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 which; + Uint8 button; + Uint8 state; +} SDL_JoyButtonEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4264" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4266" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOYBUTTONDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_JOYBUTTONUP</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick device index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>button</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick button index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_PRESSED</TT +> or <TT +CLASS="LITERAL" +>SDL_RELEASED</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4289" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyButtonEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_JOYBUTTONDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_JOYBUTTONUP</TT +> is reported.</P +><P +>A <TT +CLASS="LITERAL" +>SDL_JOYBUTTONDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_JOYBUTTONUP</TT +> event occurs when ever a user presses or releases a button on a joystick. The field <TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +> is the index of the joystick that reported the event and <TT +CLASS="STRUCTFIELD" +><I +>button</I +></TT +> is the index of the button (for a more detailed explaination see the <A +HREF="joystick.html" +>Joystick section</A +>). <TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +> is the current state or the button which is either <TT +CLASS="LITERAL" +>SDL_PRESSED</TT +> or <TT +CLASS="LITERAL" +>SDL_RELEASED</TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4306" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="joystick.html" +>Joystick Functions</A +>, +<A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +>, +<A +HREF="sdljoystickgetbutton.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetButton</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoyaxisevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoyhatevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoyAxisEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoyHatEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoyhatevent.html b/distrib/sdl-1.2.15/docs/html/sdljoyhatevent.html new file mode 100644 index 0000000..5e115be --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoyhatevent.html @@ -0,0 +1,413 @@ +<HTML +><HEAD +><TITLE +>SDL_JoyHatEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoyButtonEvent" +HREF="sdljoybuttonevent.html"><LINK +REL="NEXT" +TITLE="SDL_JoyBallEvent" +HREF="sdljoyballevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoybuttonevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoyballevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYHATEVENT" +></A +>SDL_JoyHatEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4320" +></A +><H2 +>Name</H2 +>SDL_JoyHatEvent -- Joystick hat position change event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4323" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 which; + Uint8 hat; + Uint8 value; +} SDL_JoyHatEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4326" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4328" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_JOY</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick device index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>hat</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Joystick hat index</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>value</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Hat position</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4348" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyHatEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_JOYHATMOTION</TT +> is reported.</P +><P +>A <TT +CLASS="LITERAL" +>SDL_JOYHATMOTION</TT +> event occurs when ever a user moves a hat on the joystick. The field <TT +CLASS="STRUCTFIELD" +><I +>which</I +></TT +> is the index of the joystick that reported the event and <TT +CLASS="STRUCTFIELD" +><I +>hat</I +></TT +> is the index of the hat (for a more detailed exlaination see the <A +HREF="joystick.html" +>Joystick section</A +>). <TT +CLASS="STRUCTFIELD" +><I +>value</I +></TT +> is the current position of the hat. It is a logically OR'd combination of the following values (whose meanings should be pretty obvious:) :</P +><P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_CENTERED</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_UP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHT</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_DOWN</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFT</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +><P +>The following defines are also provided:</P +><P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHTUP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHTDOWN</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFTUP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFTDOWN</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4382" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="joystick.html" +>Joystick Functions</A +>, +<A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +>, +<A +HREF="sdljoystickgetball.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetHat</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoybuttonevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoyballevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoyButtonEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoyBallEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickclose.html b/distrib/sdl-1.2.15/docs/html/sdljoystickclose.html new file mode 100644 index 0000000..efb44e0 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickclose.html @@ -0,0 +1,223 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickClose</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickGetBall" +HREF="sdljoystickgetball.html"><LINK +REL="NEXT" +TITLE="Audio" +HREF="audio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickgetball.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="audio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKCLOSE" +></A +>SDL_JoystickClose</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6469" +></A +><H2 +>Name</H2 +>SDL_JoystickClose -- Closes a previously opened joystick</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6472" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6473" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_JoystickClose</B +></CODE +>(SDL_Joystick *joystick);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6479" +></A +><H2 +>Description</H2 +><P +>Close a <TT +CLASS="PARAMETER" +><I +>joystick</I +></TT +> that was previously opened with <A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6485" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +>, +<A +HREF="sdljoystickopened.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpened</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickgetball.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickGetBall</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Audio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickeventstate.html b/distrib/sdl-1.2.15/docs/html/sdljoystickeventstate.html new file mode 100644 index 0000000..11b148a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickeventstate.html @@ -0,0 +1,290 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickEventState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetAppState" +HREF="sdlgetappstate.html"><LINK +REL="NEXT" +TITLE="Joystick" +HREF="joystick.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetappstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="joystick.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKEVENTSTATE" +></A +>SDL_JoystickEventState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5969" +></A +><H2 +>Name</H2 +>SDL_JoystickEventState -- Enable/disable joystick event polling</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5972" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5973" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickEventState</B +></CODE +>(int state);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5979" +></A +><H2 +>Description</H2 +><P +>This function is used to enable or disable joystick event processing. With joystick event processing disabled you will have to update joystick states with <A +HREF="sdljoystickupdate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickUpdate</TT +></A +> and read the joystick information manually. <TT +CLASS="PARAMETER" +><I +>state</I +></TT +> is either <TT +CLASS="LITERAL" +>SDL_QUERY</TT +>, <TT +CLASS="LITERAL" +>SDL_ENABLE</TT +> or <TT +CLASS="LITERAL" +>SDL_IGNORE</TT +>.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Joystick event handling is prefered</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5990" +></A +><H2 +>Return Value</H2 +><P +>If <TT +CLASS="PARAMETER" +><I +>state</I +></TT +> is <TT +CLASS="LITERAL" +>SDL_QUERY</TT +> then the current state is returned, otherwise the new processing <TT +CLASS="PARAMETER" +><I +>state</I +></TT +> is returned.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5996" +></A +><H2 +>See Also</H2 +><P +><A +HREF="joystick.html" +>SDL Joystick Functions</A +>, +<A +HREF="sdljoystickupdate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickUpdate</TT +></A +>, +<A +HREF="sdljoyaxisevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyAxisEvent</SPAN +></A +>, +<A +HREF="sdljoyballevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyBallEvent</SPAN +></A +>, +<A +HREF="sdljoybuttonevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyButtonEvent</SPAN +></A +>, +<A +HREF="sdljoyhatevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_JoyHatEvent</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetappstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetAppState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Joystick</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickgetaxis.html b/distrib/sdl-1.2.15/docs/html/sdljoystickgetaxis.html new file mode 100644 index 0000000..40a17b4 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickgetaxis.html @@ -0,0 +1,271 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickGetAxis</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickUpdate" +HREF="sdljoystickupdate.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickGetHat" +HREF="sdljoystickgethat.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickupdate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickgethat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKGETAXIS" +></A +>SDL_JoystickGetAxis</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6320" +></A +><H2 +>Name</H2 +>SDL_JoystickGetAxis -- Get the current state of an axis</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6323" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6324" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Sint16 <B +CLASS="FSFUNC" +>SDL_JoystickGetAxis</B +></CODE +>(SDL_Joystick *joystick, int axis);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6330" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_JoystickGetAxis</TT +> returns the current state of the given <TT +CLASS="PARAMETER" +><I +>axis</I +></TT +> on the given <TT +CLASS="PARAMETER" +><I +>joystick</I +></TT +>.</P +><P +>On most modern joysticks the X axis is usually represented by <TT +CLASS="PARAMETER" +><I +>axis</I +></TT +> 0 and the Y axis by <TT +CLASS="PARAMETER" +><I +>axis</I +></TT +> 1. The value returned by <TT +CLASS="FUNCTION" +>SDL_JoystickGetAxis</TT +> is a signed integer (-32768 to 32768) representing the current position of the <TT +CLASS="PARAMETER" +><I +>axis</I +></TT +>, it maybe necessary to impose certain tolerances on these values to account for jitter. It is worth noting that some joysticks use axes 2 and 3 for extra buttons.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6341" +></A +><H2 +>Return Value</H2 +><P +>Returns a 16-bit signed integer representing the current position of the <TT +CLASS="PARAMETER" +><I +>axis</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6345" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>Sint16 x_move, y_move; +SDL_Joystick *joy1; +. +. +x_move=SDL_JoystickGetAxis(joy1, 0); +y_move=SDL_JoystickGetAxis(joy1, 1);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6349" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoysticknumaxes.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumAxes</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickupdate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickgethat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickUpdate</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickGetHat</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html b/distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html new file mode 100644 index 0000000..0da252a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html @@ -0,0 +1,262 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickGetBall</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickGetButton" +HREF="sdljoystickgetbutton.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickClose" +HREF="sdljoystickclose.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickgetbutton.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickclose.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKGETBALL" +></A +>SDL_JoystickGetBall</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6433" +></A +><H2 +>Name</H2 +>SDL_JoystickGetBall -- Get relative trackball motion</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6436" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6437" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickGetBall</B +></CODE +>(SDL_Joystick *joystick, int ball, int *dx, int *dy);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6443" +></A +><H2 +>Description</H2 +><P +>Get the <TT +CLASS="PARAMETER" +><I +>ball</I +></TT +> axis change.</P +><P +>Trackballs can only return relative motion since the last call to <TT +CLASS="FUNCTION" +>SDL_JoystickGetBall</TT +>, these motion deltas a placed into <TT +CLASS="PARAMETER" +><I +>dx</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>dy</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6451" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on failure</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6456" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>int delta_x, delta_y; +SDL_Joystick *joy; +. +. +. +SDL_JoystickUpdate(); +if(SDL_JoystickGetBall(joy, 0, &delta_x, &delta_y)==-1) + printf("TrackBall Read Error!\n"); +printf("Trackball Delta- X:%d, Y:%d\n", delta_x, delta_y);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6460" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoysticknumballs.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumBalls</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickgetbutton.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickclose.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickGetButton</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickClose</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickgetbutton.html b/distrib/sdl-1.2.15/docs/html/sdljoystickgetbutton.html new file mode 100644 index 0000000..680e356 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickgetbutton.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickGetButton</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickGetHat" +HREF="sdljoystickgethat.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickGetBall" +HREF="sdljoystickgetball.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickgethat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickgetball.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKGETBUTTON" +></A +>SDL_JoystickGetButton</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6404" +></A +><H2 +>Name</H2 +>SDL_JoystickGetButton -- Get the current state of a given button on a given joystick</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6407" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6408" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 <B +CLASS="FSFUNC" +>SDL_JoystickGetButton</B +></CODE +>(SDL_Joystick *joystick, int button);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6414" +></A +><H2 +>Description</H2 +><P +>SDL_JoystickGetButton returns the current state of the given <TT +CLASS="PARAMETER" +><I +>button</I +></TT +> on the given <TT +CLASS="PARAMETER" +><I +>joystick</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6419" +></A +><H2 +>Return Value</H2 +><P +><SPAN +CLASS="RETURNVALUE" +>1</SPAN +> if the button is pressed. Otherwise, <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6424" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoysticknumbuttons.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumButtons</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickgethat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickgetball.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickGetHat</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickGetBall</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickgethat.html b/distrib/sdl-1.2.15/docs/html/sdljoystickgethat.html new file mode 100644 index 0000000..c638abb --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickgethat.html @@ -0,0 +1,297 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickGetHat</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickGetAxis" +HREF="sdljoystickgetaxis.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickGetButton" +HREF="sdljoystickgetbutton.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickgetaxis.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickgetbutton.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKGETHAT" +></A +>SDL_JoystickGetHat</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6358" +></A +><H2 +>Name</H2 +>SDL_JoystickGetHat -- Get the current state of a joystick hat</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6361" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6362" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint8 <B +CLASS="FSFUNC" +>SDL_JoystickGetHat</B +></CODE +>(SDL_Joystick *joystick, int hat);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6368" +></A +><H2 +>Description</H2 +><P +>SDL_JoystickGetHat returns the current state of the given <TT +CLASS="PARAMETER" +><I +>hat</I +></TT +> on the given <TT +CLASS="PARAMETER" +><I +>joystick</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6373" +></A +><H2 +>Return Value</H2 +><P +>The current state is returned as a Uint8 which is defined as an OR'd combination of one or more of the following</P +><P +></P +><TABLE +BORDER="0" +><TBODY +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_CENTERED</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_UP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHT</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_DOWN</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFT</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHTUP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_RIGHTDOWN</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFTUP</TT +></TD +></TR +><TR +><TD +><TT +CLASS="LITERAL" +>SDL_HAT_LEFTDOWN</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6395" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoysticknumhats.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickNumHats</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickgetaxis.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickgetbutton.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickGetAxis</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickGetButton</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickindex.html b/distrib/sdl-1.2.15/docs/html/sdljoystickindex.html new file mode 100644 index 0000000..868a75a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickindex.html @@ -0,0 +1,218 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickIndex</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickOpened" +HREF="sdljoystickopened.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickNumAxes" +HREF="sdljoysticknumaxes.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickopened.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoysticknumaxes.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKINDEX" +></A +>SDL_JoystickIndex</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6158" +></A +><H2 +>Name</H2 +>SDL_JoystickIndex -- Get the index of an SDL_Joystick.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6161" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6162" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickIndex</B +></CODE +>(SDL_Joystick *joystick);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6168" +></A +><H2 +>Description</H2 +><P +>Returns the index of a given <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +> structure.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6172" +></A +><H2 +>Return Value</H2 +><P +>Index number of the joystick.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6175" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickopened.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoysticknumaxes.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickOpened</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickNumAxes</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickname.html b/distrib/sdl-1.2.15/docs/html/sdljoystickname.html new file mode 100644 index 0000000..0add817 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickname.html @@ -0,0 +1,238 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickName</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_NumJoysticks" +HREF="sdlnumjoysticks.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickOpen" +HREF="sdljoystickopen.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlnumjoysticks.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickopen.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKNAME" +></A +>SDL_JoystickName</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6066" +></A +><H2 +>Name</H2 +>SDL_JoystickName -- Get joystick name.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6069" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6070" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>const char *<B +CLASS="FSFUNC" +>SDL_JoystickName</B +></CODE +>(int index);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6076" +></A +><H2 +>Description</H2 +><P +>Get the implementation dependent name of joystick. The <TT +CLASS="PARAMETER" +><I +>index</I +></TT +> parameter refers to the N'th joystick on the system.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6080" +></A +><H2 +>Return Value</H2 +><P +>Returns a char pointer to the joystick name.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6083" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>/* Print the names of all attached joysticks */ +int num_joy, i; +num_joy=SDL_NumJoysticks(); +printf("%d joysticks found\n", num_joy); +for(i=0;i<num_joy;i++) + printf("%s\n", SDL_JoystickName(i));</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6087" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlnumjoysticks.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickopen.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_NumJoysticks</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickOpen</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoysticknumaxes.html b/distrib/sdl-1.2.15/docs/html/sdljoysticknumaxes.html new file mode 100644 index 0000000..53b67f5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoysticknumaxes.html @@ -0,0 +1,225 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickNumAxes</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickIndex" +HREF="sdljoystickindex.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickNumBalls" +HREF="sdljoysticknumballs.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickindex.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoysticknumballs.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKNUMAXES" +></A +>SDL_JoystickNumAxes</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6184" +></A +><H2 +>Name</H2 +>SDL_JoystickNumAxes -- Get the number of joystick axes</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6187" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6188" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickNumAxes</B +></CODE +>(SDL_Joystick *joystick);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6194" +></A +><H2 +>Description</H2 +><P +>Return the number of axes available from a previously opened <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6198" +></A +><H2 +>Return Value</H2 +><P +>Number of axes.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6201" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickgetaxis.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetAxis</TT +></A +>, +<A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickindex.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoysticknumballs.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickIndex</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickNumBalls</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoysticknumballs.html b/distrib/sdl-1.2.15/docs/html/sdljoysticknumballs.html new file mode 100644 index 0000000..0a8405d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoysticknumballs.html @@ -0,0 +1,225 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickNumBalls</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickNumAxes" +HREF="sdljoysticknumaxes.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickNumHats" +HREF="sdljoysticknumhats.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoysticknumaxes.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoysticknumhats.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKNUMBALLS" +></A +>SDL_JoystickNumBalls</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6212" +></A +><H2 +>Name</H2 +>SDL_JoystickNumBalls -- Get the number of joystick trackballs</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6215" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6216" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickNumBalls</B +></CODE +>(SDL_Joystick *joystick);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6222" +></A +><H2 +>Description</H2 +><P +>Return the number of trackballs available from a previously opened <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6226" +></A +><H2 +>Return Value</H2 +><P +>Number of trackballs.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6229" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickgetball.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetBall</TT +></A +>, +<A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoysticknumaxes.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoysticknumhats.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickNumAxes</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickNumHats</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoysticknumbuttons.html b/distrib/sdl-1.2.15/docs/html/sdljoysticknumbuttons.html new file mode 100644 index 0000000..625b893 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoysticknumbuttons.html @@ -0,0 +1,225 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickNumButtons</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickNumHats" +HREF="sdljoysticknumhats.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickUpdate" +HREF="sdljoystickupdate.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoysticknumhats.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickupdate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKNUMBUTTONS" +></A +>SDL_JoystickNumButtons</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6268" +></A +><H2 +>Name</H2 +>SDL_JoystickNumButtons -- Get the number of joysitck buttons</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6271" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6272" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickNumButtons</B +></CODE +>(SDL_Joystick *joystick);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6278" +></A +><H2 +>Description</H2 +><P +>Return the number of buttons available from a previously opened <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6282" +></A +><H2 +>Return Value</H2 +><P +>Number of buttons.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6285" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickgetbutton.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetButton</TT +></A +>, +<A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoysticknumhats.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickupdate.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickNumHats</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickUpdate</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoysticknumhats.html b/distrib/sdl-1.2.15/docs/html/sdljoysticknumhats.html new file mode 100644 index 0000000..ed53235 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoysticknumhats.html @@ -0,0 +1,225 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickNumHats</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickNumBalls" +HREF="sdljoysticknumballs.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickNumButtons" +HREF="sdljoysticknumbuttons.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoysticknumballs.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoysticknumbuttons.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKNUMHATS" +></A +>SDL_JoystickNumHats</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6240" +></A +><H2 +>Name</H2 +>SDL_JoystickNumHats -- Get the number of joystick hats</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6243" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6244" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickNumHats</B +></CODE +>(SDL_Joystick *joystick);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6250" +></A +><H2 +>Description</H2 +><P +>Return the number of hats available from a previously opened <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6254" +></A +><H2 +>Return Value</H2 +><P +>Number of hats.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6257" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickgethat.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickGetHat</TT +></A +>, +<A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoysticknumballs.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoysticknumbuttons.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickNumBalls</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickNumButtons</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickopen.html b/distrib/sdl-1.2.15/docs/html/sdljoystickopen.html new file mode 100644 index 0000000..e608c43 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickopen.html @@ -0,0 +1,259 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickOpen</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickName" +HREF="sdljoystickname.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickOpened" +HREF="sdljoystickopened.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickname.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickopened.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKOPEN" +></A +>SDL_JoystickOpen</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6096" +></A +><H2 +>Name</H2 +>SDL_JoystickOpen -- Opens a joystick for use.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6099" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6100" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Joystick *<B +CLASS="FSFUNC" +>SDL_JoystickOpen</B +></CODE +>(int index);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6106" +></A +><H2 +>Description</H2 +><P +>Opens a joystick for use within SDL. The <TT +CLASS="PARAMETER" +><I +>index</I +></TT +> refers to the N'th joystick in the system. A joystick must be opened before it game be used.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6110" +></A +><H2 +>Return Value</H2 +><P +>Returns a <SPAN +CLASS="STRUCTNAME" +>SDL_Joystick</SPAN +> structure on success. <SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> on failure.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6115" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_Joystick *joy; +// Check for joystick +if(SDL_NumJoysticks()>0){ + // Open joystick + joy=SDL_JoystickOpen(0); + + if(joy) + { + printf("Opened Joystick 0\n"); + printf("Name: %s\n", SDL_JoystickName(0)); + printf("Number of Axes: %d\n", SDL_JoystickNumAxes(joy)); + printf("Number of Buttons: %d\n", SDL_JoystickNumButtons(joy)); + printf("Number of Balls: %d\n", SDL_JoystickNumBalls(joy)); + } + else + printf("Couldn't open Joystick 0\n"); + + // Close if opened + if(SDL_JoystickOpened(0)) + SDL_JoystickClose(joy); +}</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6119" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickclose.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickClose</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickname.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickopened.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickName</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickOpened</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickopened.html b/distrib/sdl-1.2.15/docs/html/sdljoystickopened.html new file mode 100644 index 0000000..5275a09 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickopened.html @@ -0,0 +1,233 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickOpened</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickOpen" +HREF="sdljoystickopen.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickIndex" +HREF="sdljoystickindex.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoystickopen.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickindex.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKOPENED" +></A +>SDL_JoystickOpened</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6128" +></A +><H2 +>Name</H2 +>SDL_JoystickOpened -- Determine if a joystick has been opened</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6131" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6132" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_JoystickOpened</B +></CODE +>(int index);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6138" +></A +><H2 +>Description</H2 +><P +>Determines whether a joystick has already been opened within the application. <TT +CLASS="PARAMETER" +><I +>index</I +></TT +> refers to the N'th joystick on the system.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6142" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>1</SPAN +> if the joystick has been opened, or <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if it has not.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6147" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +>, +<A +HREF="sdljoystickclose.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickClose</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoystickopen.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickindex.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickOpen</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickIndex</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickupdate.html b/distrib/sdl-1.2.15/docs/html/sdljoystickupdate.html new file mode 100644 index 0000000..0cb37dc --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickupdate.html @@ -0,0 +1,211 @@ +<HTML +><HEAD +><TITLE +>SDL_JoystickUpdate</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoystickNumButtons" +HREF="sdljoysticknumbuttons.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickGetAxis" +HREF="sdljoystickgetaxis.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoysticknumbuttons.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickgetaxis.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLJOYSTICKUPDATE" +></A +>SDL_JoystickUpdate</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6296" +></A +><H2 +>Name</H2 +>SDL_JoystickUpdate -- Updates the state of all joysticks</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6299" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6300" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_JoystickUpdate</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6306" +></A +><H2 +>Description</H2 +><P +>Updates the state(position, buttons, etc.) of all open joysticks. If joystick events have been enabled with <A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +> then this is called automatically in the event loop.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6311" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickeventstate.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickEventState</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoysticknumbuttons.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickgetaxis.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoystickNumButtons</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickGetAxis</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlkey.html b/distrib/sdl-1.2.15/docs/html/sdlkey.html new file mode 100644 index 0000000..6591884 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlkey.html @@ -0,0 +1,2630 @@ +<HTML +><HEAD +><TITLE +>SDLKey</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_keysym" +HREF="sdlkeysym.html"><LINK +REL="NEXT" +TITLE="Event Functions." +HREF="eventfunctions.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlkeysym.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="eventfunctions.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLKEY" +></A +>SDLKey</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4714" +></A +><H2 +>Name</H2 +>SDLKey -- Keysym definitions.</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4717" +></A +><H2 +>Description</H2 +><P +> <DIV +CLASS="TABLE" +><A +NAME="AEN4720" +></A +><P +><B +>Table 8-1. SDL Keysym definitions</B +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><THEAD +><TR +><TH +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLKey</TH +><TH +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>ASCII value</TH +><TH +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>Common name</TH +></TR +></THEAD +><TBODY +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_BACKSPACE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'\b'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>backspace</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_TAB</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'\t'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>tab</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_CLEAR</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>clear</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RETURN</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'\r'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>return</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_PAUSE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>pause</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_ESCAPE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'^['</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>escape</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_SPACE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>' '</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>space</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_EXCLAIM</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'!'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>exclaim</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_QUOTEDBL</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'"'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>quotedbl</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_HASH</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'#'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>hash</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_DOLLAR</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'$'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>dollar</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_AMPERSAND</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'&'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>ampersand</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_QUOTE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'''</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>quote</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LEFTPAREN</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'('</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left parenthesis</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RIGHTPAREN</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>')'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right parenthesis</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_ASTERISK</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'*'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>asterisk</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_PLUS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'+'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>plus sign</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_COMMA</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>','</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>comma</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_MINUS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'-'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>minus sign</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_PERIOD</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'.'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>period</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_SLASH</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'/'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>forward slash</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_0</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'0'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>0</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_1</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'1'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>1</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_2</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'2'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>2</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_3</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'3'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>3</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_4</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'4'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>4</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_5</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'5'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>5</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_6</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'6'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>6</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_7</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'7'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>7</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_8</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'8'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>8</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_9</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'9'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>9</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_COLON</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>':'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>colon</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_SEMICOLON</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>';'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>semicolon</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LESS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'<'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>less-than sign</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_EQUALS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'='</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>equals sign</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_GREATER</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'>'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>greater-than sign</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_QUESTION</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'?'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>question mark</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_AT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'@'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>at</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LEFTBRACKET</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'['</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left bracket</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_BACKSLASH</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'\'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>backslash</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RIGHTBRACKET</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>']'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right bracket</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_CARET</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'^'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>caret</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_UNDERSCORE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'_'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>underscore</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_BACKQUOTE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'`'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>grave</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_a</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'a'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>a</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_b</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'b'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>b</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_c</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'c'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>c</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_d</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'d'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>d</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_e</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'e'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>e</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_f</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'f'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>f</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_g</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'g'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>g</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_h</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'h'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>h</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_i</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'i'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>i</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_j</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'j'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>j</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_k</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'k'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>k</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_l</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'l'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>l</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_m</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'m'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>m</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_n</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'n'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>n</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_o</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'o'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>o</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_p</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'p'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>p</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_q</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'q'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>q</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_r</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'r'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>r</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_s</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'s'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>s</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_t</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'t'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>t</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_u</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'u'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>u</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_v</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'v'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>v</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_w</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'w'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>w</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_x</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'x'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>x</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_y</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'y'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>y</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_z</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'z'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>z</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_DELETE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'^?'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>delete</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP0</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 0</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP1</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 1</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP2</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 2</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP3</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 3</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP4</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 4</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP5</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 5</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP6</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 6</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP7</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 7</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP8</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 8</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP9</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad 9</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_PERIOD</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'.'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad period</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_DIVIDE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'/'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad divide</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_MULTIPLY</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'*'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad multiply</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_MINUS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'-'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad minus</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_PLUS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'+'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad plus</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_ENTER</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'\r'</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad enter</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_KP_EQUALS</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>'='</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>keypad equals</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_UP</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>up arrow</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_DOWN</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>down arrow</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RIGHT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right arrow</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LEFT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left arrow</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_INSERT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>insert</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_HOME</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>home</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_END</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>end</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_PAGEUP</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>page up</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_PAGEDOWN</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>page down</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F1</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F1</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F2</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F2</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F3</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F3</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F4</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F4</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F5</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F5</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F6</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F6</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F7</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F7</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F8</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F8</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F9</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F9</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F10</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F10</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F11</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F11</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F12</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F12</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F13</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F13</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F14</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F14</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_F15</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>F15</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_NUMLOCK</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>numlock</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_CAPSLOCK</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>capslock</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_SCROLLOCK</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>scrollock</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RSHIFT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right shift</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LSHIFT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left shift</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RCTRL</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right ctrl</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LCTRL</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left ctrl</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RALT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right alt</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LALT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left alt</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RMETA</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right meta</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LMETA</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left meta</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_LSUPER</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>left windows key</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_RSUPER</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>right windows key</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_MODE</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>mode shift</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_HELP</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>help</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_PRINT</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>print-screen</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_SYSREQ</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SysRq</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_BREAK</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>break</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_MENU</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>menu</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_POWER</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>power</TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>SDLK_EURO</TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +> </TD +><TD +WIDTH="33%" +ALIGN="LEFT" +VALIGN="TOP" +>euro</TD +></TR +></TBODY +></TABLE +></DIV +> + +<DIV +CLASS="TABLE" +><A +NAME="SDLMOD" +></A +><P +><B +>Table 8-2. SDL modifier definitions</B +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><THEAD +><TR +><TH +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>SDL Modifier</TH +><TH +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Meaning</TH +></TR +></THEAD +><TBODY +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_NONE</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>No modifiers applicable</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_NUM</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Numlock is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_CAPS</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Capslock is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_LCTRL</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Left Control is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_RCTRL</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Right Control is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_RSHIFT</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Right Shift is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_LSHIFT</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Left Shift is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_RALT</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Right Alt is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_LALT</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>Left Alt is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_CTRL</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>A Control key is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_SHIFT</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>A Shift key is down</TD +></TR +><TR +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>KMOD_ALT</TD +><TD +WIDTH="50%" +ALIGN="LEFT" +VALIGN="TOP" +>An Alt key is down</TD +></TR +></TBODY +></TABLE +></DIV +> </P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlkeysym.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_keysym</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Event Functions.</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlkeyboardevent.html b/distrib/sdl-1.2.15/docs/html/sdlkeyboardevent.html new file mode 100644 index 0000000..1a6962c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlkeyboardevent.html @@ -0,0 +1,375 @@ +<HTML +><HEAD +><TITLE +>SDL_KeyboardEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ActiveEvent" +HREF="sdlactiveevent.html"><LINK +REL="NEXT" +TITLE="SDL_MouseMotionEvent" +HREF="sdlmousemotionevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlactiveevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmousemotionevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLKEYBOARDEVENT" +></A +>SDL_KeyboardEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4011" +></A +><H2 +>Name</H2 +>SDL_KeyboardEvent -- Keyboard event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4014" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 state; + SDL_keysym keysym; +} SDL_KeyboardEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4017" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4019" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_KEYDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_KEYUP</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_PRESSED</TT +> or <TT +CLASS="LITERAL" +>SDL_RELEASED</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>keysym</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Contains key press information</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4038" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_KeyboardEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_KEYDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_KEYUP</TT +> is reported.</P +><P +>The <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +> actually report the same information, they just use different values to do it! A keyboard event occurs when a key is released (<TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +>=<TT +CLASS="LITERAL" +>SDK_KEYUP</TT +> or <TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +>=<TT +CLASS="LITERAL" +>SDL_RELEASED</TT +>) and when a key is pressed (<TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +>=<TT +CLASS="LITERAL" +>SDL_KEYDOWN</TT +> or <TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +>=<TT +CLASS="LITERAL" +>SDL_PRESSED</TT +>). The information on what key was pressed or released is in the <A +HREF="sdlkeysym.html" +><SPAN +CLASS="STRUCTNAME" +>keysym</SPAN +></A +> structure.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Repeating <TT +CLASS="LITERAL" +>SDL_KEYDOWN</TT +> events will occur if key repeat is enabled (see <A +HREF="sdlenablekeyrepeat.html" +><TT +CLASS="FUNCTION" +>SDL_EnableKeyRepeat</TT +></A +>).</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4064" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlkeysym.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_keysym</SPAN +></A +>, +<A +HREF="sdlenablekeyrepeat.html" +><TT +CLASS="FUNCTION" +>SDL_EnableKeyRepeat</TT +></A +>, +<A +HREF="sdlenableunicode.html" +><TT +CLASS="FUNCTION" +>SDL_EnableUNICODE</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlactiveevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmousemotionevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ActiveEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_MouseMotionEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlkeysym.html b/distrib/sdl-1.2.15/docs/html/sdlkeysym.html new file mode 100644 index 0000000..7a22f79 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlkeysym.html @@ -0,0 +1,355 @@ +<HTML +><HEAD +><TITLE +>SDL_keysym</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_QuitEvent" +HREF="sdlquitevent.html"><LINK +REL="NEXT" +TITLE="SDLKey" +HREF="sdlkey.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlquitevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlkey.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLKEYSYM" +></A +>SDL_keysym</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4659" +></A +><H2 +>Name</H2 +>SDL_keysym -- Keysym structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4662" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 scancode; + SDLKey sym; + SDLMod mod; + Uint16 unicode; +} SDL_keysym;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4665" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4667" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>scancode</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Hardware specific scancode</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>sym</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>SDL virtual keysym</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>mod</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Current key modifiers</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>unicode</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Translated character</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4686" +></A +><H2 +>Description</H2 +><P +>The <SPAN +CLASS="STRUCTNAME" +>SDL_keysym</SPAN +> structure is used by reporting key presses and releases since it is a part of the <A +HREF="sdlkeyboardevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_KeyboardEvent</SPAN +></A +>.</P +><P +>The <TT +CLASS="STRUCTFIELD" +><I +>scancode</I +></TT +> field should generally be left alone, it is the hardware dependent scancode returned by the keyboard. The <TT +CLASS="STRUCTFIELD" +><I +>sym</I +></TT +> field is extremely useful. It is the SDL-defined value of the key (see <A +HREF="sdlkey.html" +>SDL Key Syms</A +>. This field is very useful when you are checking for certain key presses, like so: +<PRE +CLASS="PROGRAMLISTING" +>. +. +while(SDL_PollEvent(&event)){ + switch(event.type){ + case SDL_KEYDOWN: + if(event.key.keysym.sym==SDLK_LEFT) + move_left(); + break; + . + . + . + } +} +. +.</PRE +> +<TT +CLASS="STRUCTFIELD" +><I +>mod</I +></TT +> stores the current state of the keyboard modifiers as explained in <A +HREF="sdlgetmodstate.html" +><TT +CLASS="FUNCTION" +>SDL_GetModState</TT +></A +>. The <TT +CLASS="STRUCTFIELD" +><I +>unicode</I +></TT +> is only used when UNICODE translation is enabled with <A +HREF="sdlenableunicode.html" +><TT +CLASS="FUNCTION" +>SDL_EnableUNICODE</TT +></A +>. If <TT +CLASS="STRUCTFIELD" +><I +>unicode</I +></TT +> is non-zero then this a the UNICODE character corresponding to the keypress. If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character: +<PRE +CLASS="PROGRAMLISTING" +>char ch; +if ( (keysym.unicode & 0xFF80) == 0 ) { + ch = keysym.unicode & 0x7F; +} +else { + printf("An International Character.\n"); +}</PRE +> +UNICODE translation does have a slight overhead so don't enable it unless its needed.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4705" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlkey.html" +><SPAN +CLASS="STRUCTNAME" +>SDLKey</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlquitevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlkey.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_QuitEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDLKey</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlkillthread.html b/distrib/sdl-1.2.15/docs/html/sdlkillthread.html new file mode 100644 index 0000000..2ce7b9b --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlkillthread.html @@ -0,0 +1,223 @@ +<HTML +><HEAD +><TITLE +>SDL_KillThread</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WaitThread" +HREF="sdlwaitthread.html"><LINK +REL="NEXT" +TITLE="SDL_CreateMutex" +HREF="sdlcreatemutex.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwaitthread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatemutex.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLKILLTHREAD" +></A +>SDL_KillThread</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7794" +></A +><H2 +>Name</H2 +>SDL_KillThread -- Gracelessly terminates the thread.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7797" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7798" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_KillThread</B +></CODE +>(SDL_Thread *thread);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7804" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_KillThread</TT +> gracelessly terminates the thread +associated with <TT +CLASS="PARAMETER" +><I +>thread</I +></TT +>. If possible, you should +use some other form of IPC to signal the thread to quit.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7809" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatethread.html" +><TT +CLASS="FUNCTION" +>SDL_CreateThread</TT +></A +>, +<A +HREF="sdlwaitthread.html" +><TT +CLASS="FUNCTION" +>SDL_WaitThread</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwaitthread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatemutex.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WaitThread</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateMutex</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdllistmodes.html b/distrib/sdl-1.2.15/docs/html/sdllistmodes.html new file mode 100644 index 0000000..ee7bc0e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdllistmodes.html @@ -0,0 +1,310 @@ +<HTML +><HEAD +><TITLE +>SDL_ListModes</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_VideoDriverName" +HREF="sdlvideodrivername.html"><LINK +REL="NEXT" +TITLE="SDL_VideoModeOK" +HREF="sdlvideomodeok.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlvideodrivername.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlvideomodeok.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLLISTMODES" +></A +>SDL_ListModes</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1159" +></A +><H2 +>Name</H2 +>SDL_ListModes -- Returns a pointer to an array of available screen dimensions for +the given format and video flags</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1162" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1163" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Rect **<B +CLASS="FSFUNC" +>SDL_ListModes</B +></CODE +>(SDL_PixelFormat *format, Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1169" +></A +><H2 +>Description</H2 +><P +>Return a pointer to an array of available screen dimensions for the given +format and video flags, sorted largest to smallest. Returns +<TT +CLASS="LITERAL" +>NULL</TT +> if there are no dimensions available for a particular +format, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if any dimension is okay for +the given format.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>format</I +></TT +> is <TT +CLASS="LITERAL" +>NULL</TT +>, the mode list +will be for the format returned by <A +HREF="sdlgetvideoinfo.html" +>SDL_GetVideoInfo()</A +>-><TT +CLASS="STRUCTFIELD" +><I +>vfmt</I +></TT +>. The <TT +CLASS="PARAMETER" +><I +>flag</I +></TT +> parameter is an OR'd combination of <A +HREF="sdlsurface.html" +>surface</A +> flags. The flags are the same as those used <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +> and they play a strong role in deciding what modes are valid. For instance, if you pass <TT +CLASS="LITERAL" +>SDL_HWSURFACE</TT +> as a flag only modes that support hardware video surfaces will be returned.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1184" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_Rect **modes; +int i; +. +. +. + +/* Get available fullscreen/hardware modes */ +modes=SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE); + +/* Check is there are any modes available */ +if(modes == (SDL_Rect **)0){ + printf("No modes available!\n"); + exit(-1); +} + +/* Check if our resolution is restricted */ +if(modes == (SDL_Rect **)-1){ + printf("All resolutions available.\n"); +} +else{ + /* Print valid modes */ + printf("Available Modes\n"); + for(i=0;modes[i];++i) + printf(" %d x %d\n", modes[i]->w, modes[i]->h); +} +. +.</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1187" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdlgetvideoinfo.html" +><TT +CLASS="FUNCTION" +>SDL_GetVideoInfo</TT +></A +>, +<A +HREF="sdlrect.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +></A +>, +<A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlvideodrivername.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlvideomodeok.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_VideoDriverName</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_VideoModeOK</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlloadbmp.html b/distrib/sdl-1.2.15/docs/html/sdlloadbmp.html new file mode 100644 index 0000000..41556e3 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlloadbmp.html @@ -0,0 +1,219 @@ +<HTML +><HEAD +><TITLE +>SDL_LoadBMP</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_UnlockSurface" +HREF="sdlunlocksurface.html"><LINK +REL="NEXT" +TITLE="SDL_SaveBMP" +HREF="sdlsavebmp.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlunlocksurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsavebmp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLLOADBMP" +></A +>SDL_LoadBMP</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1989" +></A +><H2 +>Name</H2 +>SDL_LoadBMP -- Load a Windows BMP file into an SDL_Surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1992" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1993" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_LoadBMP</B +></CODE +>(const char *file);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1999" +></A +><H2 +>Description</H2 +><P +>Loads a surface from a named Windows BMP file.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2002" +></A +><H2 +>Return Value</H2 +><P +>Returns the new surface, or <TT +CLASS="LITERAL" +>NULL</TT +> +if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2006" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsavebmp.html" +><TT +CLASS="FUNCTION" +>SDL_SaveBMP</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlunlocksurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsavebmp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_UnlockSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SaveBMP</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlloadwav.html b/distrib/sdl-1.2.15/docs/html/sdlloadwav.html new file mode 100644 index 0000000..8abb73e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlloadwav.html @@ -0,0 +1,296 @@ +<HTML +><HEAD +><TITLE +>SDL_LoadWAV</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetAudioStatus" +HREF="sdlgetaudiostatus.html"><LINK +REL="NEXT" +TITLE="SDL_FreeWAV" +HREF="sdlfreewav.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetaudiostatus.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlfreewav.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLLOADWAV" +></A +>SDL_LoadWAV</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6816" +></A +><H2 +>Name</H2 +>SDL_LoadWAV -- Load a WAVE file</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6819" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6820" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_AudioSpec *<B +CLASS="FSFUNC" +>SDL_LoadWAV</B +></CODE +>(const char *file, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6826" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_LoadWAV</TT +> +This function loads a WAVE <TT +CLASS="PARAMETER" +><I +>file</I +></TT +> into memory.</P +><P +>If this function succeeds, it returns the given +<A +HREF="sdlaudiospec.html" +><TT +CLASS="FUNCTION" +>SDL_AudioSpec</TT +></A +>, +filled with the audio data format of the wave data, and sets +<TT +CLASS="PARAMETER" +><I +>audio_buf</I +></TT +> to a <TT +CLASS="FUNCTION" +>malloc</TT +>'d +buffer containing the audio data, and sets <TT +CLASS="PARAMETER" +><I +>audio_len</I +></TT +> +to the length of that audio buffer, in bytes. You need to free the audio +buffer with <A +HREF="sdlfreewav.html" +><TT +CLASS="FUNCTION" +>SDL_FreeWAV</TT +></A +> when you are +done with it.</P +><P +>This function returns <TT +CLASS="LITERAL" +>NULL</TT +> and sets the SDL +error message if the wave file cannot be opened, uses an unknown data format, +or is corrupt. Currently raw, MS-ADPCM and IMA-ADPCM WAVE files are supported.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6841" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_AudioSpec wav_spec; +Uint32 wav_length; +Uint8 *wav_buffer; + +/* Load the WAV */ +if( SDL_LoadWAV("test.wav", &wav_spec, &wav_buffer, &wav_length) == NULL ){ + fprintf(stderr, "Could not open test.wav: %s\n", SDL_GetError()); + exit(-1); +} +. +. +. +/* Do stuff with the WAV */ +. +. +/* Free It */ +SDL_FreeWAV(wav_buffer);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6844" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlaudiospec.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +></A +>, +<A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +>, +<A +HREF="sdlfreewav.html" +><TT +CLASS="FUNCTION" +>SDL_FreeWAV</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetaudiostatus.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlfreewav.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetAudioStatus</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_FreeWAV</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdllockaudio.html b/distrib/sdl-1.2.15/docs/html/sdllockaudio.html new file mode 100644 index 0000000..0e6fc29 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdllockaudio.html @@ -0,0 +1,208 @@ +<HTML +><HEAD +><TITLE +>SDL_LockAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_MixAudio" +HREF="sdlmixaudio.html"><LINK +REL="NEXT" +TITLE="SDL_UnlockAudio" +HREF="sdlunlockaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmixaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlunlockaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLLOCKAUDIO" +></A +>SDL_LockAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7134" +></A +><H2 +>Name</H2 +>SDL_LockAudio -- Lock out the callback function</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7137" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7138" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_LockAudio</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7144" +></A +><H2 +>Description</H2 +><P +>The lock manipulated by these functions protects the callback function. +During a LockAudio period, you can be guaranteed that the +callback function is not running. Do not call these from the callback +function or you will cause deadlock.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7147" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmixaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlunlockaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_MixAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_UnlockAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdllocksurface.html b/distrib/sdl-1.2.15/docs/html/sdllocksurface.html new file mode 100644 index 0000000..40c8959 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdllocksurface.html @@ -0,0 +1,306 @@ +<HTML +><HEAD +><TITLE +>SDL_LockSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_FreeSurface" +HREF="sdlfreesurface.html"><LINK +REL="NEXT" +TITLE="SDL_UnlockSurface" +HREF="sdlunlocksurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlfreesurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlunlocksurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLLOCKSURFACE" +></A +>SDL_LockSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1919" +></A +><H2 +>Name</H2 +>SDL_LockSurface -- Lock a surface for directly access.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1922" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1923" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_LockSurface</B +></CODE +>(SDL_Surface *surface);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1929" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +> sets up a surface for directly +accessing the pixels. Between calls to <TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +> +and <TT +CLASS="FUNCTION" +>SDL_UnlockSurface</TT +>, you can write to and read from +<TT +CLASS="PARAMETER" +><I +>surface-><TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +></I +></TT +>, using the pixel format stored in +<TT +CLASS="PARAMETER" +><I +>surface-><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +></I +></TT +>. Once you are done accessing the +surface, you should use <TT +CLASS="FUNCTION" +>SDL_UnlockSurface</TT +> to release it.</P +><P +>Not all surfaces require locking. +If <TT +CLASS="LITERAL" +>SDL_MUSTLOCK</TT +>(<TT +CLASS="PARAMETER" +><I +>surface</I +></TT +>) +evaluates to <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, then you can read and write to the +surface at any time, and the pixel format of the surface will not change. </P +><P +>No operating system or library calls should be made between lock/unlock +pairs, as critical system locks may be held during this time.</P +><P +>It should be noted, that since SDL 1.1.8 surface locks are recursive. This means that you can lock a surface multiple times, but each lock must have a match unlock. +<PRE +CLASS="PROGRAMLISTING" +> . + . + SDL_LockSurface( surface ); + . + /* Surface is locked */ + /* Direct pixel access on surface here */ + . + SDL_LockSurface( surface ); + . + /* More direct pixel access on surface */ + . + SDL_UnlockSurface( surface ); + /* Surface is still locked */ + /* Note: Is versions < 1.1.8, the surface would have been */ + /* no longer locked at this stage */ + . + SDL_UnlockSurface( surface ); + /* Surface is now unlocked */ + . + .</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1947" +></A +><H2 +>Return Value</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +> returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, +or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if the surface couldn't be locked.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1953" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlunlocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_UnlockSurface</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlfreesurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlunlocksurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_FreeSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_UnlockSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdllockyuvoverlay.html b/distrib/sdl-1.2.15/docs/html/sdllockyuvoverlay.html new file mode 100644 index 0000000..74e6ce6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdllockyuvoverlay.html @@ -0,0 +1,252 @@ +<HTML +><HEAD +><TITLE +>SDL_LockYUVOverlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateYUVOverlay" +HREF="sdlcreateyuvoverlay.html"><LINK +REL="NEXT" +TITLE="SDL_UnlockYUVOverlay" +HREF="sdlunlockyuvoverlay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreateyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlunlockyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLLOCKYUVOVERLAY" +></A +>SDL_LockYUVOverlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2844" +></A +><H2 +>Name</H2 +>SDL_LockYUVOverlay -- Lock an overlay</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2847" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2848" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_LockYUVOverlay</B +></CODE +>(SDL_Overlay *overlay);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2854" +></A +><H2 +>Description</H2 +><P +>Much the same as <A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +>, <TT +CLASS="FUNCTION" +>SDL_LockYUVOverlay</TT +> locks the <A +HREF="sdloverlay.html" +><TT +CLASS="PARAMETER" +><I +>overlay</I +></TT +></A +> for direct access to pixel data.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2862" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2867" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlunlockyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_UnlockYUVOverlay</TT +></A +>, +<A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +></A +>, +<A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreateyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlunlockyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateYUVOverlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_UnlockYUVOverlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmaprgb.html b/distrib/sdl-1.2.15/docs/html/sdlmaprgb.html new file mode 100644 index 0000000..5086d0c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmaprgb.html @@ -0,0 +1,254 @@ +<HTML +><HEAD +><TITLE +>SDL_MapRGB</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetGammaRamp" +HREF="sdlsetgammaramp.html"><LINK +REL="NEXT" +TITLE="SDL_MapRGBA" +HREF="sdlmaprgba.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetgammaramp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmaprgba.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMAPRGB" +></A +>SDL_MapRGB</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1652" +></A +><H2 +>Name</H2 +>SDL_MapRGB -- Map a RGB color value to a pixel format.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1655" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1656" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_MapRGB</B +></CODE +>(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1662" +></A +><H2 +>Description</H2 +><P +>Maps the RGB color value to the specified pixel format and returns the +pixel value as a 32-bit int.</P +><P +>If the format has a palette (8-bit) the index of the closest matching +color in the palette will be returned.</P +><P +>If the specified pixel format has an alpha component it will be returned +as all 1 bits (fully opaque).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1667" +></A +><H2 +>Return Value</H2 +><P +>A pixel value best approximating the given RGB color value for a given +pixel format. If the pixel format bpp (color depth) is less than 32-bpp +then the unused upper bits of the return value can safely be ignored +(e.g., with a 16-bpp format the return value can be assigned to a +<SPAN +CLASS="TYPE" +>Uint16</SPAN +>, and similarly a <SPAN +CLASS="TYPE" +>Uint8</SPAN +> for an 8-bpp +format).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1672" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetrgb.html" +><TT +CLASS="FUNCTION" +>SDL_GetRGB</TT +></A +>, +<A +HREF="sdlgetrgba.html" +><TT +CLASS="FUNCTION" +>SDL_GetRGBA</TT +></A +>, +<A +HREF="sdlmaprgba.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGBA</TT +></A +>, +<A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetgammaramp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmaprgba.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetGammaRamp</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_MapRGBA</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmaprgba.html b/distrib/sdl-1.2.15/docs/html/sdlmaprgba.html new file mode 100644 index 0000000..e6bff27 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmaprgba.html @@ -0,0 +1,242 @@ +<HTML +><HEAD +><TITLE +>SDL_MapRGBA</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_MapRGB" +HREF="sdlmaprgb.html"><LINK +REL="NEXT" +TITLE="SDL_GetRGB" +HREF="sdlgetrgb.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmaprgb.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetrgb.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMAPRGBA" +></A +>SDL_MapRGBA</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1687" +></A +><H2 +>Name</H2 +>SDL_MapRGBA -- Map a RGBA color value to a pixel format.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1690" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1691" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_MapRGBA</B +></CODE +>(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b, Uint8 a);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1697" +></A +><H2 +>Description</H2 +><P +>Maps the RGBA color value to the specified pixel format and returns the +pixel value as a 32-bit int.</P +><P +>If the format has a palette (8-bit) the index of the closest matching +color in the palette will be returned.</P +><P +>If the specified pixel format has no alpha component the alpha value +will be ignored (as it will be in formats with a palette).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1702" +></A +><H2 +>Return Value</H2 +><P +>A pixel value best approximating the given RGBA color value for a given +pixel format. If the pixel format bpp (color depth) is less than 32-bpp +then the unused upper bits of the return value can safely be ignored +(e.g., with a 16-bpp format the return value can be assigned to a +<SPAN +CLASS="TYPE" +>Uint16</SPAN +>, and similarly a <SPAN +CLASS="TYPE" +>Uint8</SPAN +> for an 8-bpp +format).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1707" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetrgb.html" +>SDL_GetRGB</A +>, +<A +HREF="sdlgetrgba.html" +>SDL_GetRGBA</A +>, +<A +HREF="sdlmaprgb.html" +>SDL_MapRGB</A +>, +<A +HREF="sdlpixelformat.html" +>SDL_PixelFormat</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmaprgb.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetrgb.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_MapRGB</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetRGB</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmixaudio.html b/distrib/sdl-1.2.15/docs/html/sdlmixaudio.html new file mode 100644 index 0000000..6cbf0f0 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmixaudio.html @@ -0,0 +1,237 @@ +<HTML +><HEAD +><TITLE +>SDL_MixAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ConvertAudio" +HREF="sdlconvertaudio.html"><LINK +REL="NEXT" +TITLE="SDL_LockAudio" +HREF="sdllockaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlconvertaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdllockaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMIXAUDIO" +></A +>SDL_MixAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7107" +></A +><H2 +>Name</H2 +>SDL_MixAudio -- Mix audio data</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7110" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7111" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_MixAudio</B +></CODE +>(Uint8 *dst, Uint8 *src, Uint32 len, int volume);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7117" +></A +><H2 +>Description</H2 +><P +>This function takes two audio buffers of <TT +CLASS="PARAMETER" +><I +>len</I +></TT +> bytes each +of the playing audio format and mixes them, performing addition, volume +adjustment, and overflow clipping. The <TT +CLASS="PARAMETER" +><I +>volume</I +></TT +> ranges +from 0 to <TT +CLASS="LITERAL" +>SDL_MIX_MAXVOLUME</TT +> and should be set to the maximum +value for full audio volume. Note this does not change hardware volume. This is +provided for convenience -- you can mix your own audio data.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Do not use this function for mixing together more than two streams of sample +data. The output from repeated application of this function may be distorted +by clipping, because there is no accumulator with greater range than the +input (not to mention this being an inefficient way of doing it). +Use mixing functions from SDL_mixer, OpenAL, or write your own mixer instead.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7125" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlconvertaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdllockaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ConvertAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_LockAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmousebuttonevent.html b/distrib/sdl-1.2.15/docs/html/sdlmousebuttonevent.html new file mode 100644 index 0000000..b0b40df --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmousebuttonevent.html @@ -0,0 +1,346 @@ +<HTML +><HEAD +><TITLE +>SDL_MouseButtonEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_MouseMotionEvent" +HREF="sdlmousemotionevent.html"><LINK +REL="NEXT" +TITLE="SDL_JoyAxisEvent" +HREF="sdljoyaxisevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmousemotionevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoyaxisevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMOUSEBUTTONEVENT" +></A +>SDL_MouseButtonEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4144" +></A +><H2 +>Name</H2 +>SDL_MouseButtonEvent -- Mouse button event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4147" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 button; + Uint8 state; + Uint16 x, y; +} SDL_MouseButtonEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4150" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4152" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_MOUSEBUTTONDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_MOUSEBUTTONUP</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>button</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_PRESSED</TT +> or <TT +CLASS="LITERAL" +>SDL_RELEASED</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>x</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>y</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The X/Y coordinates of the mouse at press/release time</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4176" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseButtonEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_MOUSEBUTTONDOWN</TT +> or <TT +CLASS="LITERAL" +>SDL_MOUSEBUTTONUP</TT +> is reported.</P +><P +>When a mouse button press or release is detected then number of the button pressed (from 1 to 255, with 1 usually being the left button and 2 the right) is placed into <TT +CLASS="STRUCTFIELD" +><I +>button</I +></TT +>, the position of the mouse when this event occured is stored in the <TT +CLASS="STRUCTFIELD" +><I +>x</I +></TT +> and the <TT +CLASS="STRUCTFIELD" +><I +>y</I +></TT +> fields. Like <A +HREF="sdlkeyboardevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_KeyboardEvent</SPAN +></A +>, information on whether the event was a press or a release event is stored in both the <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +> fields, but this should be obvious.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4192" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlmousemotionevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseMotionEvent</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmousemotionevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoyaxisevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_MouseMotionEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoyAxisEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmousemotionevent.html b/distrib/sdl-1.2.15/docs/html/sdlmousemotionevent.html new file mode 100644 index 0000000..3cc7cb5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmousemotionevent.html @@ -0,0 +1,365 @@ +<HTML +><HEAD +><TITLE +>SDL_MouseMotionEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_KeyboardEvent" +HREF="sdlkeyboardevent.html"><LINK +REL="NEXT" +TITLE="SDL_MouseButtonEvent" +HREF="sdlmousebuttonevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlkeyboardevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmousebuttonevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMOUSEMOTIONEVENT" +></A +>SDL_MouseMotionEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4079" +></A +><H2 +>Name</H2 +>SDL_MouseMotionEvent -- Mouse motion event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4082" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + Uint8 state; + Uint16 x, y; + Sint16 xrel, yrel; +} SDL_MouseMotionEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4085" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4087" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The current button state</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>x</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>y</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The X/Y coordinates of the mouse</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>xrel</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>yrel</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Relative motion in the X/Y direction</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4109" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseMotionEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +> is reported.</P +><P +>Simply put, a <TT +CLASS="LITERAL" +>SDL_MOUSEMOTION</TT +> type event occurs when a user moves the mouse within the application window or when <A +HREF="sdlwarpmouse.html" +><TT +CLASS="FUNCTION" +>SDL_WarpMouse</TT +></A +> is called. Both the absolute (<TT +CLASS="STRUCTFIELD" +><I +>x</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>y</I +></TT +>) and relative (<TT +CLASS="STRUCTFIELD" +><I +>xrel</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>yrel</I +></TT +>) coordinates are reported along with the current button states (<TT +CLASS="STRUCTFIELD" +><I +>state</I +></TT +>). The button state can be interpreted using the <TT +CLASS="LITERAL" +>SDL_BUTTON</TT +> macro (see <A +HREF="sdlgetmousestate.html" +><TT +CLASS="FUNCTION" +>SDL_GetMouseState</TT +></A +>).</P +><P +>If the cursor is hidden (<A +HREF="sdlshowcursor.html" +><TT +CLASS="FUNCTION" +>SDL_ShowCursor</TT +>(0)</A +>) and the input is grabbed (<A +HREF="sdlwmgrabinput.html" +><TT +CLASS="FUNCTION" +>SDL_WM_GrabInput</TT +>(SDL_GRAB_ON)</A +>), then the mouse will give relative motion events even when the cursor reaches the edge fo the screen. This is currently only implemented on Windows and Linux/Unix-a-likes.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4133" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlmousebuttonevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseButtonEvent</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlkeyboardevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmousebuttonevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_KeyboardEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_MouseButtonEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmutexp.html b/distrib/sdl-1.2.15/docs/html/sdlmutexp.html new file mode 100644 index 0000000..fc32ca5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmutexp.html @@ -0,0 +1,241 @@ +<HTML +><HEAD +><TITLE +>SDL_mutexP</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_DestroyMutex" +HREF="sdldestroymutex.html"><LINK +REL="NEXT" +TITLE="SDL_mutexV" +HREF="sdlmutexv.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldestroymutex.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmutexv.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMUTEXP" +></A +>SDL_mutexP</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7872" +></A +><H2 +>Name</H2 +>SDL_mutexP -- Lock a mutex</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7875" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7876" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_mutexP</B +></CODE +>(SDL_mutex *mutex);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7882" +></A +><H2 +>Description</H2 +><P +>Locks the <TT +CLASS="PARAMETER" +><I +>mutex</I +></TT +>, which was previously created with <A +HREF="sdlcreatemutex.html" +><TT +CLASS="FUNCTION" +>SDL_CreateMutex</TT +></A +>. If the mutex is already locked then <TT +CLASS="FUNCTION" +>SDL_mutexP</TT +> will not return until it is <A +HREF="sdlmutexv.html" +>unlocked</A +>. Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +><P +>SDL also defines a macro <TT +CLASS="LITERAL" +>#define SDL_LockMutex(m) SDL_mutexP(m)</TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7894" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatemutex.html" +><TT +CLASS="FUNCTION" +>SDL_CreateMutex</TT +></A +>, +<A +HREF="sdlmutexv.html" +><TT +CLASS="FUNCTION" +>SDL_mutexV</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldestroymutex.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmutexv.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_DestroyMutex</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_mutexV</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlmutexv.html b/distrib/sdl-1.2.15/docs/html/sdlmutexv.html new file mode 100644 index 0000000..06a68bd --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlmutexv.html @@ -0,0 +1,235 @@ +<HTML +><HEAD +><TITLE +>SDL_mutexV</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_mutexP" +HREF="sdlmutexp.html"><LINK +REL="NEXT" +TITLE="SDL_CreateSemaphore" +HREF="sdlcreatesemaphore.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlmutexp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatesemaphore.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLMUTEXV" +></A +>SDL_mutexV</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7905" +></A +><H2 +>Name</H2 +>SDL_mutexV -- Unlock a mutex</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7908" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7909" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_mutexV</B +></CODE +>(SDL_mutex *mutex);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7915" +></A +><H2 +>Description</H2 +><P +>Unlocks the <TT +CLASS="PARAMETER" +><I +>mutex</I +></TT +>, which was previously created with <A +HREF="sdlcreatemutex.html" +><TT +CLASS="FUNCTION" +>SDL_CreateMutex</TT +></A +>. Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success, or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> on an error.</P +><P +>SDL also defines a macro <TT +CLASS="LITERAL" +>#define SDL_UnlockMutex(m) SDL_mutexV(m)</TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7925" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatemutex.html" +><TT +CLASS="FUNCTION" +>SDL_CreateMutex</TT +></A +>, +<A +HREF="sdlmutexp.html" +><TT +CLASS="FUNCTION" +>SDL_mutexP</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlmutexp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatesemaphore.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_mutexP</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateSemaphore</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlnumjoysticks.html b/distrib/sdl-1.2.15/docs/html/sdlnumjoysticks.html new file mode 100644 index 0000000..68e3e3a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlnumjoysticks.html @@ -0,0 +1,222 @@ +<HTML +><HEAD +><TITLE +>SDL_NumJoysticks</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="PREVIOUS" +TITLE="Joystick" +HREF="joystick.html"><LINK +REL="NEXT" +TITLE="SDL_JoystickName" +HREF="sdljoystickname.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="joystick.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdljoystickname.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLNUMJOYSTICKS" +></A +>SDL_NumJoysticks</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6039" +></A +><H2 +>Name</H2 +>SDL_NumJoysticks -- Count available joysticks.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6042" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6043" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_NumJoysticks</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6049" +></A +><H2 +>Description</H2 +><P +>Counts the number of joysticks attached to the system.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6052" +></A +><H2 +>Return Value</H2 +><P +>Returns the number of attached joysticks</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6055" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdljoystickname.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickName</TT +></A +>, +<A +HREF="sdljoystickopen.html" +><TT +CLASS="FUNCTION" +>SDL_JoystickOpen</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdljoystickname.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Joystick</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="joystick.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_JoystickName</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlopenaudio.html b/distrib/sdl-1.2.15/docs/html/sdlopenaudio.html new file mode 100644 index 0000000..bcfed54 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlopenaudio.html @@ -0,0 +1,578 @@ +<HTML +><HEAD +><TITLE +>SDL_OpenAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_AudioSpec" +HREF="sdlaudiospec.html"><LINK +REL="NEXT" +TITLE="SDL_PauseAudio" +HREF="sdlpauseaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlaudiospec.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpauseaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLOPENAUDIO" +></A +>SDL_OpenAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6650" +></A +><H2 +>Name</H2 +>SDL_OpenAudio -- Opens the audio device with the desired parameters.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6653" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6654" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_OpenAudio</B +></CODE +>(SDL_AudioSpec *desired, SDL_AudioSpec *obtained);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6660" +></A +><H2 +>Description</H2 +><P +>This function opens the audio device with the <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +> parameters, and +returns 0 if successful, placing the actual hardware parameters in the +structure pointed to by <TT +CLASS="PARAMETER" +><I +>obtained</I +></TT +>. If <TT +CLASS="PARAMETER" +><I +>obtained</I +></TT +> is NULL, the audio +data passed to the callback function will be guaranteed to be in the +requested format, and will be automatically converted to the hardware +audio format if necessary. This function returns -1 if it failed +to open the audio device, or couldn't set up the audio thread.</P +><P +>To open the audio device a <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +> <A +HREF="sdlaudiospec.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +></A +> must be created. +<PRE +CLASS="PROGRAMLISTING" +>SDL_AudioSpec *desired; +. +. +desired = malloc(sizeof(SDL_AudioSpec));</PRE +> +You must then fill this structure with your desired audio specifications.</P +><P +></P +><DIV +CLASS="VARIABLELIST" +><DL +><DT +><SPAN +CLASS="STRUCTNAME" +>desired</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>freq</I +></TT +></DT +><DD +><P +>The desired audio frequency in samples-per-second.</P +></DD +><DT +><SPAN +CLASS="STRUCTNAME" +>desired</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +></DT +><DD +><P +>The desired audio format (see <A +HREF="sdlaudiospec.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +></A +>)</P +></DD +><DT +><SPAN +CLASS="STRUCTNAME" +>desired</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>samples</I +></TT +></DT +><DD +><P +>The desired size of the audio buffer in samples. This number should be a power of two, and may be adjusted by the audio driver to a value more suitable for the hardware. Good values seem to range between 512 and 8192 inclusive, depending on the application and CPU speed. Smaller values yield faster response time, but can lead to underflow if the application is doing heavy processing and cannot fill the audio buffer in time. A stereo sample consists of both right and left channels in LR ordering. Note that the number of samples is directly related to time by the following formula: ms = (samples*1000)/freq</P +></DD +><DT +><SPAN +CLASS="STRUCTNAME" +>desired</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>callback</I +></TT +></DT +><DD +><P +>This should be set to a function that will be called when the audio device is ready for more data. It is passed a pointer to the audio buffer, and the length in bytes of the audio buffer. This function usually runs in a separate thread, and so you should protect data structures that it accesses by calling <A +HREF="sdllockaudio.html" +><TT +CLASS="FUNCTION" +>SDL_LockAudio</TT +></A +> and <A +HREF="sdlunlockaudio.html" +><TT +CLASS="FUNCTION" +>SDL_UnlockAudio</TT +></A +> in your code. The callback prototype is: +<PRE +CLASS="PROGRAMLISTING" +>void callback(void *userdata, Uint8 *stream, int len);</PRE +> +<TT +CLASS="PARAMETER" +><I +>userdata</I +></TT +> is the pointer stored in <TT +CLASS="STRUCTFIELD" +><I +>userdata</I +></TT +> field of the <SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +>. <TT +CLASS="PARAMETER" +><I +>stream</I +></TT +> is a pointer to the audio buffer you want to fill with information and <TT +CLASS="PARAMETER" +><I +>len</I +></TT +> is the length of the audio buffer in bytes.</P +></DD +><DT +><SPAN +CLASS="STRUCTNAME" +>desired</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>userdata</I +></TT +></DT +><DD +><P +>This pointer is passed as the first parameter to the <TT +CLASS="FUNCTION" +>callback</TT +> function.</P +></DD +></DL +></DIV +><P +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +> reads these fields from the <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +> <SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +> structure pass to the function and attempts to find an audio configuration matching your <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +>. As mentioned above, if the <TT +CLASS="PARAMETER" +><I +>obtained</I +></TT +> parameter is <TT +CLASS="LITERAL" +>NULL</TT +> then SDL with convert from your <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +> audio settings to the hardware settings as it plays.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>obtained</I +></TT +> is <TT +CLASS="LITERAL" +>NULL</TT +> then the <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +> <SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +> is your working specification, otherwise the <TT +CLASS="PARAMETER" +><I +>obtained</I +></TT +> <SPAN +CLASS="STRUCTNAME" +>SDL_AudioSpec</SPAN +> becomes the working specification and the <TT +CLASS="PARAMETER" +><I +>desirec</I +></TT +> specification can be deleted. The data in the working specification is used when building <SPAN +CLASS="STRUCTNAME" +>SDL_AudioCVT</SPAN +>'s for converting loaded data to the hardware format.</P +><P +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +> calculates the <TT +CLASS="STRUCTFIELD" +><I +>size</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>silence</I +></TT +> fields for both the <TT +CLASS="PARAMETER" +><I +>desired</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>obtained</I +></TT +> specifications. The <TT +CLASS="STRUCTFIELD" +><I +>size</I +></TT +> field stores the total size of the audio buffer in bytes, while the <TT +CLASS="STRUCTFIELD" +><I +>silence</I +></TT +> stores the value used to represent silence in the audio buffer</P +><P +>The audio device starts out playing <TT +CLASS="STRUCTFIELD" +><I +>silence</I +></TT +> when it's opened, and should be enabled for playing by calling <A +HREF="sdlpauseaudio.html" +><TT +CLASS="FUNCTION" +>SDL_PauseAudio</TT +>(<TT +CLASS="PARAMETER" +><I +>0</I +></TT +>)</A +> when you are ready for your audio <TT +CLASS="STRUCTFIELD" +><I +>callback</I +></TT +> function to be called. Since the audio driver may modify the requested <TT +CLASS="STRUCTFIELD" +><I +>size</I +></TT +> of the audio buffer, you should allocate any local mixing buffers after you open the audio device.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6747" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +>/* Prototype of our callback function */ +void my_audio_callback(void *userdata, Uint8 *stream, int len); + +/* Open the audio device */ +SDL_AudioSpec *desired, *obtained; +SDL_AudioSpec *hardware_spec; + +/* Allocate a desired SDL_AudioSpec */ +desired = malloc(sizeof(SDL_AudioSpec)); + +/* Allocate space for the obtained SDL_AudioSpec */ +obtained = malloc(sizeof(SDL_AudioSpec)); + +/* 22050Hz - FM Radio quality */ +desired->freq=22050; + +/* 16-bit signed audio */ +desired->format=AUDIO_S16LSB; + +/* Mono */ +desired->channels=0; + +/* Large audio buffer reduces risk of dropouts but increases response time */ +desired->samples=8192; + +/* Our callback function */ +desired->callback=my_audio_callback; + +desired->userdata=NULL; + +/* Open the audio device */ +if ( SDL_OpenAudio(desired, obtained) < 0 ){ + fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError()); + exit(-1); +} +/* desired spec is no longer needed */ +free(desired); +hardware_spec=obtained; +. +. +/* Prepare callback for playing */ +. +. +. +/* Start playing */ +SDL_PauseAudio(0);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6750" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlaudiospec.html" +><TT +CLASS="FUNCTION" +>SDL_AudioSpec</TT +></A +>, +<A +HREF="sdllockaudio.html" +><TT +CLASS="FUNCTION" +>SDL_LockAudio</TT +></A +>, +<A +HREF="sdlunlockaudio.html" +><TT +CLASS="FUNCTION" +>SDL_UnlockAudio</TT +></A +>, +<A +HREF="sdlpauseaudio.html" +><TT +CLASS="FUNCTION" +>SDL_PauseAudio</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlaudiospec.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpauseaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_AudioSpec</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_PauseAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdloverlay.html b/distrib/sdl-1.2.15/docs/html/sdloverlay.html new file mode 100644 index 0000000..422919e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdloverlay.html @@ -0,0 +1,362 @@ +<HTML +><HEAD +><TITLE +>SDL_Overlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_VideoInfo" +HREF="sdlvideoinfo.html"><LINK +REL="NEXT" +TITLE="Window Management" +HREF="wm.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlvideoinfo.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="wm.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLOVERLAY" +></A +>SDL_Overlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3464" +></A +><H2 +>Name</H2 +>SDL_Overlay -- YUV video overlay</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3467" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint32 format; + int w, h; + int planes; + Uint16 *pitches; + Uint8 **pixels; + Uint32 hw_overlay:1; +} SDL_Overlay;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3470" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3472" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Overlay format (see below)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>w, h</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Width and height of overlay</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>planes</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Number of planes in the overlay. Usually either 1 or 3</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>pitches</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>An array of pitches, one for each plane. Pitch is the length of a row in bytes.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>An array of pointers to teh data of each plane. The overlay should be locked before these pointers are used.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>hw_overlay</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>This will be set to 1 if the overlay is hardware accelerated.</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3499" +></A +><H2 +>Description</H2 +><P +>A <SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +> is similar to a <A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +> except it stores a YUV overlay. All the fields are read only, except for <TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +> which should be <A +HREF="sdllockyuvoverlay.html" +>locked</A +> before use. The <TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +> field stores the format of the overlay which is one of the following: +<PRE +CLASS="PROGRAMLISTING" +>#define SDL_YV12_OVERLAY 0x32315659 /* Planar mode: Y + V + U */ +#define SDL_IYUV_OVERLAY 0x56555949 /* Planar mode: Y + U + V */ +#define SDL_YUY2_OVERLAY 0x32595559 /* Packed mode: Y0+U0+Y1+V0 */ +#define SDL_UYVY_OVERLAY 0x59565955 /* Packed mode: U0+Y0+V0+Y1 */ +#define SDL_YVYU_OVERLAY 0x55595659 /* Packed mode: Y0+V0+Y1+U0 */</PRE +> +More information on YUV formats can be found at <A +HREF="http://www.webartz.com/fourcc/indexyuv.htm" +TARGET="_top" +>http://www.webartz.com/fourcc/indexyuv.htm</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3510" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +></A +>, +<A +HREF="sdllockyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_LockYUVOverlay</TT +></A +>, +<A +HREF="sdlunlockyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_UnlockYUVOverlay</TT +></A +>, +<A +HREF="sdlfreeyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_FreeYUVOverlay</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlvideoinfo.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_VideoInfo</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Window Management</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlpalette.html b/distrib/sdl-1.2.15/docs/html/sdlpalette.html new file mode 100644 index 0000000..6498ac4 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpalette.html @@ -0,0 +1,301 @@ +<HTML +><HEAD +><TITLE +>SDL_Palette</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Color" +HREF="sdlcolor.html"><LINK +REL="NEXT" +TITLE="SDL_PixelFormat" +HREF="sdlpixelformat.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcolor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpixelformat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPALETTE" +></A +>SDL_Palette</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3129" +></A +><H2 +>Name</H2 +>SDL_Palette -- Color palette for 8-bit pixel formats</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3132" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + int ncolors; + SDL_Color *colors; +} SDL_Palette;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3135" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3137" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>ncolors</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Number of colors used in this palette</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>colors</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pointer to <A +HREF="sdlcolor.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +></A +> structures that make up the palette.</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3150" +></A +><H2 +>Description</H2 +><P +>Each pixel in an 8-bit surface is an index into the <TT +CLASS="STRUCTFIELD" +><I +>colors</I +></TT +> field of the <SPAN +CLASS="STRUCTNAME" +>SDL_Palette</SPAN +> structure store in <A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +>. A <SPAN +CLASS="STRUCTNAME" +>SDL_Palette</SPAN +> should never need to be created manually. It is automatically created when SDL allocates a <SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +> for a surface. The colors values of a <A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>s palette can be set with the <A +HREF="sdlsetcolors.html" +><TT +CLASS="FUNCTION" +>SDL_SetColors</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3163" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcolor.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>, +<A +HREF="sdlsetcolors.html" +><TT +CLASS="FUNCTION" +>SDL_SetColors</TT +></A +> +<A +HREF="sdlsetpalette.html" +><TT +CLASS="FUNCTION" +>SDL_SetPalette</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcolor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpixelformat.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Color</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_PixelFormat</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlpauseaudio.html b/distrib/sdl-1.2.15/docs/html/sdlpauseaudio.html new file mode 100644 index 0000000..39d5a0f --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpauseaudio.html @@ -0,0 +1,221 @@ +<HTML +><HEAD +><TITLE +>SDL_PauseAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_OpenAudio" +HREF="sdlopenaudio.html"><LINK +REL="NEXT" +TITLE="SDL_GetAudioStatus" +HREF="sdlgetaudiostatus.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlopenaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetaudiostatus.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPAUSEAUDIO" +></A +>SDL_PauseAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN6765" +></A +><H2 +>Name</H2 +>SDL_PauseAudio -- Pauses and unpauses the audio callback processing</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN6768" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN6769" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_PauseAudio</B +></CODE +>(int pause_on);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6775" +></A +><H2 +>Description</H2 +><P +>This function pauses and unpauses the audio callback processing. +It should be called with <TT +CLASS="PARAMETER" +><I +>pause_on</I +></TT +>=0 after opening the audio +device to start playing sound. This is so you can safely initialize +data for your callback function after opening the audio device. +Silence will be written to the audio device during the pause.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN6779" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetaudiostatus.html" +><TT +CLASS="FUNCTION" +>SDL_GetAudioStatus</TT +></A +>, +<A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlopenaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetaudiostatus.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_OpenAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetAudioStatus</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlpeepevents.html b/distrib/sdl-1.2.15/docs/html/sdlpeepevents.html new file mode 100644 index 0000000..d5a0ff6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpeepevents.html @@ -0,0 +1,321 @@ +<HTML +><HEAD +><TITLE +>SDL_PeepEvents</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_PumpEvents" +HREF="sdlpumpevents.html"><LINK +REL="NEXT" +TITLE="SDL_PollEvent" +HREF="sdlpollevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpumpevents.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpollevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPEEPEVENTS" +></A +>SDL_PeepEvents</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5421" +></A +><H2 +>Name</H2 +>SDL_PeepEvents -- Checks the event queue for messages and optionally returns them.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5424" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5425" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_PeepEvents</B +></CODE +>(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5431" +></A +><H2 +>Description</H2 +><P +>Checks the event queue for messages and optionally returns them.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>action</I +></TT +> is <TT +CLASS="LITERAL" +>SDL_ADDEVENT</TT +>, up to +<TT +CLASS="PARAMETER" +><I +>numevents</I +></TT +> events will be added to the back of the event + queue.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>action</I +></TT +> is <TT +CLASS="LITERAL" +>SDL_PEEKEVENT</TT +>, up to +<TT +CLASS="PARAMETER" +><I +>numevents</I +></TT +> events at the front of the event queue, +matching <A +HREF="sdlevent.html" +><TT +CLASS="PARAMETER" +><I +>mask</I +></TT +></A +>, +will be returned and will not be removed from the queue.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>action</I +></TT +> is <TT +CLASS="LITERAL" +>SDL_GETEVENT</TT +>, up to +<TT +CLASS="PARAMETER" +><I +>numevents</I +></TT +> events at the front of the event queue, +matching <A +HREF="sdlevent.html" +><TT +CLASS="PARAMETER" +><I +>mask</I +></TT +></A +>, +will be returned and will be removed from the queue.</P +><P +>The <TT +CLASS="PARAMETER" +><I +>mask</I +></TT +> parameter is an bitwise OR of +<TT +CLASS="LITERAL" +>SDL_EVENTMASK</TT +>(<TT +CLASS="PARAMETER" +><I +>event_type</I +></TT +>), for all +event types you are interested in.</P +><P +>This function is thread-safe.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5455" +></A +><H2 +>Return Value</H2 +><P +>This function returns the number of events actually stored, or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if there was an error. </P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5459" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +>, +<A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpumpevents.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpollevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_PumpEvents</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_PollEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlpixelformat.html b/distrib/sdl-1.2.15/docs/html/sdlpixelformat.html new file mode 100644 index 0000000..000ddc0 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpixelformat.html @@ -0,0 +1,528 @@ +<HTML +><HEAD +><TITLE +>SDL_PixelFormat</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Palette" +HREF="sdlpalette.html"><LINK +REL="NEXT" +TITLE="SDL_Surface" +HREF="sdlsurface.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpalette.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPIXELFORMAT" +></A +>SDL_PixelFormat</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3178" +></A +><H2 +>Name</H2 +>SDL_PixelFormat -- Stores surface format information</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3181" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct SDL_PixelFormat { + SDL_Palette *palette; + Uint8 BitsPerPixel; + Uint8 BytesPerPixel; + Uint8 Rloss, Gloss, Bloss, Aloss; + Uint8 Rshift, Gshift, Bshift, Ashift; + Uint32 Rmask, Gmask, Bmask, Amask; + Uint32 colorkey; + Uint8 alpha; +} SDL_PixelFormat;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3184" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3186" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>palette</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pointer to the <A +HREF="sdlpalette.html" +>palette</A +>, or <TT +CLASS="LITERAL" +>NULL</TT +> if the <TT +CLASS="STRUCTFIELD" +><I +>BitsPerPixel</I +></TT +>>8</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>BitsPerPixel</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The number of bits used to represent each pixel in a surface. Usually 8, 16, 24 or 32.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>BytesPerPixel</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The number of bytes used to represent each pixel in a surface. Usually one to four.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>[RGBA]mask</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Binary mask used to retrieve individual color values</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>[RGBA]loss</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Precision loss of each color component (2<SUP +>[RGBA]loss</SUP +>)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>[RGBA]shift</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Binary left shift of each color component in the pixel value</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>colorkey</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pixel value of transparent pixels</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>alpha</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Overall surface alpha value</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3225" +></A +><H2 +>Description</H2 +><P +>A <SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +> describes the format of the pixel data stored at the <TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +> field of a <A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>. Every surface stores a <SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +> in the <TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +> field.</P +><P +>If you wish to do pixel level modifications on a surface, then understanding how SDL stores its color information is essential.</P +><P +>8-bit pixel formats are the easiest to understand. Since its an 8-bit format, we have 8 <TT +CLASS="STRUCTFIELD" +><I +>BitsPerPixel</I +></TT +> and 1 <TT +CLASS="STRUCTFIELD" +><I +>BytesPerPixel</I +></TT +>. Since <TT +CLASS="STRUCTFIELD" +><I +>BytesPerPixel</I +></TT +> is 1, all pixels are represented by a Uint8 which contains an index into <TT +CLASS="STRUCTFIELD" +><I +>palette</I +></TT +>-><TT +CLASS="STRUCTFIELD" +><I +>colors</I +></TT +>. So, to determine the color of a pixel in a 8-bit surface: we read the color index from <SPAN +CLASS="STRUCTNAME" +>surface</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +> and we use that index to read the <A +HREF="sdlcolor.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +></A +> structure from <SPAN +CLASS="STRUCTNAME" +>surface</SPAN +>-><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +>-><TT +CLASS="STRUCTFIELD" +><I +>palette</I +></TT +>-><TT +CLASS="STRUCTFIELD" +><I +>colors</I +></TT +>. Like so: +<PRE +CLASS="PROGRAMLISTING" +>SDL_Surface *surface; +SDL_PixelFormat *fmt; +SDL_Color *color; +Uint8 index; + +. +. + +/* Create surface */ +. +. +fmt=surface->format; + +/* Check the bitdepth of the surface */ +if(fmt->BitsPerPixel!=8){ + fprintf(stderr, "Not an 8-bit surface.\n"); + return(-1); +} + +/* Lock the surface */ +SDL_LockSurface(surface); + +/* Get the topleft pixel */ +index=*(Uint8 *)surface->pixels; +color=fmt->palette->colors[index]; + +/* Unlock the surface */ +SDL_UnlockSurface(surface); +printf("Pixel Color-> Red: %d, Green: %d, Blue: %d. Index: %d\n", + color->r, color->g, color->b, index); +. +.</PRE +></P +><P +>Pixel formats above 8-bit are an entirely different experience. They are +considered to be "TrueColor" formats and the color information is stored in the +pixels themselves, not in a palette. The mask, shift and loss fields tell us +how the color information is encoded. The mask fields allow us to isolate each +color component, the shift fields tell us the number of bits to the right of +each component in the pixel value and the loss fields tell us the number of +bits lost from each component when packing 8-bit color component in a pixel. +<PRE +CLASS="PROGRAMLISTING" +>/* Extracting color components from a 32-bit color value */ +SDL_PixelFormat *fmt; +SDL_Surface *surface; +Uint32 temp, pixel; +Uint8 red, green, blue, alpha; +. +. +. +fmt=surface->format; +SDL_LockSurface(surface); +pixel=*((Uint32*)surface->pixels); +SDL_UnlockSurface(surface); + +/* Get Red component */ +temp=pixel&fmt->Rmask; /* Isolate red component */ +temp=temp>>fmt->Rshift;/* Shift it down to 8-bit */ +temp=temp<<fmt->Rloss; /* Expand to a full 8-bit number */ +red=(Uint8)temp; + +/* Get Green component */ +temp=pixel&fmt->Gmask; /* Isolate green component */ +temp=temp>>fmt->Gshift;/* Shift it down to 8-bit */ +temp=temp<<fmt->Gloss; /* Expand to a full 8-bit number */ +green=(Uint8)temp; + +/* Get Blue component */ +temp=pixel&fmt->Bmask; /* Isolate blue component */ +temp=temp>>fmt->Bshift;/* Shift it down to 8-bit */ +temp=temp<<fmt->Bloss; /* Expand to a full 8-bit number */ +blue=(Uint8)temp; + +/* Get Alpha component */ +temp=pixel&fmt->Amask; /* Isolate alpha component */ +temp=temp>>fmt->Ashift;/* Shift it down to 8-bit */ +temp=temp<<fmt->Aloss; /* Expand to a full 8-bit number */ +alpha=(Uint8)temp; + +printf("Pixel Color -> R: %d, G: %d, B: %d, A: %d\n", red, green, blue, alpha); +. +. +.</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3252" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>, +<A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGB</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpalette.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Palette</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Surface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +> diff --git a/distrib/sdl-1.2.15/docs/html/sdlpollevent.html b/distrib/sdl-1.2.15/docs/html/sdlpollevent.html new file mode 100644 index 0000000..f97c22d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpollevent.html @@ -0,0 +1,269 @@ +<HTML +><HEAD +><TITLE +>SDL_PollEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_PeepEvents" +HREF="sdlpeepevents.html"><LINK +REL="NEXT" +TITLE="SDL_WaitEvent" +HREF="sdlwaitevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpeepevents.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwaitevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPOLLEVENT" +></A +>SDL_PollEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5472" +></A +><H2 +>Name</H2 +>SDL_PollEvent -- Polls for currently pending events.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5475" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5476" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_PollEvent</B +></CODE +>(SDL_Event *event);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5482" +></A +><H2 +>Description</H2 +><P +>Polls for currently pending events, and returns <SPAN +CLASS="RETURNVALUE" +>1</SPAN +> +if there are any pending events, or <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if there +are none available. </P +><P +>If <TT +CLASS="PARAMETER" +><I +>event</I +></TT +> is not <TT +CLASS="LITERAL" +>NULL</TT +>, the next +event is removed from the queue and stored in that area.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5490" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_Event event; /* Event structure */ + +. +. +. +/* Check for events */ +while(SDL_PollEvent(&event)){ /* Loop until there are no events left on the queue */ + switch(event.type){ /* Process the appropiate event type */ + case SDL_KEYDOWN: /* Handle a KEYDOWN event */ + printf("Oh! Key press\n"); + break; + case SDL_MOUSEMOTION: + . + . + . + default: /* Report an unhandled event */ + printf("I don't know what this event is!\n"); + } +}</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5494" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlwaitevent.html" +><TT +CLASS="FUNCTION" +>SDL_WaitEvent</TT +></A +>, +<A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpeepevents.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwaitevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_PeepEvents</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WaitEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlpumpevents.html b/distrib/sdl-1.2.15/docs/html/sdlpumpevents.html new file mode 100644 index 0000000..a7e528f --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpumpevents.html @@ -0,0 +1,244 @@ +<HTML +><HEAD +><TITLE +>SDL_PumpEvents</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="NEXT" +TITLE="SDL_PeepEvents" +HREF="sdlpeepevents.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="eventfunctions.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpeepevents.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPUMPEVENTS" +></A +>SDL_PumpEvents</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5387" +></A +><H2 +>Name</H2 +>SDL_PumpEvents -- Pumps the event loop, gathering events from the input devices.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5390" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5391" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_PumpEvents</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5397" +></A +><H2 +>Description</H2 +><P +>Pumps the event loop, gathering events from the input devices.</P +><P +><TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +> gathers all the pending input information from devices and places it on the event queue. Without calls to <TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +> no events would ever be placed on the queue. Often calls the need for <TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +> is hidden from the user since <A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +> and <A +HREF="sdlwaitevent.html" +><TT +CLASS="FUNCTION" +>SDL_WaitEvent</TT +></A +> implicitly call <TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +>. However, if you are not polling or waiting for events (e.g. you are filtering them), then you must call <TT +CLASS="FUNCTION" +>SDL_PumpEvents</TT +> to force an event queue update.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>You can only call this function in the thread that set the video mode.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5412" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpeepevents.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Event Functions.</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_PeepEvents</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlpushevent.html b/distrib/sdl-1.2.15/docs/html/sdlpushevent.html new file mode 100644 index 0000000..6905385 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlpushevent.html @@ -0,0 +1,266 @@ +<HTML +><HEAD +><TITLE +>SDL_PushEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WaitEvent" +HREF="sdlwaitevent.html"><LINK +REL="NEXT" +TITLE="SDL_SetEventFilter" +HREF="sdlseteventfilter.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwaitevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlseteventfilter.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLPUSHEVENT" +></A +>SDL_PushEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5536" +></A +><H2 +>Name</H2 +>SDL_PushEvent -- Pushes an event onto the event queue</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5539" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5540" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_PushEvent</B +></CODE +>(SDL_Event *event);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5546" +></A +><H2 +>Description</H2 +><P +>The event queue can actually be used as a two way communication channel. Not only can events be read from the queue, but the user can also push their own events onto it. <TT +CLASS="PARAMETER" +><I +>event</I +></TT +> is a pointer to the event structure you wish to push onto the queue.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Pushing device input events onto the queue doesn't modify the state of the device within SDL.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5552" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on success or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if the event couldn't be pushed.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5557" +></A +><H2 +>Examples</H2 +><P +>See <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5562" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +>, +<A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +>, +<A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwaitevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlseteventfilter.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WaitEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetEventFilter</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlquit.html b/distrib/sdl-1.2.15/docs/html/sdlquit.html new file mode 100644 index 0000000..1f31c82 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlquit.html @@ -0,0 +1,244 @@ +<HTML +><HEAD +><TITLE +>SDL_Quit</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="SDL_QuitSubSystem" +HREF="sdlquitsubsystem.html"><LINK +REL="NEXT" +TITLE="SDL_WasInit" +HREF="sdlwasinit.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlquitsubsystem.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwasinit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLQUIT" +></A +>SDL_Quit</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN585" +></A +><H2 +>Name</H2 +>SDL_Quit -- Shut down SDL</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN588" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN589" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_Quit</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN595" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_Quit</TT +> shuts down all SDL subsystems and frees the resources allocated to them. This should always be called before you exit. For the sake of simplicity you can set <TT +CLASS="FUNCTION" +>SDL_Quit</TT +> as your <TT +CLASS="FUNCTION" +>atexit</TT +> call, like: +<PRE +CLASS="PROGRAMLISTING" +>SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO); +atexit(SDL_Quit); +. +.</PRE +></P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>While using <TT +CLASS="FUNCTION" +>atexit</TT +> maybe be fine for small programs, more advanced users should shut down SDL in their own cleanup code. Plus, using <TT +CLASS="FUNCTION" +>atexit</TT +> in a library is a sure way to crash dynamically loaded code</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN606" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlquitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_QuitSubsystem</TT +></A +>, +<A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlquitsubsystem.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwasinit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_QuitSubSystem</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WasInit</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlquitevent.html b/distrib/sdl-1.2.15/docs/html/sdlquitevent.html new file mode 100644 index 0000000..d575f38 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlquitevent.html @@ -0,0 +1,263 @@ +<HTML +><HEAD +><TITLE +>SDL_QuitEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_UserEvent" +HREF="sdluserevent.html"><LINK +REL="NEXT" +TITLE="SDL_keysym" +HREF="sdlkeysym.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdluserevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlkeysym.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLQUITEVENT" +></A +>SDL_QuitEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4621" +></A +><H2 +>Name</H2 +>SDL_QuitEvent -- Quit requested event</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4624" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type +} SDL_QuitEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4627" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4629" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_QUIT</TT +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4637" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_QuitEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used whan an event of type <TT +CLASS="LITERAL" +>SDL_QUIT</TT +> is reported.</P +><P +>As can be seen, the SDL_QuitEvent structure serves no useful purpose. The event itself, on the other hand, is very important. If you filter out or ignore a quit event then it is impossible for the user to close the window. On the other hand, if you do accept a quit event then the application window will be closed, and screen updates will still report success event though the application will no longer be visible.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>The macro <TT +CLASS="FUNCTION" +>SDL_QuitRequested</TT +> will return non-zero if a quit event is pending</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4648" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlseteventfilter.html" +><TT +CLASS="FUNCTION" +>SDL_SetEventFilter</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdluserevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlkeysym.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_UserEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_keysym</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlquitsubsystem.html b/distrib/sdl-1.2.15/docs/html/sdlquitsubsystem.html new file mode 100644 index 0000000..877e3ce --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlquitsubsystem.html @@ -0,0 +1,248 @@ +<HTML +><HEAD +><TITLE +>SDL_QuitSubSystem</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="SDL_InitSubSystem" +HREF="sdlinitsubsystem.html"><LINK +REL="NEXT" +TITLE="SDL_Quit" +HREF="sdlquit.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlinitsubsystem.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlquit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLQUITSUBSYSTEM" +></A +>SDL_QuitSubSystem</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN550" +></A +><H2 +>Name</H2 +>SDL_QuitSubSystem -- Shut down a subsystem</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN553" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN554" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_QuitSubSystem</B +></CODE +>(Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN560" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_QuitSubSystem</TT +> allows you to shut down a subsystem that has been previously initialized by <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +> or <A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +></A +>. The <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> tells <TT +CLASS="FUNCTION" +>SDL_QuitSubSystem</TT +> which subsystems to shut down, it uses the same values that are passed to <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN572" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlquit.html" +><TT +CLASS="FUNCTION" +>SDL_Quit</TT +></A +>, +<A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>, +<A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlinitsubsystem.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlquit.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_InitSubSystem</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Quit</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlrect.html b/distrib/sdl-1.2.15/docs/html/sdlrect.html new file mode 100644 index 0000000..ba4a80b --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlrect.html @@ -0,0 +1,258 @@ +<HTML +><HEAD +><TITLE +>SDL_Rect</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GLattr" +HREF="sdlglattr.html"><LINK +REL="NEXT" +TITLE="SDL_Color" +HREF="sdlcolor.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlglattr.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcolor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLRECT" +></A +>SDL_Rect</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3046" +></A +><H2 +>Name</H2 +>SDL_Rect -- Defines a rectangular area</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3049" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Sint16 x, y; + Uint16 w, h; +} SDL_Rect;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3052" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3054" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>x, y</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Position of the upper-left corner of the rectangle</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>w, h</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>The width and height of the rectangle</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3065" +></A +><H2 +>Description</H2 +><P +>A <SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +> defines a rectangular area of pixels. It is used by <A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +> to define blitting regions and by several other video functions.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3071" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +>, +<A +HREF="sdlupdaterect.html" +><TT +CLASS="FUNCTION" +>SDL_UpdateRect</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlglattr.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcolor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GLattr</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Color</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlremovetimer.html b/distrib/sdl-1.2.15/docs/html/sdlremovetimer.html new file mode 100644 index 0000000..26a3d11 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlremovetimer.html @@ -0,0 +1,236 @@ +<HTML +><HEAD +><TITLE +>SDL_RemoveTimer</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Time" +HREF="time.html"><LINK +REL="PREVIOUS" +TITLE="SDL_AddTimer" +HREF="sdladdtimer.html"><LINK +REL="NEXT" +TITLE="SDL_SetTimer" +HREF="sdlsettimer.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdladdtimer.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsettimer.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLREMOVETIMER" +></A +>SDL_RemoveTimer</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8526" +></A +><H2 +>Name</H2 +>SDL_RemoveTimer -- Remove a timer which was added with +<A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +>.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8530" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8531" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_bool <B +CLASS="FSFUNC" +>SDL_RemoveTimer</B +></CODE +>(SDL_TimerID id);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8537" +></A +><H2 +>Description</H2 +><P +>Removes a timer callback previously added with +<A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8541" +></A +><H2 +>Return Value</H2 +><P +>Returns a boolean value indicating success.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8544" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_RemoveTimer(my_timer_id);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8548" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdladdtimer.html" +><TT +CLASS="FUNCTION" +>SDL_AddTimer</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdladdtimer.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsettimer.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_AddTimer</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetTimer</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlresizeevent.html b/distrib/sdl-1.2.15/docs/html/sdlresizeevent.html new file mode 100644 index 0000000..1d446a5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlresizeevent.html @@ -0,0 +1,307 @@ +<HTML +><HEAD +><TITLE +>SDL_ResizeEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_JoyBallEvent" +HREF="sdljoyballevent.html"><LINK +REL="NEXT" +TITLE="SDL_ExposeEvent" +HREF="sdlexposeevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdljoyballevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlexposeevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLRESIZEEVENT" +></A +>SDL_ResizeEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4453" +></A +><H2 +>Name</H2 +>SDL_ResizeEvent -- Window resize event structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4456" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + int w, h; +} SDL_ResizeEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4459" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4461" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_VIDEORESIZE</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>w</I +></TT +>, <TT +CLASS="STRUCTFIELD" +><I +>h</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>New width and height of the window</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4474" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_ResizeEvent</SPAN +> is a member of the <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +> union and is used when an event of type <TT +CLASS="LITERAL" +>SDL_VIDEORESIZE</TT +> is reported.</P +><P +>When <TT +CLASS="LITERAL" +>SDL_RESIZABLE</TT +> is passed as a <TT +CLASS="PARAMETER" +><I +>flag</I +></TT +> to <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +> the user is allowed to resize the applications window. When the window is resized an <TT +CLASS="LITERAL" +>SDL_VIDEORESIZE</TT +> is report, with the new window width and height values stored in <TT +CLASS="STRUCTFIELD" +><I +>w</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>h</I +></TT +>, respectively. When an <TT +CLASS="LITERAL" +>SDL_VIDEORESIZE</TT +> is recieved the window should be resized to the new dimensions using <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4492" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdljoyballevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlexposeevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_JoyBallEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ExposeEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsavebmp.html b/distrib/sdl-1.2.15/docs/html/sdlsavebmp.html new file mode 100644 index 0000000..4c318ed --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsavebmp.html @@ -0,0 +1,236 @@ +<HTML +><HEAD +><TITLE +>SDL_SaveBMP</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_LoadBMP" +HREF="sdlloadbmp.html"><LINK +REL="NEXT" +TITLE="SDL_SetColorKey" +HREF="sdlsetcolorkey.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlloadbmp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetcolorkey.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSAVEBMP" +></A +>SDL_SaveBMP</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2015" +></A +><H2 +>Name</H2 +>SDL_SaveBMP -- Save an SDL_Surface as a Windows BMP file.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2018" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2019" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SaveBMP</B +></CODE +>(SDL_Surface *surface, const char *file);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2025" +></A +><H2 +>Description</H2 +><P +>Saves the <SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +> <TT +CLASS="PARAMETER" +><I +>surface</I +></TT +> as a Windows BMP file named <TT +CLASS="PARAMETER" +><I +>file</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2031" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if successful or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> +if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2036" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlloadbmp.html" +><TT +CLASS="FUNCTION" +>SDL_LoadBMP</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlloadbmp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetcolorkey.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_LoadBMP</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetColorKey</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsempost.html b/distrib/sdl-1.2.15/docs/html/sdlsempost.html new file mode 100644 index 0000000..18fb01a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsempost.html @@ -0,0 +1,299 @@ +<HTML +><HEAD +><TITLE +>SDL_SemPost</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SemWaitTimeout" +HREF="sdlsemwaittimeout.html"><LINK +REL="NEXT" +TITLE="SDL_SemValue" +HREF="sdlsemvalue.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsemwaittimeout.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsemvalue.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSEMPOST" +></A +>SDL_SemPost</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8170" +></A +><H2 +>Name</H2 +>SDL_SemPost -- Unlock a semaphore.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8173" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8174" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SemPost</B +></CODE +>(SDL_sem *sem);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8180" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +> unlocks the semaphore pointed to by +<TT +CLASS="PARAMETER" +><I +>sem</I +></TT +> and atomically increments the semaphores value. +Threads that were blocking on the semaphore may be scheduled after this call +succeeds.</P +><P +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +> should be called after a semaphore is locked by a successful call to +<A +HREF="sdlsemwait.html" +>SDL_SemWait</A +>, +<A +HREF="sdlsemtrywait.html" +>SDL_SemTryWait</A +> or +<A +HREF="sdlsemwaittimeout.html" +>SDL_SemWaitTimeout</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8190" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if successful or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if there was an error (leaving the semaphore unchanged).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8195" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_SemPost(my_sem);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8199" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>, +<A +HREF="sdldestroysemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +></A +>, +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>, +<A +HREF="sdlsemtrywait.html" +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +></A +>, +<A +HREF="sdlsemwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout</TT +></A +>, +<A +HREF="sdlsemvalue.html" +><TT +CLASS="FUNCTION" +>SDL_SemValue</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsemwaittimeout.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsemvalue.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SemWaitTimeout</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SemValue</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsemtrywait.html b/distrib/sdl-1.2.15/docs/html/sdlsemtrywait.html new file mode 100644 index 0000000..86f47a1 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsemtrywait.html @@ -0,0 +1,319 @@ +<HTML +><HEAD +><TITLE +>SDL_SemTryWait</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SemWait" +HREF="sdlsemwait.html"><LINK +REL="NEXT" +TITLE="SDL_SemWaitTimeout" +HREF="sdlsemwaittimeout.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsemwait.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsemwaittimeout.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSEMTRYWAIT" +></A +>SDL_SemTryWait</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8069" +></A +><H2 +>Name</H2 +>SDL_SemTryWait -- Attempt to lock a semaphore but don't suspend the thread.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8072" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8073" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SemTryWait</B +></CODE +>(SDL_sem *sem);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8079" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +> is a non-blocking varient of +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>. If the value of the semaphore +pointed to by <TT +CLASS="PARAMETER" +><I +>sem</I +></TT +> is positive it will atomically +decrement the semaphore value and return 0, otherwise it will return +<SPAN +CLASS="RETURNVALUE" +>SDL_MUTEX_TIMEDOUT</SPAN +> instead of suspending the thread.</P +><P +>After <TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +> is successful, the semaphore +can be released and its count atomically incremented by a successful call to +<A +HREF="sdlsempost.html" +>SDL_SemPost</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8090" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if the semaphore was successfully locked or +either <SPAN +CLASS="RETURNVALUE" +>SDL_MUTEX_TIMEDOUT</SPAN +> or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> +if the thread would have suspended or there was an error, respectivly.</P +><P +>If the semaphore was not successfully locked, the semaphore will be unchanged.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8097" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>res = SDL_SemTryWait(my_sem); + +if (res == SDL_MUTEX_TIMEDOUT) { + return TRY_AGAIN; +} +if (res == -1) { + return WAIT_ERROR; +} + +... + +SDL_SemPost(my_sem);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8101" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>, +<A +HREF="sdldestroysemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +></A +>, +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>, +<A +HREF="sdlsemwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout</TT +></A +>, +<A +HREF="sdlsempost.html" +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +></A +>, +<A +HREF="sdlsemvalue.html" +><TT +CLASS="FUNCTION" +>SDL_SemValue</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsemwait.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsemwaittimeout.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SemWait</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SemWaitTimeout</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsemvalue.html b/distrib/sdl-1.2.15/docs/html/sdlsemvalue.html new file mode 100644 index 0000000..7867369 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsemvalue.html @@ -0,0 +1,273 @@ +<HTML +><HEAD +><TITLE +>SDL_SemValue</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SemPost" +HREF="sdlsempost.html"><LINK +REL="NEXT" +TITLE="SDL_CreateCond" +HREF="sdlcreatecond.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsempost.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatecond.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSEMVALUE" +></A +>SDL_SemValue</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8218" +></A +><H2 +>Name</H2 +>SDL_SemValue -- Return the current value of a semaphore.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8221" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8222" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL/SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_SemValue</B +></CODE +>(SDL_sem *sem);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8228" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_SemValue()</TT +> returns the current semaphore value from +the semaphore pointed to by <TT +CLASS="PARAMETER" +><I +>sem</I +></TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8233" +></A +><H2 +>Return Value</H2 +><P +>Returns current value of the semaphore.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8236" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +> sem_value = SDL_SemValue(my_sem);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8240" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>, +<A +HREF="sdldestroysemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +></A +>, +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>, +<A +HREF="sdlsemtrywait.html" +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +></A +>, +<A +HREF="sdlsemwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout</TT +></A +>, +<A +HREF="sdlsempost.html" +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsempost.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatecond.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SemPost</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateCond</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsemwait.html b/distrib/sdl-1.2.15/docs/html/sdlsemwait.html new file mode 100644 index 0000000..5e98d55 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsemwait.html @@ -0,0 +1,298 @@ +<HTML +><HEAD +><TITLE +>SDL_SemWait</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_DestroySemaphore" +HREF="sdldestroysemaphore.html"><LINK +REL="NEXT" +TITLE="SDL_SemTryWait" +HREF="sdlsemtrywait.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldestroysemaphore.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsemtrywait.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSEMWAIT" +></A +>SDL_SemWait</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8023" +></A +><H2 +>Name</H2 +>SDL_SemWait -- Lock a semaphore and suspend the thread if the semaphore value is zero.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8026" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8027" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SemWait</B +></CODE +>(SDL_sem *sem);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8033" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_SemWait()</TT +> suspends the calling thread until either +the semaphore pointed to by <TT +CLASS="PARAMETER" +><I +>sem</I +></TT +> has a positive value, +the call is interrupted by a signal or error. If the call is successful it +will atomically decrement the semaphore value.</P +><P +>After <TT +CLASS="FUNCTION" +>SDL_SemWait()</TT +> is successful, the semaphore +can be released and its count atomically incremented by a successful call to +<A +HREF="sdlsempost.html" +>SDL_SemPost</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8041" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if successful or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if there was an error (leaving the semaphore unchanged).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8046" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>if (SDL_SemWait(my_sem) == -1) { + return WAIT_FAILED; +} + +... + +SDL_SemPost(my_sem);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8050" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>, +<A +HREF="sdldestroysemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +></A +>, +<A +HREF="sdlsemtrywait.html" +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +></A +>, +<A +HREF="sdlsemwaittimeout.html" +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout</TT +></A +>, +<A +HREF="sdlsempost.html" +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +></A +>, +<A +HREF="sdlsemvalue.html" +><TT +CLASS="FUNCTION" +>SDL_SemValue</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldestroysemaphore.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsemtrywait.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_DestroySemaphore</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SemTryWait</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsemwaittimeout.html b/distrib/sdl-1.2.15/docs/html/sdlsemwaittimeout.html new file mode 100644 index 0000000..788f5b7 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsemwaittimeout.html @@ -0,0 +1,322 @@ +<HTML +><HEAD +><TITLE +>SDL_SemWaitTimeout</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SemTryWait" +HREF="sdlsemtrywait.html"><LINK +REL="NEXT" +TITLE="SDL_SemPost" +HREF="sdlsempost.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsemtrywait.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsempost.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSEMWAITTIMEOUT" +></A +>SDL_SemWaitTimeout</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8120" +></A +><H2 +>Name</H2 +>SDL_SemWaitTimeout -- Lock a semaphore, but only wait up to a specified maximum time.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8123" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8124" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SemWaitTimeout</B +></CODE +>(SDL_sem *sem, Uint32 timeout);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8130" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout()</TT +> is a varient of +<A +HREF="sdlsemwait.html" +>SDL_SemWait</A +> +with a maximum timeout value. +If the value of the semaphore pointed to by <TT +CLASS="PARAMETER" +><I +>sem</I +></TT +> is +positive (greater than zero) it will atomically decrement the semaphore value +and return 0, otherwise it will wait up to <TT +CLASS="PARAMETER" +><I +>timeout</I +></TT +> +milliseconds trying to lock the semaphore. This function is to be avoided if +possible since on some platforms it is implemented by polling the semaphore +every millisecond in a busy loop.</P +><P +>After <TT +CLASS="FUNCTION" +>SDL_SemWaitTimeout()</TT +> is successful, the semaphore +can be released and its count atomically incremented by a successful call to +<A +HREF="sdlsempost.html" +>SDL_SemPost</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8140" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if the semaphore was successfully locked or +either <SPAN +CLASS="RETURNVALUE" +>SDL_MUTEX_TIMEDOUT</SPAN +> or <SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> +if the timeout period was exceeded or there was an error, respectivly.</P +><P +>If the semaphore was not successfully locked, the semaphore will be unchanged.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8147" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>res = SDL_SemWaitTimeout(my_sem, WAIT_TIMEOUT_MILLISEC); + +if (res == SDL_MUTEX_TIMEDOUT) { + return TRY_AGAIN; +} +if (res == -1) { + return WAIT_ERROR; +} + +... + +SDL_SemPost(my_sem);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8151" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatesemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_CreateSemaphore</TT +></A +>, +<A +HREF="sdldestroysemaphore.html" +><TT +CLASS="FUNCTION" +>SDL_DestroySemaphore</TT +></A +>, +<A +HREF="sdlsemwait.html" +><TT +CLASS="FUNCTION" +>SDL_SemWait</TT +></A +>, +<A +HREF="sdlsemtrywait.html" +><TT +CLASS="FUNCTION" +>SDL_SemTryWait</TT +></A +>, +<A +HREF="sdlsempost.html" +><TT +CLASS="FUNCTION" +>SDL_SemPost</TT +></A +>, +<A +HREF="sdlsemvalue.html" +><TT +CLASS="FUNCTION" +>SDL_SemValue</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsemtrywait.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsempost.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SemTryWait</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SemPost</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetalpha.html b/distrib/sdl-1.2.15/docs/html/sdlsetalpha.html new file mode 100644 index 0000000..fc84498 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetalpha.html @@ -0,0 +1,500 @@ +<HTML +><HEAD +><TITLE +>SDL_SetAlpha</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetColorKey" +HREF="sdlsetcolorkey.html"><LINK +REL="NEXT" +TITLE="SDL_SetClipRect" +HREF="sdlsetcliprect.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetcolorkey.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetcliprect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETALPHA" +></A +>SDL_SetAlpha</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2096" +></A +><H2 +>Name</H2 +>SDL_SetAlpha -- Adjust the alpha properties of a surface</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2099" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2100" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetAlpha</B +></CODE +>(SDL_Surface *surface, Uint32 flag, Uint8 alpha);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2106" +></A +><H2 +>Description</H2 +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>This function and the semantics of SDL alpha blending have changed since version 1.1.4. Up until version 1.1.5, an alpha value of 0 was considered opaque and a value of 255 was considered transparent. This has now been inverted: 0 (<TT +CLASS="LITERAL" +>SDL_ALPHA_TRANSPARENT</TT +>) is now considered transparent and 255 (<TT +CLASS="LITERAL" +>SDL_ALPHA_OPAQUE</TT +>) is now considered opaque.</P +></BLOCKQUOTE +></DIV +><P +><TT +CLASS="FUNCTION" +>SDL_SetAlpha</TT +> is used for setting the per-surface alpha +value and/or enabling and disabling alpha blending.</P +><P +>The<TT +CLASS="PARAMETER" +><I +>surface</I +></TT +> parameter specifies which surface whose alpha +attributes you wish to adjust. <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> is used to specify +whether alpha blending should be used (<TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +>) and +whether the surface should use RLE acceleration for blitting +(<TT +CLASS="LITERAL" +>SDL_RLEACCEL</TT +>). <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> can be an OR'd +combination of these two options, one of these options or 0. If +<TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +> is not passed as a flag then all alpha +information is ignored when blitting the surface. The +<TT +CLASS="PARAMETER" +><I +>alpha</I +></TT +> parameter is the per-surface alpha value; a +surface need not have an alpha channel to use per-surface alpha and blitting +can still be accelerated with <TT +CLASS="LITERAL" +>SDL_RLEACCEL</TT +>.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>The per-surface alpha value of 128 is considered a special case and +is optimised, so it's much faster than other per-surface values.</P +></BLOCKQUOTE +></DIV +><P +>Alpha effects surface blitting in the following ways:</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN2126" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGBA->RGB with <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The source is alpha-blended with the destination, using the alpha channel. <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> and the per-surface alpha are ignored.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGBA->RGB without <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The RGB data is copied from the source. The source alpha channel and the per-surface alpha value are ignored.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGB->RGBA with <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The source is alpha-blended with the destination using the per-surface alpha +value. If <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> is set, only the pixels not +matching the colorkey value are copied. The alpha channel of the copied pixels +is set to opaque.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGB->RGBA without <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The RGB data is copied from the source and the alpha value of the copied pixels +is set to opaque. If <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> is set, only the pixels +not matching the colorkey value are copied. </P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGBA->RGBA with <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The source is alpha-blended with the destination using the source alpha +channel. The alpha channel in the destination surface is left untouched. +<TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> is ignored.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGBA->RGBA without <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The RGBA data is copied to the destination surface. If <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> is set, only the pixels not matching the colorkey value are copied.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGB->RGB with <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The source is alpha-blended with the destination using the per-surface alpha value. If <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> is set, only the pixels not matching the colorkey value are copied.</P +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +>RGB->RGB without <TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><P +>The RGB data is copied from the source. If <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> is set, only the pixels not matching the colorkey value are copied.</P +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +> Note that RGBA->RGBA blits (with SDL_SRCALPHA set) keep the alpha +of the destination surface. This means that you cannot compose two arbitrary +RGBA surfaces this way and get the result you would expect from "overlaying" +them; the destination alpha will work as a mask.</P +><P +>Also note that per-pixel and per-surface alpha cannot be combined; +the per-pixel alpha is always used if available</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2179" +></A +><H2 +>Return Value</H2 +><P +>This function returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2184" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlmaprgba.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGBA</TT +></A +>, +<A +HREF="sdlgetrgba.html" +><TT +CLASS="FUNCTION" +>SDL_GetRGBA</TT +></A +>, +<A +HREF="sdldisplayformatalpha.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayFormatAlpha</TT +></A +>, +<A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetcolorkey.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetcliprect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetColorKey</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetClipRect</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetcliprect.html b/distrib/sdl-1.2.15/docs/html/sdlsetcliprect.html new file mode 100644 index 0000000..03898d5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetcliprect.html @@ -0,0 +1,241 @@ +<HTML +><HEAD +><TITLE +>SDL_SetClipRect</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetAlpha" +HREF="sdlsetalpha.html"><LINK +REL="NEXT" +TITLE="SDL_GetClipRect" +HREF="sdlgetcliprect.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetalpha.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetcliprect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETCLIPRECT" +></A +>SDL_SetClipRect</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2199" +></A +><H2 +>Name</H2 +>SDL_SetClipRect -- Sets the clipping rectangle for a surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2202" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2203" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_SetClipRect</B +></CODE +>(SDL_Surface *surface, SDL_Rect *rect);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2209" +></A +><H2 +>Description</H2 +><P +>Sets the clipping rectangle for a surface. When this surface is the +destination of a blit, only the area within the clip rectangle will be +drawn into.</P +><P +>The rectangle pointed to by <TT +CLASS="PARAMETER" +><I +>rect</I +></TT +> will be +clipped to the edges of the surface so that the clip rectangle for a +surface can never fall outside the edges of the surface.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>rect</I +></TT +> is <TT +CLASS="LITERAL" +>NULL</TT +> the clipping +rectangle will be set to the full size of the surface.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2217" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetcliprect.html" +><TT +CLASS="FUNCTION" +>SDL_GetClipRect</TT +></A +>, +<A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetalpha.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetcliprect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetAlpha</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetClipRect</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetcolorkey.html b/distrib/sdl-1.2.15/docs/html/sdlsetcolorkey.html new file mode 100644 index 0000000..0cb6695 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetcolorkey.html @@ -0,0 +1,321 @@ +<HTML +><HEAD +><TITLE +>SDL_SetColorKey</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SaveBMP" +HREF="sdlsavebmp.html"><LINK +REL="NEXT" +TITLE="SDL_SetAlpha" +HREF="sdlsetalpha.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsavebmp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetalpha.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETCOLORKEY" +></A +>SDL_SetColorKey</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2045" +></A +><H2 +>Name</H2 +>SDL_SetColorKey -- Sets the color key (transparent pixel) in a blittable surface and +RLE acceleration.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2048" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2049" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetColorKey</B +></CODE +>(SDL_Surface *surface, Uint32 flag, Uint32 key);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2055" +></A +><H2 +>Description</H2 +><P +> Sets the color key (transparent pixel) in a blittable surface and enables or + disables RLE blit acceleration.</P +><P +>RLE acceleration can substantially speed up blitting of images with large +horizontal runs of transparent pixels (i.e., pixels that match the +<TT +CLASS="PARAMETER" +><I +>key</I +></TT +> value). The <TT +CLASS="PARAMETER" +><I +>key</I +></TT +> must be of the same pixel format as the <TT +CLASS="PARAMETER" +><I +>surface</I +></TT +>, <A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGB</TT +></A +> is often useful for obtaining an acceptable value.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>flag</I +></TT +> is <TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +> then +<TT +CLASS="PARAMETER" +><I +>key</I +></TT +> is the transparent pixel value in the source image of a +blit.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>flag</I +></TT +> is OR'd with +<TT +CLASS="LITERAL" +>SDL_RLEACCEL</TT +> then the surface will be draw using RLE +acceleration when drawn with +<A +HREF="sdlblitsurface.html" +>SDL_BlitSurface</A +>. The surface will +actually be encoded for RLE acceleration the first time +<A +HREF="sdlblitsurface.html" +>SDL_BlitSurface</A +> or +<A +HREF="sdldisplayformat.html" +>SDL_DisplayFormat</A +> is called on the +surface.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>flag</I +></TT +> is 0, this function clears +any current color key.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2076" +></A +><H2 +>Return Value</H2 +><P +>This function returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, or +<SPAN +CLASS="RETURNVALUE" +>-1</SPAN +> if there was an error.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2081" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlblitsurface.html" +><TT +CLASS="FUNCTION" +>SDL_BlitSurface</TT +></A +>, +<A +HREF="sdldisplayformat.html" +><TT +CLASS="FUNCTION" +>SDL_DisplayFormat</TT +></A +>, +<A +HREF="sdlmaprgb.html" +><TT +CLASS="FUNCTION" +>SDL_MapRGB</TT +></A +>, +<A +HREF="sdlsetalpha.html" +><TT +CLASS="FUNCTION" +>SDL_SetAlpha</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsavebmp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetalpha.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SaveBMP</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetAlpha</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetcolors.html b/distrib/sdl-1.2.15/docs/html/sdlsetcolors.html new file mode 100644 index 0000000..5695645 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetcolors.html @@ -0,0 +1,358 @@ +<HTML +><HEAD +><TITLE +>SDL_SetColors</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Flip" +HREF="sdlflip.html"><LINK +REL="NEXT" +TITLE="SDL_SetPalette" +HREF="sdlsetpalette.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlflip.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetpalette.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETCOLORS" +></A +>SDL_SetColors</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1462" +></A +><H2 +>Name</H2 +>SDL_SetColors -- Sets a portion of the colormap for the given 8-bit surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1465" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1466" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetColors</B +></CODE +>(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1472" +></A +><H2 +>Description</H2 +><P +>Sets a portion of the colormap for the given 8-bit surface.</P +><P +>When <TT +CLASS="PARAMETER" +><I +>surface</I +></TT +> is the surface associated with the current +display, the display colormap will be updated with the requested colors. If +<TT +CLASS="LITERAL" +>SDL_HWPALETTE</TT +> was set in <A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +> flags, +<TT +CLASS="FUNCTION" +>SDL_SetColors</TT +> will always return <SPAN +CLASS="RETURNVALUE" +>1</SPAN +>, +and the palette is guaranteed to be set the way you desire, even if the window +colormap has to be warped or run under emulation.</P +><P +>The color components of a +<A +HREF="sdlcolor.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +></A +> +structure are 8-bits in size, giving you a total of 256<SUP +>3</SUP +> +=16777216 colors.</P +><P +>Palettized (8-bit) screen surfaces with the <TT +CLASS="LITERAL" +>SDL_HWPALETTE</TT +> +flag have two palettes, a logical palette that is used for mapping blits +to/from the surface and a physical palette (that determines how the +hardware will map the colors to the display). <TT +CLASS="FUNCTION" +>SDL_SetColors</TT +> +modifies both palettes (if present), and is equivalent to calling +<A +HREF="sdlsetpalette.html" +>SDL_SetPalette</A +> with the +<TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> set to +<TT +CLASS="LITERAL" +>(SDL_LOGPAL | SDL_PHYSPAL)</TT +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1491" +></A +><H2 +>Return Value</H2 +><P +>If <TT +CLASS="PARAMETER" +><I +>surface</I +></TT +> is not a palettized surface, this function +does nothing, returning <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>. If all of the colors were set +as passed to <TT +CLASS="FUNCTION" +>SDL_SetColors</TT +>, it will return +<SPAN +CLASS="RETURNVALUE" +>1</SPAN +>. If not all the color entries were set exactly as +given, it will return <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, and you should look at the +surface palette to determine the actual color palette.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1499" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>/* Create a display surface with a grayscale palette */ +SDL_Surface *screen; +SDL_Color colors[256]; +int i; +. +. +. +/* Fill colors with color information */ +for(i=0;i<256;i++){ + colors[i].r=i; + colors[i].g=i; + colors[i].b=i; +} + +/* Create display */ +screen=SDL_SetVideoMode(640, 480, 8, SDL_HWPALETTE); +if(!screen){ + printf("Couldn't set video mode: %s\n", SDL_GetError()); + exit(-1); +} + +/* Set palette */ +SDL_SetColors(screen, colors, 0, 256); +. +. +. +.</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1502" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcolor.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +></A +> +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>, +<A +HREF="sdlsetpalette.html" +><TT +CLASS="FUNCTION" +>SDL_SetPalette</TT +></A +>, +<A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlflip.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetpalette.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Flip</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetPalette</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetcursor.html b/distrib/sdl-1.2.15/docs/html/sdlsetcursor.html new file mode 100644 index 0000000..9c5443e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetcursor.html @@ -0,0 +1,222 @@ +<HTML +><HEAD +><TITLE +>SDL_SetCursor</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_FreeCursor" +HREF="sdlfreecursor.html"><LINK +REL="NEXT" +TITLE="SDL_GetCursor" +HREF="sdlgetcursor.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlfreecursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetcursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETCURSOR" +></A +>SDL_SetCursor</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2563" +></A +><H2 +>Name</H2 +>SDL_SetCursor -- Set the currently active mouse cursor.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2566" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2567" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_SetCursor</B +></CODE +>(SDL_Cursor *cursor);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2573" +></A +><H2 +>Description</H2 +><P +>Sets the currently active cursor to +the specified one. +If the cursor is currently visible, the change will be immediately +represented on the display.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2576" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetcursor.html" +><TT +CLASS="FUNCTION" +>SDL_GetCursor</TT +></A +>, +<A +HREF="sdlcreatecursor.html" +><TT +CLASS="FUNCTION" +>SDL_CreateCursor</TT +></A +>, +<A +HREF="sdlshowcursor.html" +><TT +CLASS="FUNCTION" +>SDL_ShowCursor</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlfreecursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetcursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_FreeCursor</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetCursor</TD +></TR +></TABLE +></DIV +></BODY +></HTML +> diff --git a/distrib/sdl-1.2.15/docs/html/sdlseteventfilter.html b/distrib/sdl-1.2.15/docs/html/sdlseteventfilter.html new file mode 100644 index 0000000..0808bab --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlseteventfilter.html @@ -0,0 +1,284 @@ +<HTML +><HEAD +><TITLE +>SDL_SetEventFilter</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_PushEvent" +HREF="sdlpushevent.html"><LINK +REL="NEXT" +TITLE="SDL_GetEventFilter" +HREF="sdlgeteventfilter.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpushevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgeteventfilter.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETEVENTFILTER" +></A +>SDL_SetEventFilter</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5575" +></A +><H2 +>Name</H2 +>SDL_SetEventFilter -- Sets up a filter to process all events before they are posted +to the event queue.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5578" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5579" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_SetEventFilter</B +></CODE +>(SDL_EventFilter filter);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5585" +></A +><H2 +>Description</H2 +><P +>This function sets up a filter to process all events before they are posted +to the event queue. This is a very powerful and flexible feature. The filter +is prototyped as: +<PRE +CLASS="PROGRAMLISTING" +>typedef int (*SDL_EventFilter)(const SDL_Event *event);</PRE +> +If the filter returns <SPAN +CLASS="RETURNVALUE" +>1</SPAN +>, then the event will be +added to the internal queue. If it returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, +then the event will be dropped from the queue. This allows selective +filtering of dynamically.</P +><P +>There is one caveat when dealing with the <TT +CLASS="LITERAL" +>SDL_QUITEVENT</TT +> event type. The +event filter is only called when the window manager desires to close the +application window. If the event filter returns 1, then the window will +be closed, otherwise the window will remain open if possible. +If the quit event is generated by an interrupt signal, it will bypass the +internal queue and be delivered to the application at the next event poll.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Events pushed onto the queue with <A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +> or <A +HREF="sdlpeepevents.html" +><TT +CLASS="FUNCTION" +>SDL_PeepEvents</TT +></A +> do not get passed through the event filter.</P +></BLOCKQUOTE +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +><SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>Be Careful!</I +></SPAN +> The event filter function may run in a different thread so be careful what you do within it.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5602" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlgeteventfilter.html" +><TT +CLASS="FUNCTION" +>SDL_GetEventFilter</TT +></A +>, +<A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpushevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgeteventfilter.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_PushEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetEventFilter</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetgamma.html b/distrib/sdl-1.2.15/docs/html/sdlsetgamma.html new file mode 100644 index 0000000..6443a96 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetgamma.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_SetGamma</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetPalette" +HREF="sdlsetpalette.html"><LINK +REL="NEXT" +TITLE="SDL_GetGammaRamp" +HREF="sdlgetgammaramp.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetpalette.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetgammaramp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETGAMMA" +></A +>SDL_SetGamma</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1569" +></A +><H2 +>Name</H2 +>SDL_SetGamma -- Sets the color gamma function for the display</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1572" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1573" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetGamma</B +></CODE +>(float redgamma, float greengamma, float bluegamma);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1579" +></A +><H2 +>Description</H2 +><P +>Sets the "gamma function" for the display of each color component. Gamma +controls the brightness/contrast of colors displayed on the screen. +A gamma value of <TT +CLASS="CONSTANT" +>1.0</TT +> is identity (i.e., no adjustment +is made).</P +><P +>This function adjusts the gamma based on the "gamma function" parameter, +you can directly specify lookup tables for gamma adjustment with +<A +HREF="sdlsetgammaramp.html" +>SDL_SetGammaRamp</A +>.</P +><P +>Not all display hardware is able to change gamma.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1586" +></A +><H2 +>Return Value</H2 +><P +>Returns -1 on error (or if gamma adjustment is not supported).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1589" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetgammaramp.html" +>SDL_GetGammaRamp</A +> +<A +HREF="sdlsetgammaramp.html" +>SDL_SetGammaRamp</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetpalette.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetgammaramp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetPalette</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetGammaRamp</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetgammaramp.html b/distrib/sdl-1.2.15/docs/html/sdlsetgammaramp.html new file mode 100644 index 0000000..79599c8 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetgammaramp.html @@ -0,0 +1,230 @@ +<HTML +><HEAD +><TITLE +>SDL_SetGammaRamp</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetGammaRamp" +HREF="sdlgetgammaramp.html"><LINK +REL="NEXT" +TITLE="SDL_MapRGB" +HREF="sdlmaprgb.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetgammaramp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlmaprgb.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETGAMMARAMP" +></A +>SDL_SetGammaRamp</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1624" +></A +><H2 +>Name</H2 +>SDL_SetGammaRamp -- Sets the color gamma lookup tables for the display</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1627" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1628" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetGammaRamp</B +></CODE +>(Uint16 *redtable, Uint16 *greentable, Uint16 *bluetable);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1634" +></A +><H2 +>Description</H2 +><P +>Sets the gamma lookup tables for the display for each color component. +Each table is an array of 256 Uint16 values, representing a mapping +between the input and output for that channel. The input is the index +into the array, and the output is the 16-bit gamma value at that index, +scaled to the output color precision. You may pass NULL to any of the +channels to leave them unchanged.</P +><P +>This function adjusts the gamma based on lookup tables, you can also +have the gamma calculated based on a "gamma function" parameter with +<A +HREF="sdlsetgamma.html" +>SDL_SetGamma</A +>.</P +><P +>Not all display hardware is able to change gamma.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1640" +></A +><H2 +>Return Value</H2 +><P +>Returns -1 on error (or if gamma adjustment is not supported).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1643" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetgamma.html" +>SDL_SetGamma</A +> +<A +HREF="sdlgetgammaramp.html" +>SDL_GetGammaRamp</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetgammaramp.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlmaprgb.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetGammaRamp</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_MapRGB</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetmodstate.html b/distrib/sdl-1.2.15/docs/html/sdlsetmodstate.html new file mode 100644 index 0000000..ee69a3f --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetmodstate.html @@ -0,0 +1,237 @@ +<HTML +><HEAD +><TITLE +>SDL_SetModState</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetModState" +HREF="sdlgetmodstate.html"><LINK +REL="NEXT" +TITLE="SDL_GetKeyName" +HREF="sdlgetkeyname.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetmodstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetkeyname.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETMODSTATE" +></A +>SDL_SetModState</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5752" +></A +><H2 +>Name</H2 +>SDL_SetModState -- Set the current key modifier state</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5755" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5756" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_SetModState</B +></CODE +>(SDLMod modstate);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5762" +></A +><H2 +>Description</H2 +><P +>The inverse of <A +HREF="sdlgetmodstate.html" +><TT +CLASS="FUNCTION" +>SDL_GetModState</TT +></A +>, <TT +CLASS="FUNCTION" +>SDL_SetModState</TT +> allows you to impose modifier key states on your application.</P +><P +>Simply pass your desired modifier states into <TT +CLASS="PARAMETER" +><I +>modstate</I +></TT +>. This value my be a logical OR'd combination of the following:</P +><PRE +CLASS="PROGRAMLISTING" +>typedef enum { + KMOD_NONE = 0x0000, + KMOD_LSHIFT= 0x0001, + KMOD_RSHIFT= 0x0002, + KMOD_LCTRL = 0x0040, + KMOD_RCTRL = 0x0080, + KMOD_LALT = 0x0100, + KMOD_RALT = 0x0200, + KMOD_LMETA = 0x0400, + KMOD_RMETA = 0x0800, + KMOD_NUM = 0x1000, + KMOD_CAPS = 0x2000, + KMOD_MODE = 0x4000, +} SDLMod;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5771" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlgetmodstate.html" +><TT +CLASS="FUNCTION" +>SDL_GetModState</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetmodstate.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetkeyname.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetModState</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetKeyName</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetpalette.html b/distrib/sdl-1.2.15/docs/html/sdlsetpalette.html new file mode 100644 index 0000000..1622f15 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetpalette.html @@ -0,0 +1,352 @@ +<HTML +><HEAD +><TITLE +>SDL_SetPalette</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetColors" +HREF="sdlsetcolors.html"><LINK +REL="NEXT" +TITLE="SDL_SetGamma" +HREF="sdlsetgamma.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetcolors.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetgamma.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETPALETTE" +></A +>SDL_SetPalette</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1517" +></A +><H2 +>Name</H2 +>SDL_SetPalette -- Sets the colors in the palette of an 8-bit surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1520" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1521" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetPalette</B +></CODE +>(SDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1527" +></A +><H2 +>Description</H2 +><P +>Sets a portion of the palette for the given 8-bit surface.</P +><P +>Palettized (8-bit) screen surfaces with the +<TT +CLASS="LITERAL" +>SDL_HWPALETTE</TT +> flag have two palettes, a logical +palette that is used for mapping blits to/from the surface and a +physical palette (that determines how the hardware will map the colors +to the display). <A +HREF="sdlblitsurface.html" +>SDL_BlitSurface</A +> +always uses the logical palette when blitting surfaces (if it has to +convert between surface pixel formats). Because of this, it is often +useful to modify only one or the other palette to achieve various +special color effects (e.g., screen fading, color flashes, screen dimming).</P +><P +>This function can modify either the logical or physical palette by +specifing <TT +CLASS="LITERAL" +>SDL_LOGPAL</TT +> or +<TT +CLASS="LITERAL" +>SDL_PHYSPAL</TT +>the in the <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> +parameter.</P +><P +>When <TT +CLASS="PARAMETER" +><I +>surface</I +></TT +> is the surface associated with the current +display, the display colormap will be updated with the requested colors. If +<TT +CLASS="LITERAL" +>SDL_HWPALETTE</TT +> was set in <A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +> flags, +<TT +CLASS="FUNCTION" +>SDL_SetPalette</TT +> will always return <SPAN +CLASS="RETURNVALUE" +>1</SPAN +>, +and the palette is guaranteed to be set the way you desire, even if the window +colormap has to be warped or run under emulation.</P +><P +>The color components of a +<A +HREF="sdlcolor.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Color</SPAN +></A +> structure +are 8-bits in size, giving you a total of +256<SUP +>3</SUP +>=16777216 colors.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1547" +></A +><H2 +>Return Value</H2 +><P +>If <TT +CLASS="PARAMETER" +><I +>surface</I +></TT +> is not a palettized surface, this function +does nothing, returning <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>. If all of the colors were set +as passed to <TT +CLASS="FUNCTION" +>SDL_SetPalette</TT +>, it will return +<SPAN +CLASS="RETURNVALUE" +>1</SPAN +>. If not all the color entries were set exactly as +given, it will return <SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, and you should look at the +surface palette to determine the actual color palette.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1555" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +> /* Create a display surface with a grayscale palette */ + SDL_Surface *screen; + SDL_Color colors[256]; + int i; + . + . + . + /* Fill colors with color information */ + for(i=0;i<256;i++){ + colors[i].r=i; + colors[i].g=i; + colors[i].b=i; + } + + /* Create display */ + screen=SDL_SetVideoMode(640, 480, 8, SDL_HWPALETTE); + if(!screen){ + printf("Couldn't set video mode: %s\n", SDL_GetError()); + exit(-1); + } + + /* Set palette */ + SDL_SetPalette(screen, SDL_LOGPAL|SDL_PHYSPAL, colors, 0, 256); + . + . + . + .</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1558" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetcolors.html" +>SDL_SetColors</A +>, +<A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +>, +<A +HREF="sdlsurface.html" +>SDL_Surface</A +>, +<A +HREF="sdlcolor.html" +>SDL_Color</A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetcolors.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetgamma.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetColors</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetGamma</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsettimer.html b/distrib/sdl-1.2.15/docs/html/sdlsettimer.html new file mode 100644 index 0000000..40b737c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsettimer.html @@ -0,0 +1,267 @@ +<HTML +><HEAD +><TITLE +>SDL_SetTimer</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Time" +HREF="time.html"><LINK +REL="PREVIOUS" +TITLE="SDL_RemoveTimer" +HREF="sdlremovetimer.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlremovetimer.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +> </TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETTIMER" +></A +>SDL_SetTimer</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN8557" +></A +><H2 +>Name</H2 +>SDL_SetTimer -- Set a callback to run after the specified number of milliseconds has +elapsed.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN8560" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN8561" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_SetTimer</B +></CODE +>(Uint32 interval, SDL_TimerCallback callback);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="SDLTIMERCALLBACK" +></A +><H2 +>Callback</H2 +><P +>/* Function prototype for the timer callback function */ +typedef Uint32 (*SDL_TimerCallback)(Uint32 interval);</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8570" +></A +><H2 +>Description</H2 +><P +>Set a callback to run after the specified number of milliseconds has +elapsed. The callback function is passed the current timer interval +and returns the next timer interval. If the returned value is the +same as the one passed in, the periodic alarm continues, otherwise a +new alarm is scheduled.</P +><P +>To cancel a currently running timer, call +<TT +CLASS="FUNCTION" +>SDL_SetTimer(0, NULL);</TT +></P +><P +>The timer callback function may run in a different thread than your +main constant, and so shouldn't call any functions from within itself.</P +><P +>The maximum resolution of this timer is 10 ms, which means that if +you request a 16 ms timer, your callback will run approximately 20 ms +later on an unloaded system. If you wanted to set a flag signaling +a frame update at 30 frames per second (every 33 ms), you might set a +timer for 30 ms (see example below).</P +><P +>If you use this function, you need to pass <TT +CLASS="LITERAL" +>SDL_INIT_TIMER</TT +> +to <TT +CLASS="FUNCTION" +>SDL_Init()</TT +>.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>This function is kept for compatibility but has been superseded +by the new timer functions +<A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +> and +<A +HREF="sdlremovetimer.html" +>SDL_RemoveTimer</A +> which support +multiple timers.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8584" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_SetTimer((33/10)*10, my_callback);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN8588" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdladdtimer.html" +><TT +CLASS="FUNCTION" +>SDL_AddTimer</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlremovetimer.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +> </TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_RemoveTimer</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="time.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +> </TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsetvideomode.html b/distrib/sdl-1.2.15/docs/html/sdlsetvideomode.html new file mode 100644 index 0000000..8b309b0 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsetvideomode.html @@ -0,0 +1,558 @@ +<HTML +><HEAD +><TITLE +>SDL_SetVideoMode</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_VideoModeOK" +HREF="sdlvideomodeok.html"><LINK +REL="NEXT" +TITLE="SDL_UpdateRect" +HREF="sdlupdaterect.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlvideomodeok.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlupdaterect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSETVIDEOMODE" +></A +>SDL_SetVideoMode</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1239" +></A +><H2 +>Name</H2 +>SDL_SetVideoMode -- Set up a video mode with the specified width, height and bits-per-pixel.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1242" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1243" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_Surface *<B +CLASS="FSFUNC" +>SDL_SetVideoMode</B +></CODE +>(int width, int height, int bpp, Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1249" +></A +><H2 +>Description</H2 +><P +>Set up a video mode with the specified width, height and bits-per-pixel.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>bpp</I +></TT +> is 0, it is treated as the +current display bits per pixel.</P +><P +>The <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> parameter is the same as the <TT +CLASS="STRUCTFIELD" +><I +>flags</I +></TT +> field of the <A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +> structure. OR'd combinations of the following values are valid.</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN1259" +></A +><P +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SWSURFACE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Create the video surface in system memory</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_HWSURFACE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Create the video surface in video memory</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_ASYNCBLIT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Enables the use of asynchronous updates of the display surface. This will +usually slow down blitting on single CPU machines, but may provide a speed +increase on SMP systems.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_ANYFORMAT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Normally, if a video surface of the requested bits-per-pixel (<TT +CLASS="PARAMETER" +><I +>bpp</I +></TT +>) is not available, SDL will emulate one with a shadow surface. Passing <TT +CLASS="LITERAL" +>SDL_ANYFORMAT</TT +> prevents this and causes SDL to use the video surface, regardless of its pixel depth.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_HWPALETTE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Give SDL exclusive palette access. Without this flag you may not always get the the colors you request with <A +HREF="sdlsetcolors.html" +><TT +CLASS="FUNCTION" +>SDL_SetColors</TT +></A +> or <A +HREF="sdlsetpalette.html" +><TT +CLASS="FUNCTION" +>SDL_SetPalette</TT +></A +>.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_DOUBLEBUF</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Enable hardware double buffering; only valid with SDL_HWSURFACE. Calling +<A +HREF="sdlflip.html" +><TT +CLASS="FUNCTION" +>SDL_Flip</TT +></A +> will flip the +buffers and update the screen. All drawing will take place on the surface +that is not displayed at the moment. If double buffering could not be enabled +then <TT +CLASS="FUNCTION" +>SDL_Flip</TT +> will just perform a +<A +HREF="sdlupdaterect.html" +><TT +CLASS="FUNCTION" +>SDL_UpdateRect</TT +></A +> +on the entire screen.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_FULLSCREEN</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>SDL will attempt to use a fullscreen mode. If a hardware resolution change is +not possible (for whatever reason), the next higher resolution will be used and +the display window centered on a black background.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_OPENGL</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Create an OpenGL rendering context. You should have previously set OpenGL video attributes with <A +HREF="sdlglsetattribute.html" +><TT +CLASS="FUNCTION" +>SDL_GL_SetAttribute</TT +></A +>.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_OPENGLBLIT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Create an OpenGL rendering context, like above, but allow normal blitting +operations. The screen (2D) surface may have an alpha channel, and +<A +HREF="sdlupdaterects.html" +><TT +CLASS="FUNCTION" +>SDL_UpdateRects</TT +></A +> +must be used for updating changes to the screen surface. NOTE: This option +is kept for compatibility only, and is <SPAN +CLASS="emphasis" +><I +CLASS="EMPHASIS" +>not</I +></SPAN +> recommended for +new code.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_RESIZABLE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Create a resizable window. When the window is resized by the user a <A +HREF="sdlresizeevent.html" +><TT +CLASS="LITERAL" +>SDL_VIDEORESIZE</TT +></A +> event is generated and <TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +> can be called again with the new size.</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_NOFRAME</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>If possible, <TT +CLASS="LITERAL" +>SDL_NOFRAME</TT +> causes SDL to create a window with no title bar or frame decoration. Fullscreen modes automatically have this flag set.</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>Whatever <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> <TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +> could satisfy are set in the <TT +CLASS="STRUCTFIELD" +><I +>flags</I +></TT +> member of the returned surface.</P +></BLOCKQUOTE +></DIV +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>The <TT +CLASS="PARAMETER" +><I +>bpp</I +></TT +> parameter is the number of bits per pixel, +so a <TT +CLASS="PARAMETER" +><I +>bpp</I +></TT +> of 24 uses the packed representation of +3 bytes/pixel. For the more common 4 bytes/pixel mode, use a +<TT +CLASS="PARAMETER" +><I +>bpp</I +></TT +> of 32. Somewhat oddly, both 15 and 16 will +request a 2 bytes/pixel mode, but different pixel formats.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1336" +></A +><H2 +>Return Value</H2 +><P +>The framebuffer surface, or <SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +> if it fails. +The surface returned is freed by SDL_Quit() and should nt be freed by +the caller.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1340" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +>, +<A +HREF="sdlsetcolors.html" +><TT +CLASS="FUNCTION" +>SDL_SetColors</TT +></A +>, +<A +HREF="sdlflip.html" +><TT +CLASS="FUNCTION" +>SDL_Flip</TT +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlvideomodeok.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlupdaterect.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_VideoModeOK</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_UpdateRect</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlshowcursor.html b/distrib/sdl-1.2.15/docs/html/sdlshowcursor.html new file mode 100644 index 0000000..5a8f19d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlshowcursor.html @@ -0,0 +1,239 @@ +<HTML +><HEAD +><TITLE +>SDL_ShowCursor</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetCursor" +HREF="sdlgetcursor.html"><LINK +REL="NEXT" +TITLE="SDL_GL_LoadLibrary" +HREF="sdlglloadlibrary.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetcursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlglloadlibrary.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSHOWCURSOR" +></A +>SDL_ShowCursor</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2615" +></A +><H2 +>Name</H2 +>SDL_ShowCursor -- Toggle whether or not the cursor is shown on the screen.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2618" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2619" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_ShowCursor</B +></CODE +>(int toggle);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2625" +></A +><H2 +>Description</H2 +><P +>Toggle whether or not the cursor is shown on the screen. Passing <TT +CLASS="LITERAL" +>SDL_ENABLE</TT +> displays the cursor and passing <TT +CLASS="LITERAL" +>SDL_DISABLE</TT +> hides it. The current state of the mouse cursor can be queried by passing <TT +CLASS="LITERAL" +>SDL_QUERY</TT +>, either <TT +CLASS="LITERAL" +>SDL_DISABLE</TT +> or <TT +CLASS="LITERAL" +>SDL_ENABLE</TT +> will be returned.</P +><P +>The cursor starts off displayed, but can be turned off.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2634" +></A +><H2 +>Return Value</H2 +><P +>Returns the current state of the cursor.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2637" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatecursor.html" +><TT +CLASS="FUNCTION" +>SDL_CreateCursor</TT +></A +>, +<A +HREF="sdlsetcursor.html" +><TT +CLASS="FUNCTION" +>SDL_SetCursor</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetcursor.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlglloadlibrary.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetCursor</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GL_LoadLibrary</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsurface.html b/distrib/sdl-1.2.15/docs/html/sdlsurface.html new file mode 100644 index 0000000..fda55f1 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsurface.html @@ -0,0 +1,597 @@ +<HTML +><HEAD +><TITLE +>SDL_Surface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_PixelFormat" +HREF="sdlpixelformat.html"><LINK +REL="NEXT" +TITLE="SDL_VideoInfo" +HREF="sdlvideoinfo.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpixelformat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlvideoinfo.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSURFACE" +></A +>SDL_Surface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3263" +></A +><H2 +>Name</H2 +>SDL_Surface -- Graphical Surface Structure</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3266" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct SDL_Surface { + Uint32 flags; /* Read-only */ + SDL_PixelFormat *format; /* Read-only */ + int w, h; /* Read-only */ + Uint16 pitch; /* Read-only */ + void *pixels; /* Read-write */ + + /* clipping information */ + SDL_Rect clip_rect; /* Read-only */ + + /* Reference count -- used when freeing surface */ + int refcount; /* Read-mostly */ + + /* This structure also contains private fields not shown here */ +} SDL_Surface;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3269" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3271" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>flags</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface flags</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>format</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pixel <A +HREF="sdlpixelformat.html" +>format</A +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>w, h</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Width and height of the surface</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>pitch</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Length of a surface scanline in bytes</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Pointer to the actual pixel data</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>clip_rect</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>surface clip <A +HREF="sdlrect.html" +>rectangle</A +></TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3300" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +>'s represent areas of "graphical" +memory, memory that can be drawn to. The video framebuffer is returned +as a <SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +> by +<A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +> +and <A +HREF="sdlgetvideosurface.html" +><TT +CLASS="FUNCTION" +>SDL_GetVideoSurface</TT +></A +>. +Most of the fields should be pretty obvious. +<TT +CLASS="STRUCTFIELD" +><I +>w</I +></TT +> and <TT +CLASS="STRUCTFIELD" +><I +>h</I +></TT +> are the +width and height of the surface in pixels. +<TT +CLASS="STRUCTFIELD" +><I +>pixels</I +></TT +> is a pointer to the actual pixel data, +the surface should be <A +HREF="sdllocksurface.html" +>locked</A +> +before accessing this field. The <TT +CLASS="STRUCTFIELD" +><I +>clip_rect</I +></TT +> field +is the clipping rectangle as set by +<A +HREF="sdlsetcliprect.html" +><TT +CLASS="FUNCTION" +>SDL_SetClipRect</TT +></A +>.</P +><P +>The following are supported in the +<TT +CLASS="STRUCTFIELD" +><I +>flags</I +></TT +> field.</P +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3318" +></A +><P +></P +><TABLE +BORDER="1" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SWSURFACE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface is stored in system memory</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_HWSURFACE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface is stored in video memory</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_ASYNCBLIT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface uses asynchronous blits if possible</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_ANYFORMAT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Allows any pixel-format (Display surface)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_HWPALETTE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface has exclusive palette</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_DOUBLEBUF</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface is double buffered (Display surface)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_FULLSCREEN</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface is full screen (Display Surface)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_OPENGL</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface has an OpenGL context (Display Surface)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_OPENGLBLIT</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface supports OpenGL blitting (Display Surface)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_RESIZABLE</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface is resizable (Display Surface)</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_HWACCEL</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface blit uses hardware acceleration</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SRCCOLORKEY</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface use colorkey blitting</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_RLEACCEL</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Colorkey blitting is accelerated with RLE</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_SRCALPHA</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface blit uses alpha blending</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_PREALLOC</TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Surface uses preallocated memory</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3381" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpixelformat.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlvideoinfo.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_PixelFormat</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_VideoInfo</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlsyswmevent.html b/distrib/sdl-1.2.15/docs/html/sdlsyswmevent.html new file mode 100644 index 0000000..fd7180e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlsyswmevent.html @@ -0,0 +1,233 @@ +<HTML +><HEAD +><TITLE +>SDL_SysWMEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ExposeEvent" +HREF="sdlexposeevent.html"><LINK +REL="NEXT" +TITLE="SDL_UserEvent" +HREF="sdluserevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlexposeevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdluserevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLSYSWMEVENT" +></A +>SDL_SysWMEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4538" +></A +><H2 +>Name</H2 +>SDL_SysWMEvent -- Platform-dependent window manager event.</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4541" +></A +><H2 +>Description</H2 +><P +>The system window manager event contains a pointer to system-specific +information about unknown window manager events. If you enable this event +using +<A +HREF="sdleventstate.html" +><TT +CLASS="FUNCTION" +>SDL_EventState()</TT +></A +>, +it will be generated whenever unhandled events are received from the window +manager. This can be used, for example, to implement cut-and-paste in your +application. + +<PRE +CLASS="PROGRAMLISTING" +>typedef struct { + Uint8 type; /* Always SDL_SYSWMEVENT */ + SDL_SysWMmsg *msg; + } SDL_SysWMEvent;</PRE +> + +If you want to obtain system-specific information about the window manager, +you can fill the version member of a <SPAN +CLASS="STRUCTNAME" +>SDL_SysWMinfo</SPAN +> +structure (details can be found in <TT +CLASS="FILENAME" +>SDL_syswm.h</TT +>, which must be included) using the <TT +CLASS="FUNCTION" +>SDL_VERSION()</TT +> macro found in +<TT +CLASS="FILENAME" +>SDL_version.h</TT +>, and pass it to the +function: +<DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN4551" +></A +><P +></P +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_GetWMInfo</B +></CODE +>(SDL_SysWMinfo *info);</CODE +></P +><P +></P +></DIV +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4556" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdleventstate.html" +><TT +CLASS="FUNCTION" +>SDL_EventState</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlexposeevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdluserevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ExposeEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_UserEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlthreadid.html b/distrib/sdl-1.2.15/docs/html/sdlthreadid.html new file mode 100644 index 0000000..e0bde2e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlthreadid.html @@ -0,0 +1,190 @@ +<HTML +><HEAD +><TITLE +>SDL_ThreadID</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CreateThread" +HREF="sdlcreatethread.html"><LINK +REL="NEXT" +TITLE="SDL_GetThreadID" +HREF="sdlgetthreadid.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcreatethread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetthreadid.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLTHREADID" +></A +>SDL_ThreadID</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7726" +></A +><H2 +>Name</H2 +>SDL_ThreadID -- Get the 32-bit thread identifier for the current thread.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7729" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7730" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_ThreadID</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7736" +></A +><H2 +>Description</H2 +><P +>Get the 32-bit thread identifier for the current thread.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcreatethread.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetthreadid.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CreateThread</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetThreadID</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlunlockaudio.html b/distrib/sdl-1.2.15/docs/html/sdlunlockaudio.html new file mode 100644 index 0000000..0019bd6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlunlockaudio.html @@ -0,0 +1,211 @@ +<HTML +><HEAD +><TITLE +>SDL_UnlockAudio</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Audio" +HREF="audio.html"><LINK +REL="PREVIOUS" +TITLE="SDL_LockAudio" +HREF="sdllockaudio.html"><LINK +REL="NEXT" +TITLE="SDL_CloseAudio" +HREF="sdlcloseaudio.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdllockaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcloseaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLUNLOCKAUDIO" +></A +>SDL_UnlockAudio</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7156" +></A +><H2 +>Name</H2 +>SDL_UnlockAudio -- Unlock the callback function</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7159" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7160" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_UnlockAudio</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7166" +></A +><H2 +>Description</H2 +><P +>Unlocks a previous <A +HREF="sdllockaudio.html" +><TT +CLASS="FUNCTION" +>SDL_LockAudio</TT +></A +> call.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7171" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlopenaudio.html" +><TT +CLASS="FUNCTION" +>SDL_OpenAudio</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdllockaudio.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcloseaudio.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_LockAudio</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="audio.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CloseAudio</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlunlocksurface.html b/distrib/sdl-1.2.15/docs/html/sdlunlocksurface.html new file mode 100644 index 0000000..13ba5fc --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlunlocksurface.html @@ -0,0 +1,219 @@ +<HTML +><HEAD +><TITLE +>SDL_UnlockSurface</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_LockSurface" +HREF="sdllocksurface.html"><LINK +REL="NEXT" +TITLE="SDL_LoadBMP" +HREF="sdlloadbmp.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdllocksurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlloadbmp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLUNLOCKSURFACE" +></A +>SDL_UnlockSurface</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1962" +></A +><H2 +>Name</H2 +>SDL_UnlockSurface -- Unlocks a previously locked surface.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1965" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1966" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_UnlockSurface</B +></CODE +>(SDL_Surface *surface);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1972" +></A +><H2 +>Description</H2 +><P +>Surfaces that were previously locked using <TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +> must be unlocked with <TT +CLASS="FUNCTION" +>SDL_UnlockSurface</TT +>. Surfaces should be unlocked as soon as possible.</P +><P +>It should be noted that since 1.1.8, surface locks are recursive. See <A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1980" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdllocksurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlloadbmp.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_LockSurface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_LoadBMP</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlunlockyuvoverlay.html b/distrib/sdl-1.2.15/docs/html/sdlunlockyuvoverlay.html new file mode 100644 index 0000000..936ed9e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlunlockyuvoverlay.html @@ -0,0 +1,225 @@ +<HTML +><HEAD +><TITLE +>SDL_UnlockYUVOverlay</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_LockYUVOverlay" +HREF="sdllockyuvoverlay.html"><LINK +REL="NEXT" +TITLE="SDL_DisplayYUVOverlay" +HREF="sdldisplayyuvoverlay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdllockyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdldisplayyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLUNLOCKYUVOVERLAY" +></A +>SDL_UnlockYUVOverlay</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2880" +></A +><H2 +>Name</H2 +>SDL_UnlockYUVOverlay -- Unlock an overlay</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2883" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2884" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_UnlockYUVOverlay</B +></CODE +>(SDL_Overlay *overlay);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2890" +></A +><H2 +>Description</H2 +><P +>The opposite to <A +HREF="sdllockyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_LockYUVOverlay</TT +></A +>. Unlocks a previously locked overlay. An overlay must be unlocked before it can be displayed.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2895" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdllockyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_UnlockYUVOverlay</TT +></A +>, +<A +HREF="sdlcreateyuvoverlay.html" +><TT +CLASS="FUNCTION" +>SDL_CreateYUVOverlay</TT +></A +>, +<A +HREF="sdloverlay.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Overlay</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdllockyuvoverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdldisplayyuvoverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_LockYUVOverlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_DisplayYUVOverlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlupdaterect.html b/distrib/sdl-1.2.15/docs/html/sdlupdaterect.html new file mode 100644 index 0000000..f54d9f5 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlupdaterect.html @@ -0,0 +1,266 @@ +<HTML +><HEAD +><TITLE +>SDL_UpdateRect</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SetVideoMode" +HREF="sdlsetvideomode.html"><LINK +REL="NEXT" +TITLE="SDL_UpdateRects" +HREF="sdlupdaterects.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsetvideomode.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlupdaterects.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLUPDATERECT" +></A +>SDL_UpdateRect</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1355" +></A +><H2 +>Name</H2 +>SDL_UpdateRect -- Makes sure the given area is updated on the given screen.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1358" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1359" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_UpdateRect</B +></CODE +>(SDL_Surface *screen, Sint32 x, Sint32 y, Sint32 w, Sint32 h);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1365" +></A +><H2 +>Description</H2 +><P +>Makes sure the given area is updated on the given screen. The rectangle must +be confined within the screen boundaries (no clipping is done).</P +><P +>If '<TT +CLASS="PARAMETER" +><I +>x</I +></TT +>', '<TT +CLASS="PARAMETER" +><I +>y</I +></TT +>', '<TT +CLASS="PARAMETER" +><I +>w</I +></TT +>' +and '<TT +CLASS="PARAMETER" +><I +>h</I +></TT +>' are all 0, +<TT +CLASS="FUNCTION" +>SDL_UpdateRect</TT +> will update the +entire screen.</P +><P +>This function should not be called while '<TT +CLASS="PARAMETER" +><I +>screen</I +></TT +>' is +<A +HREF="sdllocksurface.html" +>locked</A +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1377" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlupdaterects.html" +><TT +CLASS="FUNCTION" +>SDL_UpdateRects</TT +></A +>, +<A +HREF="sdlrect.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>, +<A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsetvideomode.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlupdaterects.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SetVideoMode</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_UpdateRects</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlupdaterects.html b/distrib/sdl-1.2.15/docs/html/sdlupdaterects.html new file mode 100644 index 0000000..0553a7a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlupdaterects.html @@ -0,0 +1,255 @@ +<HTML +><HEAD +><TITLE +>SDL_UpdateRects</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_UpdateRect" +HREF="sdlupdaterect.html"><LINK +REL="NEXT" +TITLE="SDL_Flip" +HREF="sdlflip.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlupdaterect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlflip.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLUPDATERECTS" +></A +>SDL_UpdateRects</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1392" +></A +><H2 +>Name</H2 +>SDL_UpdateRects -- Makes sure the given list of rectangles is updated on the given screen.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1395" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1396" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_UpdateRects</B +></CODE +>(SDL_Surface *screen, int numrects, SDL_Rect *rects);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1402" +></A +><H2 +>Description</H2 +><P +>Makes sure the given list of rectangles is updated on the given screen. +The rectangles must all be confined within the screen boundaries (no +clipping is done).</P +><P +>This function should not be called while <TT +CLASS="PARAMETER" +><I +>screen</I +></TT +> is +<A +HREF="sdllocksurface.html" +>locked</A +>.</P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>It is adviced to call this function only once per frame, since each +call has some processing overhead. This is no restriction since you +can pass any number of rectangles each time.</P +><P +>The rectangles are not automatically merged or checked for overlap. In +general, the programmer can use his knowledge about his particular +rectangles to merge them in an efficient way, to avoid overdraw.</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1411" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlupdaterect.html" +><TT +CLASS="FUNCTION" +>SDL_UpdateRect</TT +></A +>, +<A +HREF="sdlrect.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Rect</SPAN +></A +>, +<A +HREF="sdlsurface.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Surface</SPAN +></A +>, +<A +HREF="sdllocksurface.html" +><TT +CLASS="FUNCTION" +>SDL_LockSurface</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlupdaterect.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlflip.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_UpdateRect</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Flip</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdluserevent.html b/distrib/sdl-1.2.15/docs/html/sdluserevent.html new file mode 100644 index 0000000..178769c --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdluserevent.html @@ -0,0 +1,337 @@ +<HTML +><HEAD +><TITLE +>SDL_UserEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Event Structures." +HREF="eventstructures.html"><LINK +REL="PREVIOUS" +TITLE="SDL_SysWMEvent" +HREF="sdlsyswmevent.html"><LINK +REL="NEXT" +TITLE="SDL_QuitEvent" +HREF="sdlquitevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsyswmevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlquitevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLUSEREVENT" +></A +>SDL_UserEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN4565" +></A +><H2 +>Name</H2 +>SDL_UserEvent -- A user-defined event type</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4568" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint8 type; + int code; + void *data1; + void *data2; +} SDL_UserEvent;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4571" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN4573" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="LITERAL" +>SDL_USEREVENT</TT +> through to <TT +CLASS="LITERAL" +>SDL_NUMEVENTS-1</TT +></TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>code</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>User defined event code</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>data1</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>User defined data pointer</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>data2</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>User defined data pointer</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4594" +></A +><H2 +>Description</H2 +><P +><SPAN +CLASS="STRUCTNAME" +>SDL_UserEvent</SPAN +> is in the <TT +CLASS="STRUCTFIELD" +><I +>user</I +></TT +> member of the structure <A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>. This event is unique, it is never created by SDL but only by the user. The event can be pushed onto the event queue using <A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +>. The contents of the structure members or completely up to the programmer, the only requirement is that <TT +CLASS="STRUCTFIELD" +><I +>type</I +></TT +> is a value from <TT +CLASS="LITERAL" +>SDL_USEREVENT</TT +> to <TT +CLASS="LITERAL" +>SDL_NUMEVENTS-1</TT +> (inclusive).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4606" +></A +><H2 +>Examples</H2 +><P +><PRE +CLASS="PROGRAMLISTING" +>SDL_Event event; + +event.type = SDL_USEREVENT; +event.user.code = my_event_code; +event.user.data1 = significant_data; +event.user.data2 = 0; +SDL_PushEvent(&event);</PRE +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN4610" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsyswmevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlquitevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_SysWMEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventstructures.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_QuitEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlvideodrivername.html b/distrib/sdl-1.2.15/docs/html/sdlvideodrivername.html new file mode 100644 index 0000000..1419656 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlvideodrivername.html @@ -0,0 +1,243 @@ +<HTML +><HEAD +><TITLE +>SDL_VideoDriverName</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetVideoInfo" +HREF="sdlgetvideoinfo.html"><LINK +REL="NEXT" +TITLE="SDL_ListModes" +HREF="sdllistmodes.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetvideoinfo.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdllistmodes.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLVIDEODRIVERNAME" +></A +>SDL_VideoDriverName</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1127" +></A +><H2 +>Name</H2 +>SDL_VideoDriverName -- Obtain the name of the video driver</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1130" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1131" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>char *<B +CLASS="FSFUNC" +>SDL_VideoDriverName</B +></CODE +>(char *namebuf, int maxlen);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1137" +></A +><H2 +>Description</H2 +><P +>The buffer pointed to by <TT +CLASS="PARAMETER" +><I +>namebuf</I +></TT +> is filled up to a maximum of <TT +CLASS="PARAMETER" +><I +>maxlen</I +></TT +> characters (include the NULL terminator) with the name of the initialised video driver. The driver name is a simple one word identifier like "x11" or "windib".</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1142" +></A +><H2 +>Return Value</H2 +><P +>Returns <TT +CLASS="LITERAL" +>NULL</TT +> if video has not been initialised with <TT +CLASS="FUNCTION" +>SDL_Init</TT +> or a pointer to <TT +CLASS="PARAMETER" +><I +>namebuf</I +></TT +> otherwise.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1148" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +> +<A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_InitSubSystem</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetvideoinfo.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdllistmodes.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetVideoInfo</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_ListModes</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlvideoinfo.html b/distrib/sdl-1.2.15/docs/html/sdlvideoinfo.html new file mode 100644 index 0000000..3a0da31 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlvideoinfo.html @@ -0,0 +1,408 @@ +<HTML +><HEAD +><TITLE +>SDL_VideoInfo</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Surface" +HREF="sdlsurface.html"><LINK +REL="NEXT" +TITLE="SDL_Overlay" +HREF="sdloverlay.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdloverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLVIDEOINFO" +></A +>SDL_VideoInfo</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3390" +></A +><H2 +>Name</H2 +>SDL_VideoInfo -- Video Target information</DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3393" +></A +><H2 +>Structure Definition</H2 +><PRE +CLASS="PROGRAMLISTING" +>typedef struct{ + Uint32 hw_available:1; + Uint32 wm_available:1; + Uint32 blit_hw:1; + Uint32 blit_hw_CC:1; + Uint32 blit_hw_A:1; + Uint32 blit_sw:1; + Uint32 blit_sw_CC:1; + Uint32 blit_sw_A:1; + Uint32 blit_fill; + Uint32 video_mem; + SDL_PixelFormat *vfmt; +} SDL_VideoInfo;</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3396" +></A +><H2 +>Structure Data</H2 +><DIV +CLASS="INFORMALTABLE" +><A +NAME="AEN3398" +></A +><P +></P +><TABLE +BORDER="0" +CLASS="CALSTABLE" +><TBODY +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>hw_available</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Is it possible to create hardware surfaces?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>wm_available</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Is there a window manager available</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_hw</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are hardware to hardware blits accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_hw_CC</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are hardware to hardware colorkey blits accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_hw_A</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are hardware to hardware alpha blits accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_sw</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are software to hardware blits accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_sw_CC</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are software to hardware colorkey blits accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_sw_A</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are software to hardware alpha blits accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>blit_fill</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Are color fills accelerated?</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>video_mem</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +>Total amount of video memory in Kilobytes</TD +></TR +><TR +><TD +ALIGN="LEFT" +VALIGN="TOP" +><TT +CLASS="STRUCTFIELD" +><I +>vfmt</I +></TT +></TD +><TD +ALIGN="LEFT" +VALIGN="TOP" +><A +HREF="sdlpixelformat.html" +>Pixel format</A +> of the video device</TD +></TR +></TBODY +></TABLE +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3446" +></A +><H2 +>Description</H2 +><P +>This (read-only) structure is returned by <A +HREF="sdlgetvideoinfo.html" +><TT +CLASS="FUNCTION" +>SDL_GetVideoInfo</TT +></A +>. It contains information on either the 'best' available mode (if called before <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>) or the current video mode.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3453" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlpixelformat.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_PixelFormat</SPAN +></A +>, +<A +HREF="sdlgetvideoinfo.html" +><TT +CLASS="FUNCTION" +>SDL_GetVideoInfo</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlsurface.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdloverlay.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Surface</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_Overlay</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlvideomodeok.html b/distrib/sdl-1.2.15/docs/html/sdlvideomodeok.html new file mode 100644 index 0000000..5d2d6c4 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlvideomodeok.html @@ -0,0 +1,270 @@ +<HTML +><HEAD +><TITLE +>SDL_VideoModeOK</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_ListModes" +HREF="sdllistmodes.html"><LINK +REL="NEXT" +TITLE="SDL_SetVideoMode" +HREF="sdlsetvideomode.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdllistmodes.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlsetvideomode.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLVIDEOMODEOK" +></A +>SDL_VideoModeOK</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN1202" +></A +><H2 +>Name</H2 +>SDL_VideoModeOK -- Check to see if a particular video mode is supported.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN1205" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN1206" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_VideoModeOK</B +></CODE +>(int width, int height, int bpp, Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1212" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_VideoModeOK</TT +> returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> +if the requested mode is not supported under any bit depth, or returns the +bits-per-pixel of the closest available mode with the given width, height and requested <A +HREF="sdlsurface.html" +>surface</A +> flags (see <A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>).</P +><P +>The bits-per-pixel value returned is only a suggested mode. You can usually request and bpp you want when <A +HREF="sdlsetvideomode.html" +>setting</A +> the video mode and SDL will emulate that color depth with a shadow video surface.</P +><P +>The arguments to <TT +CLASS="FUNCTION" +>SDL_VideoModeOK</TT +> are the same ones you +would pass to <A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +></P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1225" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_Surface *screen; +Uint32 bpp; +. +. +. +printf("Checking mode 640x480@16bpp.\n"); +bpp=SDL_VideoModeOK(640, 480, 16, SDL_HWSURFACE); + +if(!bpp){ + printf("Mode not available.\n"); + exit(-1); +} + +printf("SDL Recommends 640x480@%dbpp.\n", bpp); +screen=SDL_SetVideoMode(640, 480, bpp, SDL_HWSURFACE); +. +.</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN1228" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdlgetvideoinfo.html" +><TT +CLASS="FUNCTION" +>SDL_GetVideoInfo</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdllistmodes.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlsetvideomode.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_ListModes</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_SetVideoMode</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwaitevent.html b/distrib/sdl-1.2.15/docs/html/sdlwaitevent.html new file mode 100644 index 0000000..b473d3b --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwaitevent.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_WaitEvent</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Event Functions." +HREF="eventfunctions.html"><LINK +REL="PREVIOUS" +TITLE="SDL_PollEvent" +HREF="sdlpollevent.html"><LINK +REL="NEXT" +TITLE="SDL_PushEvent" +HREF="sdlpushevent.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlpollevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlpushevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWAITEVENT" +></A +>SDL_WaitEvent</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN5507" +></A +><H2 +>Name</H2 +>SDL_WaitEvent -- Waits indefinitely for the next available event.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN5510" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN5511" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_WaitEvent</B +></CODE +>(SDL_Event *event);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5517" +></A +><H2 +>Description</H2 +><P +>Waits indefinitely for the next available event, returning +<SPAN +CLASS="RETURNVALUE" +>1</SPAN +>, or <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if there was +an error while waiting for events. </P +><P +>If <TT +CLASS="PARAMETER" +><I +>event</I +></TT +> is not <TT +CLASS="LITERAL" +>NULL</TT +>, the next +event is removed from the queue and stored in that area.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN5525" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_Event</SPAN +></A +>, +<A +HREF="sdlpollevent.html" +><TT +CLASS="FUNCTION" +>SDL_PollEvent</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlpollevent.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlpushevent.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_PollEvent</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="eventfunctions.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_PushEvent</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwaitthread.html b/distrib/sdl-1.2.15/docs/html/sdlwaitthread.html new file mode 100644 index 0000000..2becfbc --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwaitthread.html @@ -0,0 +1,231 @@ +<HTML +><HEAD +><TITLE +>SDL_WaitThread</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Multi-threaded Programming" +HREF="thread.html"><LINK +REL="PREVIOUS" +TITLE="SDL_GetThreadID" +HREF="sdlgetthreadid.html"><LINK +REL="NEXT" +TITLE="SDL_KillThread" +HREF="sdlkillthread.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlgetthreadid.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlkillthread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWAITTHREAD" +></A +>SDL_WaitThread</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN7766" +></A +><H2 +>Name</H2 +>SDL_WaitThread -- Wait for a thread to finish.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN7769" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN7770" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h" +#include "SDL_thread.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_WaitThread</B +></CODE +>(SDL_Thread *thread, int *status);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7776" +></A +><H2 +>Description</H2 +><P +>Wait for a thread to finish (timeouts are not supported).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7779" +></A +><H2 +>Return Value</H2 +><P +>The return code for the thread function is placed in the area pointed to by +<TT +CLASS="PARAMETER" +><I +>status</I +></TT +>, if <TT +CLASS="PARAMETER" +><I +>status</I +></TT +> is not +<SPAN +CLASS="RETURNVALUE" +>NULL</SPAN +>.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN7785" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlcreatethread.html" +><TT +CLASS="FUNCTION" +>SDL_CreateThread</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlgetthreadid.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlkillthread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_GetThreadID</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="thread.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_KillThread</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwarpmouse.html b/distrib/sdl-1.2.15/docs/html/sdlwarpmouse.html new file mode 100644 index 0000000..e7b2d8d --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwarpmouse.html @@ -0,0 +1,205 @@ +<HTML +><HEAD +><TITLE +>SDL_WarpMouse</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Video" +HREF="video.html"><LINK +REL="PREVIOUS" +TITLE="SDL_DisplayFormatAlpha" +HREF="sdldisplayformatalpha.html"><LINK +REL="NEXT" +TITLE="SDL_CreateCursor" +HREF="sdlcreatecursor.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdldisplayformatalpha.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatecursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWARPMOUSE" +></A +>SDL_WarpMouse</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN2465" +></A +><H2 +>Name</H2 +>SDL_WarpMouse -- Set the position of the mouse cursor.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN2468" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN2469" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_WarpMouse</B +></CODE +>(Uint16 x, Uint16 y);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2475" +></A +><H2 +>Description</H2 +><P +>Set the position of the mouse cursor (generates a mouse motion event).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN2478" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlmousemotionevent.html" +><SPAN +CLASS="STRUCTNAME" +>SDL_MouseMotionEvent</SPAN +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdldisplayformatalpha.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatecursor.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_DisplayFormatAlpha</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="video.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateCursor</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwasinit.html b/distrib/sdl-1.2.15/docs/html/sdlwasinit.html new file mode 100644 index 0000000..b4effeb --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwasinit.html @@ -0,0 +1,284 @@ +<HTML +><HEAD +><TITLE +>SDL_WasInit</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="General" +HREF="general.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Quit" +HREF="sdlquit.html"><LINK +REL="NEXT" +TITLE="SDL_GetError" +HREF="sdlgeterror.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlquit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgeterror.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWASINIT" +></A +>SDL_WasInit</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN617" +></A +><H2 +>Name</H2 +>SDL_WasInit -- Check which subsystems are initialized</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN620" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN621" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>Uint32 <B +CLASS="FSFUNC" +>SDL_WasInit</B +></CODE +>(Uint32 flags);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN627" +></A +><H2 +>Description</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_WasInit</TT +> allows you to see which SDL subsytems have been <A +HREF="sdlinit.html" +>initialized</A +>. <TT +CLASS="PARAMETER" +><I +>flags</I +></TT +> is a bitwise OR'd combination of the subsystems you wish to check (see <A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +> for a list of subsystem flags).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN635" +></A +><H2 +>Return Value</H2 +><P +><TT +CLASS="FUNCTION" +>SDL_WasInit</TT +> returns a bitwised OR'd combination of the initialized subsystems.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN639" +></A +><H2 +>Examples</H2 +><PRE +CLASS="PROGRAMLISTING" +> /* Here are several ways you can use SDL_WasInit() */ + +/* Get init data on all the subsystems */ +Uint32 subsystem_init; + +subsystem_init=SDL_WasInit(SDL_INIT_EVERYTHING); + +if(subsystem_init&SDL_INIT_VIDEO) + printf("Video is initialized.\n"); +else + printf("Video is not initialized.\n"); + + + +/* Just check for one specfic subsystem */ + +if(SDL_WasInit(SDL_INIT_VIDEO)!=0) + printf("Video is initialized.\n"); +else + printf("Video is not initialized.\n"); + + + + +/* Check for two subsystems */ + +Uint32 subsystem_mask=SDL_INIT_VIDEO|SDL_INIT_AUDIO; + +if(SDL_WasInit(subsystem_mask)==subsystem_mask) + printf("Video and Audio initialized.\n"); +else + printf("Video and Audio not initialized.\n"); </PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN642" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlinit.html" +><TT +CLASS="FUNCTION" +>SDL_Init</TT +></A +>, +<A +HREF="sdlinitsubsystem.html" +><TT +CLASS="FUNCTION" +>SDL_Subsystem</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlquit.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgeterror.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Quit</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="general.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetError</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwmgetcaption.html b/distrib/sdl-1.2.15/docs/html/sdlwmgetcaption.html new file mode 100644 index 0000000..829c68a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwmgetcaption.html @@ -0,0 +1,222 @@ +<HTML +><HEAD +><TITLE +>SDL_WM_GetCaption</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WM_SetCaption" +HREF="sdlwmsetcaption.html"><LINK +REL="NEXT" +TITLE="SDL_WM_SetIcon" +HREF="sdlwmseticon.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwmsetcaption.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwmseticon.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWMGETCAPTION" +></A +>SDL_WM_GetCaption</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3556" +></A +><H2 +>Name</H2 +>SDL_WM_GetCaption -- Gets the window title and icon name.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN3559" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN3560" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_WM_GetCaption</B +></CODE +>(char **title, char **icon);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3566" +></A +><H2 +>Description</H2 +><P +>Set pointers to the window <TT +CLASS="PARAMETER" +><I +>title</I +></TT +> and <TT +CLASS="PARAMETER" +><I +>icon</I +></TT +> name.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3571" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlwmsetcaption.html" +><TT +CLASS="FUNCTION" +>SDL_WM_SetCaption</TT +></A +>, +<A +HREF="sdlwmseticon.html" +><TT +CLASS="FUNCTION" +>SDL_WM_SetIcon</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwmsetcaption.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwmseticon.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WM_SetCaption</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WM_SetIcon</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwmgrabinput.html b/distrib/sdl-1.2.15/docs/html/sdlwmgrabinput.html new file mode 100644 index 0000000..740dcd6 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwmgrabinput.html @@ -0,0 +1,224 @@ +<HTML +><HEAD +><TITLE +>SDL_WM_GrabInput</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WM_ToggleFullScreen" +HREF="sdlwmtogglefullscreen.html"><LINK +REL="NEXT" +TITLE="Events" +HREF="event.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwmtogglefullscreen.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="event.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWMGRABINPUT" +></A +>SDL_WM_GrabInput</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3663" +></A +><H2 +>Name</H2 +>SDL_WM_GrabInput -- Grabs mouse and keyboard input.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN3666" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN3667" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>SDL_GrabMode <B +CLASS="FSFUNC" +>SDL_WM_GrabInput</B +></CODE +>(SDL_GrabMode mode);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3673" +></A +><H2 +>Description</H2 +><P +>Grabbing means that the mouse is confined to the application window, +and nearly all keyboard input is passed directly to the application, +and not interpreted by a window manager, if any.</P +><P +>When <TT +CLASS="PARAMETER" +><I +>mode</I +></TT +> is <TT +CLASS="LITERAL" +>SDL_GRAB_QUERY</TT +> the grab mode is not changed, but the current grab mode is returned.</P +><P +><PRE +CLASS="PROGRAMLISTING" +>typedef enum { + SDL_GRAB_QUERY, + SDL_GRAB_OFF, + SDL_GRAB_ON +} SDL_GrabMode;</PRE +> + </P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3681" +></A +><H2 +>Return Value</H2 +><P +>The current/new <SPAN +CLASS="STRUCTNAME" +>SDL_GrabMode</SPAN +>.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwmtogglefullscreen.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="event.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WM_ToggleFullScreen</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Events</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwmiconifywindow.html b/distrib/sdl-1.2.15/docs/html/sdlwmiconifywindow.html new file mode 100644 index 0000000..1113656 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwmiconifywindow.html @@ -0,0 +1,211 @@ +<HTML +><HEAD +><TITLE +>SDL_WM_IconifyWindow</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WM_SetIcon" +HREF="sdlwmseticon.html"><LINK +REL="NEXT" +TITLE="SDL_WM_ToggleFullScreen" +HREF="sdlwmtogglefullscreen.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwmseticon.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwmtogglefullscreen.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWMICONIFYWINDOW" +></A +>SDL_WM_IconifyWindow</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3617" +></A +><H2 +>Name</H2 +>SDL_WM_IconifyWindow -- Iconify/Minimise the window</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN3620" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN3621" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_WM_IconifyWindow</B +></CODE +>(void);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3627" +></A +><H2 +>Description</H2 +><P +>If the application is running in a window managed environment SDL attempts to iconify/minimise it. If <TT +CLASS="FUNCTION" +>SDL_WM_IconifyWindow</TT +> is successful, the application will receive a <A +HREF="sdlactiveevent.html" +><TT +CLASS="LITERAL" +>SDL_APPACTIVE</TT +></A +> loss event.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3633" +></A +><H2 +>Return Value</H2 +><P +>Returns non-zero on success or <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> if iconification is not support or was refused by the window manager.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwmseticon.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwmtogglefullscreen.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WM_SetIcon</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WM_ToggleFullScreen</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwmsetcaption.html b/distrib/sdl-1.2.15/docs/html/sdlwmsetcaption.html new file mode 100644 index 0000000..bc47c27 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwmsetcaption.html @@ -0,0 +1,212 @@ +<HTML +><HEAD +><TITLE +>SDL_WM_SetCaption</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="PREVIOUS" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="NEXT" +TITLE="SDL_WM_GetCaption" +HREF="sdlwmgetcaption.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="wm.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwmgetcaption.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWMSETCAPTION" +></A +>SDL_WM_SetCaption</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3532" +></A +><H2 +>Name</H2 +>SDL_WM_SetCaption -- Sets the window tile and icon name.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN3535" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN3536" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_WM_SetCaption</B +></CODE +>(const char *title, const char *icon);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3542" +></A +><H2 +>Description</H2 +><P +>Sets the title-bar and icon name of the display window.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3545" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlwmgetcaption.html" +><TT +CLASS="FUNCTION" +>SDL_WM_GetCaption</TT +></A +>, +<A +HREF="sdlwmseticon.html" +><TT +CLASS="FUNCTION" +>SDL_WM_SetIcon</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwmgetcaption.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Window Management</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WM_GetCaption</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwmseticon.html b/distrib/sdl-1.2.15/docs/html/sdlwmseticon.html new file mode 100644 index 0000000..12eb207 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwmseticon.html @@ -0,0 +1,260 @@ +<HTML +><HEAD +><TITLE +>SDL_WM_SetIcon</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WM_GetCaption" +HREF="sdlwmgetcaption.html"><LINK +REL="NEXT" +TITLE="SDL_WM_IconifyWindow" +HREF="sdlwmiconifywindow.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwmgetcaption.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwmiconifywindow.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWMSETICON" +></A +>SDL_WM_SetIcon</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3582" +></A +><H2 +>Name</H2 +>SDL_WM_SetIcon -- Sets the icon for the display window.</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN3585" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN3586" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>void <B +CLASS="FSFUNC" +>SDL_WM_SetIcon</B +></CODE +>(SDL_Surface *icon, Uint8 *mask);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3592" +></A +><H2 +>Description</H2 +><P +>Sets the icon for the display window. Win32 icons must be 32x32.</P +><P +>This function must be called before the first call to +<A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +>.</P +><P +>The <TT +CLASS="PARAMETER" +><I +>mask</I +></TT +> is a bitmask that describes the shape of the +icon. If <TT +CLASS="PARAMETER" +><I +>mask</I +></TT +> is NULL, then the shape is determined by +the colorkey of <TT +CLASS="PARAMETER" +><I +>icon</I +></TT +>, if any, or makes the icon +rectangular (no transparency) otherwise.</P +><P +>If <TT +CLASS="PARAMETER" +><I +>mask</I +></TT +> is non-NULL, it points to a bitmap with bits set +where the corresponding pixel should be visible. The format of the bitmap is as +follows: Scanlines come in the usual top-down order. Each scanline consists of +(width / 8) bytes, rounded up. The most significant bit of each byte represents +the leftmost pixel.</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3603" +></A +><H2 +>Example</H2 +><PRE +CLASS="PROGRAMLISTING" +>SDL_WM_SetIcon(SDL_LoadBMP("icon.bmp"), NULL);</PRE +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3606" +></A +><H2 +>See Also</H2 +><P +><A +HREF="sdlsetvideomode.html" +><TT +CLASS="FUNCTION" +>SDL_SetVideoMode</TT +></A +>, +<A +HREF="sdlwmsetcaption.html" +><TT +CLASS="FUNCTION" +>SDL_WM_SetCaption</TT +></A +></P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwmgetcaption.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwmiconifywindow.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WM_GetCaption</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WM_IconifyWindow</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/sdlwmtogglefullscreen.html b/distrib/sdl-1.2.15/docs/html/sdlwmtogglefullscreen.html new file mode 100644 index 0000000..b7973de --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdlwmtogglefullscreen.html @@ -0,0 +1,205 @@ +<HTML +><HEAD +><TITLE +>SDL_WM_ToggleFullScreen</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="Window Management" +HREF="wm.html"><LINK +REL="PREVIOUS" +TITLE="SDL_WM_IconifyWindow" +HREF="sdlwmiconifywindow.html"><LINK +REL="NEXT" +TITLE="SDL_WM_GrabInput" +HREF="sdlwmgrabinput.html"></HEAD +><BODY +CLASS="REFENTRY" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlwmiconifywindow.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwmgrabinput.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><H1 +><A +NAME="SDLWMTOGGLEFULLSCREEN" +></A +>SDL_WM_ToggleFullScreen</H1 +><DIV +CLASS="REFNAMEDIV" +><A +NAME="AEN3641" +></A +><H2 +>Name</H2 +>SDL_WM_ToggleFullScreen -- Toggles fullscreen mode</DIV +><DIV +CLASS="REFSYNOPSISDIV" +><A +NAME="AEN3644" +></A +><H2 +>Synopsis</H2 +><DIV +CLASS="FUNCSYNOPSIS" +><A +NAME="AEN3645" +></A +><P +></P +><PRE +CLASS="FUNCSYNOPSISINFO" +>#include "SDL.h"</PRE +><P +><CODE +><CODE +CLASS="FUNCDEF" +>int <B +CLASS="FSFUNC" +>SDL_WM_ToggleFullScreen</B +></CODE +>(SDL_Surface *surface);</CODE +></P +><P +></P +></DIV +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3651" +></A +><H2 +>Description</H2 +><P +>Toggles the application between windowed and fullscreen mode, if supported. (X11 is the only target currently supported, BeOS support is experimental).</P +></DIV +><DIV +CLASS="REFSECT1" +><A +NAME="AEN3654" +></A +><H2 +>Return Value</H2 +><P +>Returns <SPAN +CLASS="RETURNVALUE" +>0</SPAN +> on failure or <SPAN +CLASS="RETURNVALUE" +>1</SPAN +> on success.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlwmiconifywindow.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwmgrabinput.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_WM_IconifyWindow</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="wm.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WM_GrabInput</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/thread.html b/distrib/sdl-1.2.15/docs/html/thread.html new file mode 100644 index 0000000..8ef2c92 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/thread.html @@ -0,0 +1,313 @@ +<HTML +><HEAD +><TITLE +>Multi-threaded Programming</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CDtrack" +HREF="sdlcdtrack.html"><LINK +REL="NEXT" +TITLE="SDL_CreateThread" +HREF="sdlcreatethread.html"><META +NAME="KEYWORD" +CONTENT="threads"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcdtrack.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlcreatethread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="THREAD" +></A +>Chapter 12. Multi-threaded Programming</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlcreatethread.html" +>SDL_CreateThread</A +> -- Creates a new thread of execution that shares its parent's properties.</DT +><DT +><A +HREF="sdlthreadid.html" +>SDL_ThreadID</A +> -- Get the 32-bit thread identifier for the current thread.</DT +><DT +><A +HREF="sdlgetthreadid.html" +>SDL_GetThreadID</A +> -- Get the SDL thread ID of a SDL_Thread</DT +><DT +><A +HREF="sdlwaitthread.html" +>SDL_WaitThread</A +> -- Wait for a thread to finish.</DT +><DT +><A +HREF="sdlkillthread.html" +>SDL_KillThread</A +> -- Gracelessly terminates the thread.</DT +><DT +><A +HREF="sdlcreatemutex.html" +>SDL_CreateMutex</A +> -- Create a mutex</DT +><DT +><A +HREF="sdldestroymutex.html" +>SDL_DestroyMutex</A +> -- Destroy a mutex</DT +><DT +><A +HREF="sdlmutexp.html" +>SDL_mutexP</A +> -- Lock a mutex</DT +><DT +><A +HREF="sdlmutexv.html" +>SDL_mutexV</A +> -- Unlock a mutex</DT +><DT +><A +HREF="sdlcreatesemaphore.html" +>SDL_CreateSemaphore</A +> -- Creates a new semaphore and assigns an initial value to it.</DT +><DT +><A +HREF="sdldestroysemaphore.html" +>SDL_DestroySemaphore</A +> -- Destroys a semaphore that was created by <A +HREF="sdlcreatesemaphore.html" +>SDL_CreateSemaphore</A +>.</DT +><DT +><A +HREF="sdlsemwait.html" +>SDL_SemWait</A +> -- Lock a semaphore and suspend the thread if the semaphore value is zero.</DT +><DT +><A +HREF="sdlsemtrywait.html" +>SDL_SemTryWait</A +> -- Attempt to lock a semaphore but don't suspend the thread.</DT +><DT +><A +HREF="sdlsemwaittimeout.html" +>SDL_SemWaitTimeout</A +> -- Lock a semaphore, but only wait up to a specified maximum time.</DT +><DT +><A +HREF="sdlsempost.html" +>SDL_SemPost</A +> -- Unlock a semaphore.</DT +><DT +><A +HREF="sdlsemvalue.html" +>SDL_SemValue</A +> -- Return the current value of a semaphore.</DT +><DT +><A +HREF="sdlcreatecond.html" +>SDL_CreateCond</A +> -- Create a condition variable</DT +><DT +><A +HREF="sdldestroycond.html" +>SDL_DestroyCond</A +> -- Destroy a condition variable</DT +><DT +><A +HREF="sdlcondsignal.html" +>SDL_CondSignal</A +> -- Restart a thread wait on a condition variable</DT +><DT +><A +HREF="sdlcondbroadcast.html" +>SDL_CondBroadcast</A +> -- Restart all threads waiting on a condition variable</DT +><DT +><A +HREF="sdlcondwait.html" +>SDL_CondWait</A +> -- Wait on a condition variable</DT +><DT +><A +HREF="sdlcondwaittimeout.html" +>SDL_CondWaitTimeout</A +> -- Wait on a condition variable, with timeout</DT +></DL +></DIV +><P +>SDL provides functions for creating threads, mutexes, semphores and condition variables.</P +><P +>In general, you must be very aware of concurrency and data integrity issues +when writing multi-threaded programs. Some good guidelines include: +<P +></P +><UL +><LI +><P +>Don't call SDL video/event functions from separate threads</P +></LI +><LI +><P +>Don't use any library functions in separate threads</P +></LI +><LI +><P +>Don't perform any memory management in separate threads</P +></LI +><LI +><P +>Lock global variables which may be accessed by multiple threads</P +></LI +><LI +><P +>Never terminate threads, always set a flag and wait for them to quit</P +></LI +><LI +><P +>Think very carefully about all possible ways your code may interact</P +></LI +></UL +></P +><DIV +CLASS="NOTE" +><BLOCKQUOTE +CLASS="NOTE" +><P +><B +>Note: </B +>SDL's threading is not implemented on MacOS, due to the lack of preemptive thread support on that OS (Mac OS X doesn't suffer from this problem)</P +></BLOCKQUOTE +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcdtrack.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlcreatethread.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CDtrack</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_CreateThread</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/time.html b/distrib/sdl-1.2.15/docs/html/time.html new file mode 100644 index 0000000..854b7cb --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/time.html @@ -0,0 +1,206 @@ +<HTML +><HEAD +><TITLE +>Time</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_CondWaitTimeout" +HREF="sdlcondwaittimeout.html"><LINK +REL="NEXT" +TITLE="SDL_GetTicks" +HREF="sdlgetticks.html"><META +NAME="KEYWORD" +CONTENT="time"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlcondwaittimeout.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetticks.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="TIME" +></A +>Chapter 13. Time</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlgetticks.html" +>SDL_GetTicks</A +> -- Get the number of milliseconds since the SDL library initialization.</DT +><DT +><A +HREF="sdldelay.html" +>SDL_Delay</A +> -- Wait a specified number of milliseconds before returning.</DT +><DT +><A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +> -- Add a timer which will call a callback after the specified number of milliseconds has +elapsed.</DT +><DT +><A +HREF="sdlremovetimer.html" +>SDL_RemoveTimer</A +> -- Remove a timer which was added with +<A +HREF="sdladdtimer.html" +>SDL_AddTimer</A +>.</DT +><DT +><A +HREF="sdlsettimer.html" +>SDL_SetTimer</A +> -- Set a callback to run after the specified number of milliseconds has +elapsed.</DT +></DL +></DIV +><P +>SDL provides several cross-platform functions for dealing with time. +It provides a way to get the current time, a way to wait a little while, +and a simple timer mechanism. These functions give you two ways of moving an +object every x milliseconds: + +<P +></P +><UL +><LI +><P +>Use a timer callback function. This may have the bad effect that it runs in a seperate thread or uses alarm signals, but it's easier to implement.</P +></LI +><LI +><P +>Or you can get the number of milliseconds passed, and move the object if, for example, 30 ms passed.</P +></LI +></UL +> </P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlcondwaittimeout.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetticks.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_CondWaitTimeout</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetTicks</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/video.html b/distrib/sdl-1.2.15/docs/html/video.html new file mode 100644 index 0000000..9b1434e --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/video.html @@ -0,0 +1,507 @@ +<HTML +><HEAD +><TITLE +>Video</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_envvars" +HREF="sdlenvvars.html"><LINK +REL="NEXT" +TITLE="SDL_GetVideoSurface" +HREF="sdlgetvideosurface.html"><META +NAME="KEYWORD" +CONTENT="video"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdlenvvars.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlgetvideosurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="VIDEO" +></A +>Chapter 6. Video</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlgetvideosurface.html" +>SDL_GetVideoSurface</A +> -- returns a pointer to the current display surface</DT +><DT +><A +HREF="sdlgetvideoinfo.html" +>SDL_GetVideoInfo</A +> -- returns a pointer to information about the video hardware</DT +><DT +><A +HREF="sdlvideodrivername.html" +>SDL_VideoDriverName</A +> -- Obtain the name of the video driver</DT +><DT +><A +HREF="sdllistmodes.html" +>SDL_ListModes</A +> -- Returns a pointer to an array of available screen dimensions for +the given format and video flags</DT +><DT +><A +HREF="sdlvideomodeok.html" +>SDL_VideoModeOK</A +> -- Check to see if a particular video mode is supported.</DT +><DT +><A +HREF="sdlsetvideomode.html" +>SDL_SetVideoMode</A +> -- Set up a video mode with the specified width, height and bits-per-pixel.</DT +><DT +><A +HREF="sdlupdaterect.html" +>SDL_UpdateRect</A +> -- Makes sure the given area is updated on the given screen.</DT +><DT +><A +HREF="sdlupdaterects.html" +>SDL_UpdateRects</A +> -- Makes sure the given list of rectangles is updated on the given screen.</DT +><DT +><A +HREF="sdlflip.html" +>SDL_Flip</A +> -- Swaps screen buffers</DT +><DT +><A +HREF="sdlsetcolors.html" +>SDL_SetColors</A +> -- Sets a portion of the colormap for the given 8-bit surface.</DT +><DT +><A +HREF="sdlsetpalette.html" +>SDL_SetPalette</A +> -- Sets the colors in the palette of an 8-bit surface.</DT +><DT +><A +HREF="sdlsetgamma.html" +>SDL_SetGamma</A +> -- Sets the color gamma function for the display</DT +><DT +><A +HREF="sdlgetgammaramp.html" +>SDL_GetGammaRamp</A +> -- Gets the color gamma lookup tables for the display</DT +><DT +><A +HREF="sdlsetgammaramp.html" +>SDL_SetGammaRamp</A +> -- Sets the color gamma lookup tables for the display</DT +><DT +><A +HREF="sdlmaprgb.html" +>SDL_MapRGB</A +> -- Map a RGB color value to a pixel format.</DT +><DT +><A +HREF="sdlmaprgba.html" +>SDL_MapRGBA</A +> -- Map a RGBA color value to a pixel format.</DT +><DT +><A +HREF="sdlgetrgb.html" +>SDL_GetRGB</A +> -- Get RGB values from a pixel in the specified pixel format.</DT +><DT +><A +HREF="sdlgetrgba.html" +>SDL_GetRGBA</A +> -- Get RGBA values from a pixel in the specified pixel format.</DT +><DT +><A +HREF="sdlcreatergbsurface.html" +>SDL_CreateRGBSurface</A +> -- Create an empty SDL_Surface</DT +><DT +><A +HREF="sdlcreatergbsurfacefrom.html" +>SDL_CreateRGBSurfaceFrom</A +> -- Create an SDL_Surface from pixel data</DT +><DT +><A +HREF="sdlfreesurface.html" +>SDL_FreeSurface</A +> -- Frees (deletes) a SDL_Surface</DT +><DT +><A +HREF="sdllocksurface.html" +>SDL_LockSurface</A +> -- Lock a surface for directly access.</DT +><DT +><A +HREF="sdlunlocksurface.html" +>SDL_UnlockSurface</A +> -- Unlocks a previously locked surface.</DT +><DT +><A +HREF="sdlloadbmp.html" +>SDL_LoadBMP</A +> -- Load a Windows BMP file into an SDL_Surface.</DT +><DT +><A +HREF="sdlsavebmp.html" +>SDL_SaveBMP</A +> -- Save an SDL_Surface as a Windows BMP file.</DT +><DT +><A +HREF="sdlsetcolorkey.html" +>SDL_SetColorKey</A +> -- Sets the color key (transparent pixel) in a blittable surface and +RLE acceleration.</DT +><DT +><A +HREF="sdlsetalpha.html" +>SDL_SetAlpha</A +> -- Adjust the alpha properties of a surface</DT +><DT +><A +HREF="sdlsetcliprect.html" +>SDL_SetClipRect</A +> -- Sets the clipping rectangle for a surface.</DT +><DT +><A +HREF="sdlgetcliprect.html" +>SDL_GetClipRect</A +> -- Gets the clipping rectangle for a surface.</DT +><DT +><A +HREF="sdlconvertsurface.html" +>SDL_ConvertSurface</A +> -- Converts a surface to the same format as another surface.</DT +><DT +><A +HREF="sdlblitsurface.html" +>SDL_BlitSurface</A +> -- This performs a fast blit from the source surface to the destination surface.</DT +><DT +><A +HREF="sdlfillrect.html" +>SDL_FillRect</A +> -- This function performs a fast fill of the given rectangle with some color</DT +><DT +><A +HREF="sdldisplayformat.html" +>SDL_DisplayFormat</A +> -- Convert a surface to the display format</DT +><DT +><A +HREF="sdldisplayformatalpha.html" +>SDL_DisplayFormatAlpha</A +> -- Convert a surface to the display format</DT +><DT +><A +HREF="sdlwarpmouse.html" +>SDL_WarpMouse</A +> -- Set the position of the mouse cursor.</DT +><DT +><A +HREF="sdlcreatecursor.html" +>SDL_CreateCursor</A +> -- Creates a new mouse cursor.</DT +><DT +><A +HREF="sdlfreecursor.html" +>SDL_FreeCursor</A +> -- Frees a cursor created with SDL_CreateCursor.</DT +><DT +><A +HREF="sdlsetcursor.html" +>SDL_SetCursor</A +> -- Set the currently active mouse cursor.</DT +><DT +><A +HREF="sdlgetcursor.html" +>SDL_GetCursor</A +> -- Get the currently active mouse cursor.</DT +><DT +><A +HREF="sdlshowcursor.html" +>SDL_ShowCursor</A +> -- Toggle whether or not the cursor is shown on the screen.</DT +><DT +><A +HREF="sdlglloadlibrary.html" +>SDL_GL_LoadLibrary</A +> -- Specify an OpenGL library</DT +><DT +><A +HREF="sdlglgetprocaddress.html" +>SDL_GL_GetProcAddress</A +> -- Get the address of a GL function</DT +><DT +><A +HREF="sdlglgetattribute.html" +>SDL_GL_GetAttribute</A +> -- Get the value of a special SDL/OpenGL attribute</DT +><DT +><A +HREF="sdlglsetattribute.html" +>SDL_GL_SetAttribute</A +> -- Set a special SDL/OpenGL attribute</DT +><DT +><A +HREF="sdlglswapbuffers.html" +>SDL_GL_SwapBuffers</A +> -- Swap OpenGL framebuffers/Update Display</DT +><DT +><A +HREF="sdlcreateyuvoverlay.html" +>SDL_CreateYUVOverlay</A +> -- Create a YUV video overlay</DT +><DT +><A +HREF="sdllockyuvoverlay.html" +>SDL_LockYUVOverlay</A +> -- Lock an overlay</DT +><DT +><A +HREF="sdlunlockyuvoverlay.html" +>SDL_UnlockYUVOverlay</A +> -- Unlock an overlay</DT +><DT +><A +HREF="sdldisplayyuvoverlay.html" +>SDL_DisplayYUVOverlay</A +> -- Blit the overlay to the display</DT +><DT +><A +HREF="sdlfreeyuvoverlay.html" +>SDL_FreeYUVOverlay</A +> -- Free a YUV video overlay</DT +><DT +><A +HREF="sdlglattr.html" +>SDL_GLattr</A +> -- SDL GL Attributes</DT +><DT +><A +HREF="sdlrect.html" +>SDL_Rect</A +> -- Defines a rectangular area</DT +><DT +><A +HREF="sdlcolor.html" +>SDL_Color</A +> -- Format independent color description</DT +><DT +><A +HREF="sdlpalette.html" +>SDL_Palette</A +> -- Color palette for 8-bit pixel formats</DT +><DT +><A +HREF="sdlpixelformat.html" +>SDL_PixelFormat</A +> -- Stores surface format information</DT +><DT +><A +HREF="sdlsurface.html" +>SDL_Surface</A +> -- Graphical Surface Structure</DT +><DT +><A +HREF="sdlvideoinfo.html" +>SDL_VideoInfo</A +> -- Video Target information</DT +><DT +><A +HREF="sdloverlay.html" +>SDL_Overlay</A +> -- YUV video overlay</DT +></DL +></DIV +><P +>SDL presents a very simple interface to the display framebuffer. The +framebuffer is represented as an offscreen surface to which you can write +directly. If you want the screen to show what you have written, call the <A +HREF="sdlupdaterects.html" +>update</A +> function which will +guarantee that the desired portion of the screen is updated.</P +><P +>Before you call any of the SDL video functions, you must first call +<SPAN +CLASS="TOKEN" +>SDL_Init(SDL_INIT_VIDEO)</SPAN +>, which initializes the video +and events in the SDL library. Check the return code, which should be +<SPAN +CLASS="RETURNVALUE" +>0</SPAN +>, to see if there were any errors in starting up.</P +><P +>If you use both sound and video in your application, you need to call +<SPAN +CLASS="TOKEN" +>SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO)</SPAN +> before opening the +sound device, otherwise under Win32 DirectX, you won't be able to set +full-screen display modes.</P +><P +>After you have initialized the library, you can start up the video display in a +number of ways. The easiest way is to pick a common screen resolution and +depth and just initialize the video, checking for errors. You will probably +get what you want, but SDL may be emulating your requested mode and converting +the display on update. The best way is to +<A +HREF="sdlgetvideoinfo.html" +>query</A +>, for the best +video mode closest to the desired one, and then +<A +HREF="sdldisplayformat.html" +>convert</A +> +your images to that pixel format.</P +><P +>SDL currently supports any bit depth >= 8 bits per pixel. 8 bpp formats are +considered 8-bit palettized modes, while 12, 15, 16, 24, and 32 bits per pixel +are considered "packed pixel" modes, meaning each pixel contains the RGB color +components packed in the bits of the pixel.</P +><P +>After you have initialized your video mode, you can take the surface that was +returned, and write to it like any other framebuffer, calling the update +routine as you go.</P +><P +>When you have finished your video access and are ready to quit your +application, you should call "<SPAN +CLASS="TOKEN" +>SDL_Quit()</SPAN +>" to shutdown the +video and events.</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdlenvvars.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlgetvideosurface.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_envvars</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_GetVideoSurface</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file diff --git a/distrib/sdl-1.2.15/docs/html/wm.html b/distrib/sdl-1.2.15/docs/html/wm.html new file mode 100644 index 0000000..f53a349 --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/wm.html @@ -0,0 +1,188 @@ +<HTML +><HEAD +><TITLE +>Window Management</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ +"><LINK +REL="HOME" +TITLE="SDL Library Documentation" +HREF="index.html"><LINK +REL="UP" +TITLE="SDL Reference" +HREF="reference.html"><LINK +REL="PREVIOUS" +TITLE="SDL_Overlay" +HREF="sdloverlay.html"><LINK +REL="NEXT" +TITLE="SDL_WM_SetCaption" +HREF="sdlwmsetcaption.html"><META +NAME="KEYWORD" +CONTENT="wm"><META +NAME="KEYWORD" +CONTENT="function"></HEAD +><BODY +CLASS="CHAPTER" +BGCOLOR="#FFF8DC" +TEXT="#000000" +LINK="#0000ee" +VLINK="#551a8b" +ALINK="#ff0000" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>SDL Library Documentation</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="sdloverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="sdlwmsetcaption.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="CHAPTER" +><H1 +><A +NAME="WM" +></A +>Chapter 7. Window Management</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="sdlwmsetcaption.html" +>SDL_WM_SetCaption</A +> -- Sets the window tile and icon name.</DT +><DT +><A +HREF="sdlwmgetcaption.html" +>SDL_WM_GetCaption</A +> -- Gets the window title and icon name.</DT +><DT +><A +HREF="sdlwmseticon.html" +>SDL_WM_SetIcon</A +> -- Sets the icon for the display window.</DT +><DT +><A +HREF="sdlwmiconifywindow.html" +>SDL_WM_IconifyWindow</A +> -- Iconify/Minimise the window</DT +><DT +><A +HREF="sdlwmtogglefullscreen.html" +>SDL_WM_ToggleFullScreen</A +> -- Toggles fullscreen mode</DT +><DT +><A +HREF="sdlwmgrabinput.html" +>SDL_WM_GrabInput</A +> -- Grabs mouse and keyboard input.</DT +></DL +></DIV +><P +>SDL provides a small set of window management functions which allow applications to change their title and toggle from windowed mode to fullscreen (if available)</P +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="sdloverlay.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="index.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="sdlwmsetcaption.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>SDL_Overlay</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="reference.html" +ACCESSKEY="U" +>Up</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>SDL_WM_SetCaption</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file |