Added new docs for SDL 1.2.1

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4056
This commit is contained in:
Sam Lantinga 2001-06-10 19:31:57 +00:00
parent 16ce3048d6
commit 028b0ae934
371 changed files with 3272 additions and 2287 deletions

View file

@ -20,6 +20,7 @@ EXTRA_DIST = \
guidetimeexamples.html \
guidevideo.html \
guidevideoexamples.html \
guidevideoopengl.html \
index.html \
joystick.html \
reference.html \

View file

@ -4,7 +4,7 @@
>Audio</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>CD-ROM</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>Events</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -85,7 +85,7 @@ CLASS="TOC"
></DT
><DT
><A
HREF="event.html#AEN3194"
HREF="event.html#AEN3269"
>Introduction</A
></DT
><DT
@ -105,7 +105,7 @@ CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN3194"
NAME="AEN3269"
>Introduction</A
></H1
><P

View file

@ -4,7 +4,7 @@
>Event Functions.</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>SDL Event Structures.</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>General</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>SDL Guide</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>About SDLdoc</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -74,9 +74,9 @@ NAME="GUIDEABOUTSDLDOC"
>About SDLdoc</A
></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 proplr working with SDL in their spare time to people who use SDL in their everyday working lives.</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 at the project homepage: http://sdldoc.sourceforge.net.</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"

View file

@ -4,7 +4,7 @@
>Audio Examples</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -80,7 +80,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN343"
NAME="AEN382"
>Opening the audio device</A
></H2
><P
@ -110,7 +110,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN347"
NAME="AEN386"
>Playing audio</A
></H2
><P

View file

@ -4,7 +4,7 @@
>Initializing SDL</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -133,7 +133,15 @@ CLASS="FUNCTION"
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 */
@ -160,7 +168,7 @@ int main() {
exit(0);
}&#13;</PRE
></P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"

View file

@ -4,7 +4,7 @@
>CDROM Examples</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -80,7 +80,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN354"
NAME="AEN393"
>Listing CD-ROM drives</A
></H2
><P
@ -107,7 +107,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN358"
NAME="AEN397"
>Opening the default drive</A
></H2
><P
@ -156,7 +156,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN362"
NAME="AEN401"
>Listing the tracks on a CD</A
></H2
><P
@ -182,7 +182,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN366"
NAME="AEN405"
>Play an entire CD</A
></H2
><P

View file

@ -4,7 +4,7 @@
>Credits</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -81,10 +81,18 @@ 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

View file

@ -4,7 +4,7 @@
>Event Examples</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -13,8 +13,8 @@ REL="UP"
TITLE="Examples"
HREF="guideexamples.html"><LINK
REL="PREVIOUS"
TITLE="Video Examples"
HREF="guidevideoexamples.html"><LINK
TITLE="Examples"
HREF="guideexamples.html"><LINK
REL="NEXT"
TITLE="Audio Examples"
HREF="guideaudioexamples.html"></HEAD
@ -44,7 +44,7 @@ WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="guidevideoexamples.html"
HREF="guideexamples.html"
>Prev</A
></TD
><TD
@ -80,7 +80,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN336"
NAME="AEN375"
>Filtering and Handling Events</A
></H2
><P
@ -192,7 +192,7 @@ WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="guidevideoexamples.html"
HREF="guideexamples.html"
>Prev</A
></TD
><TD
@ -217,7 +217,7 @@ HREF="guideaudioexamples.html"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Video Examples</TD
>Examples</TD
><TD
WIDTH="34%"
ALIGN="center"

View file

@ -4,7 +4,7 @@
>Examples</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -16,8 +16,8 @@ REL="PREVIOUS"
TITLE="Handling the Keyboard"
HREF="guideinputkeyboard.html"><LINK
REL="NEXT"
TITLE="Video Examples"
HREF="guidevideoexamples.html"></HEAD
TITLE="Event Examples"
HREF="guideeventexamples.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFF8DC"
@ -57,7 +57,7 @@ WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="guidevideoexamples.html"
HREF="guideeventexamples.html"
>Next</A
></TD
></TR
@ -81,16 +81,11 @@ CLASS="TOC"
></DT
><DT
><A
HREF="guideexamples.html#AEN297"
HREF="guideexamples.html#AEN369"
>Introduction</A
></DT
><DT
><A
HREF="guidevideoexamples.html"
>Video Examples</A
></DT
><DT
><A
HREF="guideeventexamples.html"
>Event Examples</A
></DT
@ -116,11 +111,11 @@ CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN297"
NAME="AEN369"
>Introduction</A
></H1
><P
>For the moment these examples are taken directly from the old SDL documentation.</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
@ -154,7 +149,7 @@ WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="guidevideoexamples.html"
HREF="guideeventexamples.html"
>Next</A
></TD
></TR
@ -176,10 +171,10 @@ HREF="guide.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Video Examples</TD
>Event Examples</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
>

View file

@ -4,7 +4,7 @@
>Input handling</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -13,8 +13,8 @@ REL="UP"
TITLE="SDL Guide"
HREF="guide.html"><LINK
REL="PREVIOUS"
TITLE="Graphics and Video"
HREF="guidevideo.html"><LINK
TITLE="Using OpenGL With SDL"
HREF="guidevideoopengl.html"><LINK
REL="NEXT"
TITLE="Handling the Keyboard"
HREF="guideinputkeyboard.html"></HEAD
@ -44,7 +44,7 @@ WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="guidevideo.html"
HREF="guidevideoopengl.html"
>Prev</A
></TD
><TD
@ -104,7 +104,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN94"
NAME="AEN135"
>Initialization</A
></H2
><P
@ -117,23 +117,33 @@ HREF="sdlinit.html"
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.
<PRE
>. 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 ) )
> if (SDL_Init( SDL_INIT_VIDEO | SDL_INIT_JOYSTICK ) &#60; 0)
{
fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
exit(1);
}</PRE
>
This will attempt to start SDL with both the video and the joystick subsystems activated.</P
></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="AEN101"
NAME="AEN145"
>Querying</A
></H2
><P
@ -154,8 +164,17 @@ CLASS="FUNCTION"
>. 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.
<PRE
> - 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");
@ -164,14 +183,14 @@ CLASS="PROGRAMLISTING"
{
printf(" %s\n", SDL_JoystickName(i));
}</PRE
></P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN111"
NAME="AEN157"
>Opening a Joystick and Receiving Joystick Events</A
></H2
><P
@ -250,15 +269,25 @@ HREF="sdljoystickopen.html"
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:
<PRE
> 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
>
If we wanted to receive events for other joysticks we would open them with calls to <TT
></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
@ -269,7 +298,7 @@ CLASS="STRUCTNAME"
>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;
> SDL_Event event;
/* Other initializtion code goes here */
/* Start main game loop here */
@ -291,8 +320,17 @@ CLASS="PROGRAMLISTING"
/* 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:
<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 &#60; -3200 ) || (event.jaxis.value &#62; 3200 ) )
@ -300,9 +338,19 @@ CLASS="PROGRAMLISTING"
/* code goes here */
}
break;</PRE
>
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:
<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 &#60; -3200 ) || (event.jaxis.value &#62; 3200 ) )
@ -318,8 +366,9 @@ CLASS="PROGRAMLISTING"
}
}
break;</PRE
>
Ideally the code here should use <TT
></DIV
><P
>Ideally the code here should use <TT
CLASS="STRUCTFIELD"
><I
>event.jaxis.value</I
@ -333,8 +382,17 @@ CLASS="STRUCTFIELD"
></TT
> values.</P
><P
>Button handling is simple compared to the axis checking.
<PRE
>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 )
@ -342,9 +400,9 @@ CLASS="PROGRAMLISTING"
/* code goes here */
}
break;</PRE
>
Button checks are simpler than axis checks because a button can only be pressed or not pressed. The <TT
></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
@ -374,12 +432,21 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN156"
NAME="AEN214"
>Advanced Joystick Functions</A
></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 we 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:
<PRE
>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 we 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 )
@ -387,8 +454,9 @@ CLASS="PROGRAMLISTING"
/* ball handling */
}
break;</PRE
>
The above checks the first joyball on the joystick. The change in position will be stored in <TT
></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
@ -488,9 +556,17 @@ CLASS="LITERAL"
></P
>
Our case for the hat may resemble the following:
<PRE
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.hat | SDL_HAT_UP )
@ -508,7 +584,7 @@ CLASS="PROGRAMLISTING"
/* Do right and down together stuff here */
}
break;</PRE
></P
></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
@ -570,18 +646,26 @@ CLASS="FUNCTION"
></P
>
To use these functions we just have to pass in the joystick structure we got when we opened the joystick. For Example:
<PRE
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
>
This block of code would get the number of buttons on the first joystick in the system. </P
></DIV
><P
>This block of code would get the number of buttons on the first joystick in the system. </P
></DIV
></DIV
></DIV
@ -600,7 +684,7 @@ WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="guidevideo.html"
HREF="guidevideoopengl.html"
>Prev</A
></TD
><TD
@ -625,7 +709,7 @@ HREF="guideinputkeyboard.html"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Graphics and Video</TD
>Using OpenGL With SDL</TD
><TD
WIDTH="34%"
ALIGN="center"

View file

@ -4,7 +4,7 @@
>Handling the Keyboard</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -78,7 +78,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN205"
NAME="AEN271"
>Keyboard Related Structures</A
></H2
><P
@ -88,7 +88,7 @@ CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN208"
NAME="AEN274"
>SDLKey</A
></H3
><P
@ -114,7 +114,7 @@ CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN216"
NAME="AEN282"
>SDLMod</A
></H3
><P
@ -134,7 +134,7 @@ CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN222"
NAME="AEN288"
>SDL_keysym</A
></H3
><PRE
@ -215,7 +215,7 @@ CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN241"
NAME="AEN307"
>SDL_KeyboardEvent</A
></H3
><PRE
@ -283,7 +283,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN258"
NAME="AEN324"
>Reading Keyboard Events</A
></H2
><P
@ -308,8 +308,17 @@ CLASS="LITERAL"
> events using a <TT
CLASS="LITERAL"
>switch</TT
> statement, like so:
<PRE
> 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;
.
@ -334,15 +343,16 @@ CLASS="PROGRAMLISTING"
}
.
.</PRE
>
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
><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="AEN269"
NAME="AEN338"
>A More Detailed Look</A
></H2
><P
@ -384,11 +394,11 @@ CLASS="NOTE"
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN282"
NAME="AEN351"
></A
><P
><B
>Example 3-1. keys.c - Key event information</B
>Example 3-11. Interpreting Key Event Information</B
></P
><PRE
CLASS="PROGRAMLISTING"
@ -405,7 +415,7 @@ CLASS="PROGRAMLISTING"
int quit = 0;
/* Initialise SDL */
if( SDL_Init( SDL_INIT_VIDEO ) ){
if( SDL_Init( SDL_INIT_VIDEO ) &#60; 0){
fprintf( stderr, "Could not initialise SDL: %s\n", SDL_GetError() );
exit( -1 );
}
@ -518,13 +528,13 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN285"
NAME="AEN354"
>Game-type Input</A
></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="AEN288"
NAME="AEN357"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
@ -575,8 +585,17 @@ CLASS="PROGRAMLISTING"
>
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:
<PRE
>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;
@ -649,8 +668,9 @@ CLASS="PROGRAMLISTING"
/* Update the alien position */
alien_x += alien_xvel;
alien_y += alien_yvel;</PRE
>
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
><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

View file

@ -4,7 +4,7 @@
>Preface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>The Basics</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>Time Examples</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -80,7 +80,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN373"
NAME="AEN412"
>Time based game loop</A
></H2
><P

View file

@ -4,7 +4,7 @@
>Graphics and Video</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -16,8 +16,8 @@ REL="PREVIOUS"
TITLE="Initializing SDL"
HREF="guidebasicsinit.html"><LINK
REL="NEXT"
TITLE="Input handling"
HREF="guideinput.html"></HEAD
TITLE="Using OpenGL With SDL"
HREF="guidevideoopengl.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFF8DC"
@ -57,7 +57,7 @@ WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="guideinput.html"
HREF="guidevideoopengl.html"
>Next</A
></TD
></TR
@ -73,573 +73,323 @@ NAME="GUIDEVIDEO"
>Chapter 2. Graphics and Video</A
></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="GUIDEVIDEOOPENGL"
>Using OpenGL With SDL</A
NAME="GUIDEVIDEOINTRO"
>Introduction to SDL Video</A
></H1
><P
>SDL has the ability to create and use OpenGL contexts on several platforms(Linux/X11, Win32, BeOS, MacOS Classic/Toolbox, MacOS 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
>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="AEN65"
>Initialisation</A
NAME="AEN68"
>Initializing the Video Display</A
></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
>This is what almost all SDL programs have to do in one way or
another.</P
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN71"
></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, <I
CLASS="EMPHASIS"
>not</I
> by passing the <TT
CLASS="LITERAL"
>SDL_DOUBLEBUF</TT
> flag to <TT
CLASS="FUNCTION"
>SDL_SetVideoMode</TT
>.
<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 ) &#60; 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-&#62;vfmt-&#62;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
><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) &#60; 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="AEN77"
>Drawing</A
NAME="AEN74"
>Initializing the Best Video Mode</A
></H2
><P
>Apart from initialisation, using OpenGL within SDL is the same as using. However if you have request a double buffered display (using <A
HREF="sdlglsetattribute.html"
><TT
CLASS="FUNCTION"
>SDL_GL_SetAttribute</TT
></A
>) and one (which can be checked by using <A
HREF="sdlglgetattribute.html"
><TT
CLASS="FUNCTION"
>SDL_GL_GetAttribute</TT
></A
>), then you must use <A
HREF="sdlglswapbuffers.html"
><TT
CLASS="FUNCTION"
>SDL_GL_SwapBuffers()</TT
></A
> to swap the buffers and update the display.</P
><P
>A full example code listing is now presented below.</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="AEN87"
NAME="AEN77"
></A
><P
><B
>Example 2-1. gl.c - SDL OpenGL Example</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-&#62;format-&#62;BitsPerPixel);</PRE
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN80"
>Loading and Displaying a BMP File</A
></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-&#62;format-&#62;palette &#38;&#38; screen-&#62;format-&#62;palette) {
SDL_SetColors(screen, image-&#62;format-&#62;palette-&#62;colors, 0,
image-&#62;format-&#62;palette-&#62;ncolors);
}
/* Blit onto the screen surface */
if(SDL_BlitSurface(image, NULL, screen, NULL) &#60; 0)
fprintf(stderr, "BlitSurface error: %s\n", SDL_GetError());
SDL_UpdateRect(screen, 0, 0, image-&#62;w, image-&#62;h);
/* Free the allocated BMP surface */
SDL_FreeSurface(image);
}</PRE
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN86"
>Drawing Directly to the Display</A
></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"
>/*
* SDL OpenGL Tutorial.
* (c) Michael Vance, 2000
* briareos@lokigames.com
*
* Distributed under terms of the LGPL.
* Return the pixel value at (x, y)
* NOTE: The surface must be locked before calling this!
*/
#include &#60;SDL/SDL.h&#62;
#include &#60;GL/gl.h&#62;
#include &#60;GL/glu.h&#62;
#include &#60;stdio.h&#62;
#include &#60;stdlib.h&#62;
static GLboolean should_rotate = GL_TRUE;
static void quit_tutorial( int code )
Uint32 getpixel(SDL_Surface *surface, int x, int y)
{
/*
* Quit SDL so we can release the fullscreen
* mode and restore the previous video settings,
* etc.
*/
SDL_Quit( );
int bpp = surface-&#62;format-&#62;BytesPerPixel;
/* Here p is the address to the pixel we want to retrieve */
Uint8 *p = (Uint8 *)surface-&#62;pixels + y * surface-&#62;pitch + x * bpp;
/* Exit program. */
exit( code );
}
switch(bpp) {
case 1:
return *p;
static void handle_key_down( SDL_keysym* keysym )
{
case 2:
return *(Uint16 *)p;
case 3:
if(SDL_BYTEORDER == SDL_BIG_ENDIAN)
return p[0] &#60;&#60; 16 | p[1] &#60;&#60; 8 | p[2];
else
return p[0] | p[1] &#60;&#60; 8 | p[2] &#60;&#60; 16;
case 4:
return *(Uint32 *)p;
/*
* We're only interested if 'Esc' has
* been presssed.
*
* EXERCISE:
* Handle the arrow keys and have that change the
* viewing position/angle.
*/
switch( keysym-&#62;sym ) {
case SDLK_ESCAPE:
quit_tutorial( 0 );
break;
case SDLK_SPACE:
should_rotate = !should_rotate;
break;
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-&#62;format-&#62;BytesPerPixel;
/* Here p is the address to the pixel we want to set */
Uint8 *p = (Uint8 *)surface-&#62;pixels + y * surface-&#62;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 &#62;&#62; 16) &#38; 0xff;
p[1] = (pixel &#62;&#62; 8) &#38; 0xff;
p[2] = pixel &#38; 0xff;
} else {
p[0] = pixel &#38; 0xff;
p[1] = (pixel &#62;&#62; 8) &#38; 0xff;
p[2] = (pixel &#62;&#62; 16) &#38; 0xff;
}
break;
case 4:
*(Uint32 *)p = pixel;
break;
}
}
static void process_events( void )
{
/* Our SDL event placeholder. */
SDL_Event event;
/* Grab all the events off the queue. */
while( SDL_PollEvent( &#38;event ) ) {
switch( event.type ) {
case SDL_KEYDOWN:
/* Handle key presses. */
handle_key_down( &#38;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 &#62; 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 ) &#60; 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-&#62;vfmt-&#62;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
><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"
>&#13; /* 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-&#62;format, 0xff, 0xff, 0x00);
x = screen-&#62;w / 2;
y = screen-&#62;h / 2;
/* Lock the screen for direct access to the pixels */
if ( SDL_MUSTLOCK(screen) ) {
if ( SDL_LockSurface(screen) &#60; 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;&#13;</PRE
></DIV
></DIV
></DIV
></DIV
@ -674,7 +424,7 @@ WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="guideinput.html"
HREF="guidevideoopengl.html"
>Next</A
></TD
></TR
@ -696,7 +446,7 @@ HREF="guide.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Input handling</TD
>Using OpenGL With SDL</TD
></TR
></TABLE
></DIV

View file

@ -4,7 +4,7 @@
>Video Examples</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -80,7 +80,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN303"
NAME="AEN375"
>Initializing the video display</A
></H2
><P
@ -112,7 +112,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN307"
NAME="AEN379"
>Initializing the best video mode</A
></H2
><P
@ -134,7 +134,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN311"
NAME="AEN383"
>Loading and displaying a BMP file</A
></H2
><P
@ -211,7 +211,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN315"
NAME="AEN387"
>Drawing directly to the display</A
></H2
><P
@ -276,7 +276,7 @@ CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN319"
NAME="AEN391"
>Fastest possible surface blit</A
></H2
><P

View file

@ -0,0 +1,719 @@
<HTML
><HEAD
><TITLE
>Using OpenGL With SDL</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><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
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"
>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"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GUIDEVIDEOOPENGL"
>Using OpenGL With SDL</A
></H1
><P
>SDL has the ability to create and use OpenGL contexts on several platforms(Linux/X11, Win32, BeOS, MacOS Classic/Toolbox, MacOS 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"
>Initialisation</A
></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, <I
CLASS="EMPHASIS"
>not</I
> 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 ) &#60; 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-&#62;vfmt-&#62;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"
>Drawing</A
></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 &#60;SDL/SDL.h&#62;
#include &#60;GL/gl.h&#62;
#include &#60;GL/glu.h&#62;
#include &#60;stdio.h&#62;
#include &#60;stdlib.h&#62;
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-&#62;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( &#38;event ) ) {
switch( event.type ) {
case SDL_KEYDOWN:
/* Handle key presses. */
handle_key_down( &#38;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 &#62; 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 ) &#60; 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-&#62;vfmt-&#62;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
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="guidevideo.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="guideinput.html"
>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"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Input handling</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View file

@ -4,7 +4,7 @@
></TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="NEXT"
TITLE="SDL Guide"
@ -87,7 +87,12 @@ HREF="guidevideo.html"
><DL
><DT
><A
HREF="guidevideo.html#GUIDEVIDEOOPENGL"
HREF="guidevideo.html#GUIDEVIDEOINTRO"
>Introduction to SDL Video</A
></DT
><DT
><A
HREF="guidevideoopengl.html"
>Using OpenGL With SDL</A
></DT
></DL
@ -120,16 +125,11 @@ HREF="guideexamples.html"
><DL
><DT
><A
HREF="guideexamples.html#AEN297"
HREF="guideexamples.html#AEN369"
>Introduction</A
></DT
><DT
><A
HREF="guidevideoexamples.html"
>Video Examples</A
></DT
><DT
><A
HREF="guideeventexamples.html"
>Event Examples</A
></DT
@ -305,7 +305,7 @@ HREF="sdlcreatergbsurfacefrom.html"
><A
HREF="sdlfreesurface.html"
>SDL_FreeSurface</A
> &#8212; Frees (deletes) and SDL_Surface</DT
> &#8212; Frees (deletes) a SDL_Surface</DT
><DT
><A
HREF="sdllocksurface.html"
@ -542,7 +542,7 @@ HREF="event.html"
><DL
><DT
><A
HREF="event.html#AEN3194"
HREF="event.html#AEN3269"
>Introduction</A
></DT
><DT
@ -965,7 +965,7 @@ CLASS="LOT"
></DT
><DT
>8-1. <A
HREF="sdlkey.html#AEN4177"
HREF="sdlkey.html#AEN4252"
>SDL Keysym definitions</A
></DT
><DT
@ -984,14 +984,109 @@ CLASS="LOT"
>List of Examples</B
></DT
><DT
>1-1. <A
HREF="guidebasicsinit.html#AEN60"
>Initializing SDL</A
></DT
><DT
>2-1. <A
HREF="guidevideo.html#AEN87"
>gl.c - SDL OpenGL Example</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="guideinputkeyboard.html#AEN282"
>keys.c - Key event information</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

View file

@ -4,7 +4,7 @@
>Joystick</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>SDL Reference</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"

View file

@ -4,7 +4,7 @@
>SDL_ActiveEvent</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLACTIVEEVENT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3447"
NAME="AEN3522"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN3447"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3450"
NAME="AEN3525"
></A
><H2
>Structure Definition</H2
@ -96,14 +96,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3453"
NAME="AEN3528"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN3455"
NAME="AEN3530"
></A
><P
></P
@ -187,7 +187,7 @@ CLASS="STRUCTFIELD"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3476"
NAME="AEN3551"
></A
><H2
>Description</H2
@ -245,7 +245,7 @@ CLASS="NOTE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3492"
NAME="AEN3567"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_AddTimer</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLADDTIMER"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7854"
NAME="AEN7933"
></A
><H2
>Name</H2
@ -82,14 +82,14 @@ elapsed.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7857"
NAME="AEN7936"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7858"
NAME="AEN7937"
></A
><P
></P
@ -125,7 +125,7 @@ typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7867"
NAME="AEN7946"
></A
><H2
>Description</H2
@ -153,9 +153,15 @@ CLASS="FUNCTION"
>.</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.</P
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 maximum resolution of this timer is 10 ms, which means that if
>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
@ -173,7 +179,7 @@ HREF="sdlinit.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7878"
NAME="AEN7958"
></A
><H2
>Return Value</H2
@ -187,7 +193,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7882"
NAME="AEN7962"
></A
><H2
>Examples</H2
@ -200,7 +206,7 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7886"
NAME="AEN7966"
></A
><H2
>See Also</H2
@ -211,6 +217,13 @@ HREF="sdlremovetimer.html"
CLASS="FUNCTION"
>SDL_RemoveTimer</TT
></A
>,
<A
HREF="sdlpushevent.html"
><TT
CLASS="FUNCTION"
>SDL_PushEvent</TT
></A
></P
></DIV
><DIV

View file

@ -4,7 +4,7 @@
>SDL_AudioCVT</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLAUDIOCVT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6262"
NAME="AEN6337"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN6262"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6265"
NAME="AEN6340"
></A
><H2
>Structure Definition</H2
@ -104,14 +104,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6268"
NAME="AEN6343"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN6270"
NAME="AEN6345"
></A
><P
></P
@ -318,7 +318,7 @@ VALIGN="TOP"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6322"
NAME="AEN6397"
></A
><H2
>Description</H2
@ -459,7 +459,7 @@ CLASS="STRUCTFIELD"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6367"
NAME="AEN6442"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_AudioSpec</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLAUDIOSPEC"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5885"
NAME="AEN5960"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN5885"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5888"
NAME="AEN5963"
></A
><H2
>Structure Definition</H2
@ -101,14 +101,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5891"
NAME="AEN5966"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN5893"
NAME="AEN5968"
></A
><P
></P
@ -245,7 +245,7 @@ VALIGN="TOP"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5928"
NAME="AEN6003"
></A
><H2
>Description</H2
@ -295,7 +295,7 @@ CLASS="FUNCTION"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN5942"
NAME="AEN6017"
></A
><P
></P
@ -499,7 +499,7 @@ CLASS="STRUCTFIELD"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6017"
NAME="AEN6092"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_BlitSurface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLBLITSURFACE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1806"
NAME="AEN1883"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1806"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1809"
NAME="AEN1886"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1810"
NAME="AEN1887"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1816"
NAME="AEN1893"
></A
><H2
>Description</H2
@ -170,27 +170,37 @@ CLASS="PARAMETER"
> is not modified).</P
><P
>The blit function should not be called on a locked surface.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
>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
>.</P
></BLOCKQUOTE
></DIV
> 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-&#62;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="AEN1835"
NAME="AEN1912"
></A
><H2
>Return Value</H2
@ -226,7 +236,7 @@ have access to the video memory again.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1843"
NAME="AEN1920"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_BuildAudioCVT</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLBUILDAUDIOCVT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6380"
NAME="AEN6455"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6380"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6383"
NAME="AEN6458"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6384"
NAME="AEN6459"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6390"
NAME="AEN6465"
></A
><H2
>Description</H2
@ -172,7 +172,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6406"
NAME="AEN6481"
></A
><H2
>Return Values</H2
@ -185,7 +185,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6410"
NAME="AEN6485"
></A
><H2
>Examples</H2
@ -201,7 +201,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6415"
NAME="AEN6490"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CD</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCD"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6941"
NAME="AEN7017"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN6941"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6944"
NAME="AEN7020"
></A
><H2
>Structure Definition</H2
@ -99,14 +99,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6947"
NAME="AEN7023"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN6949"
NAME="AEN7025"
></A
><P
></P
@ -222,7 +222,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6979"
NAME="AEN7055"
></A
><H2
>Description</H2
@ -252,7 +252,7 @@ CLASS="LITERAL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6989"
NAME="AEN7065"
></A
><H2
>Examples</H2
@ -269,7 +269,7 @@ frame_offset=MSF_TO_FRAMES(min, sec, frame);</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6992"
NAME="AEN7068"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDClose</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDCLOSE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6916"
NAME="AEN6992"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6916"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6919"
NAME="AEN6995"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6920"
NAME="AEN6996"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6926"
NAME="AEN7002"
></A
><H2
>Description</H2
@ -127,7 +127,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6930"
NAME="AEN7006"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDEject</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDEJECT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6888"
NAME="AEN6964"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6888"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6891"
NAME="AEN6967"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6892"
NAME="AEN6968"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6898"
NAME="AEN6974"
></A
><H2
>Description</H2
@ -127,7 +127,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6902"
NAME="AEN6978"
></A
><H2
>Return Value</H2
@ -143,7 +143,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6907"
NAME="AEN6983"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDName</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDNAME"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6615"
NAME="AEN6691"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6615"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6618"
NAME="AEN6694"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6619"
NAME="AEN6695"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6625"
NAME="AEN6701"
></A
><H2
>Description</H2
@ -130,7 +130,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6630"
NAME="AEN6706"
></A
><H2
>Examples</H2
@ -156,7 +156,7 @@ NAME="AEN6630"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6640"
NAME="AEN6716"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDNumDrives</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDNUMDRIVES"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6593"
NAME="AEN6669"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6593"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6596"
NAME="AEN6672"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6597"
NAME="AEN6673"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6603"
NAME="AEN6679"
></A
><H2
>Description</H2
@ -122,7 +122,7 @@ NAME="AEN6603"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6606"
NAME="AEN6682"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDOpen</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDOPEN"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6649"
NAME="AEN6725"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6649"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6652"
NAME="AEN6728"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6653"
NAME="AEN6729"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6659"
NAME="AEN6735"
></A
><H2
>Description</H2
@ -137,7 +137,7 @@ Drive 0 is the system default CD-ROM.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6667"
NAME="AEN6743"
></A
><H2
>Examples</H2
@ -178,7 +178,7 @@ SDL_CDClose(cdrom);</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6670"
NAME="AEN6746"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDPause</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDPAUSE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6800"
NAME="AEN6876"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6800"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6803"
NAME="AEN6879"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6804"
NAME="AEN6880"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6810"
NAME="AEN6886"
></A
><H2
>Description</H2
@ -127,7 +127,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6814"
NAME="AEN6890"
></A
><H2
>Return Value</H2
@ -143,7 +143,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6819"
NAME="AEN6895"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDPlay</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDPLAY"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6718"
NAME="AEN6794"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6718"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6721"
NAME="AEN6797"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6722"
NAME="AEN6798"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6728"
NAME="AEN6804"
></A
><H2
>Description</H2
@ -137,7 +137,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6734"
NAME="AEN6810"
></A
><H2
>Return Values</H2
@ -153,7 +153,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6739"
NAME="AEN6815"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDPlayTracks</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDPLAYTRACKS"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6750"
NAME="AEN6826"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6750"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6753"
NAME="AEN6829"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6754"
NAME="AEN6830"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6760"
NAME="AEN6836"
></A
><H2
>Description</H2
@ -186,7 +186,7 @@ CLASS="NOTE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6778"
NAME="AEN6854"
></A
><H2
>Return Value</H2
@ -203,7 +203,7 @@ if there was an error.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6783"
NAME="AEN6859"
></A
><H2
>Examples</H2
@ -228,7 +228,7 @@ if(CD_INDRIVE(SDL_CDStatus(cdrom)))
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6787"
NAME="AEN6863"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDResume</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDRESUME"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6830"
NAME="AEN6906"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6830"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6833"
NAME="AEN6909"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6834"
NAME="AEN6910"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6840"
NAME="AEN6916"
></A
><H2
>Description</H2
@ -127,7 +127,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6844"
NAME="AEN6920"
></A
><H2
>Return Value</H2
@ -143,7 +143,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6849"
NAME="AEN6925"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDStatus</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDSTATUS"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6683"
NAME="AEN6759"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6683"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6686"
NAME="AEN6762"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6687"
NAME="AEN6763"
></A
><P
></P
@ -116,7 +116,7 @@ CLASS="FUNCSYNOPSISINFO"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6694"
NAME="AEN6770"
></A
><H2
>Description</H2
@ -164,7 +164,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6706"
NAME="AEN6782"
></A
><H2
>Example</H2
@ -190,7 +190,7 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6709"
NAME="AEN6785"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDStop</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDSTOP"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6860"
NAME="AEN6936"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6860"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6863"
NAME="AEN6939"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6864"
NAME="AEN6940"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6870"
NAME="AEN6946"
></A
><H2
>Description</H2
@ -127,7 +127,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6874"
NAME="AEN6950"
></A
><H2
>Return Value</H2
@ -143,7 +143,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6879"
NAME="AEN6955"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CDtrack</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCDTRACK"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7003"
NAME="AEN7079"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN7003"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7006"
NAME="AEN7082"
></A
><H2
>Structure Definition</H2
@ -97,14 +97,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7009"
NAME="AEN7085"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN7011"
NAME="AEN7087"
></A
><P
></P
@ -187,7 +187,7 @@ VALIGN="TOP"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7032"
NAME="AEN7108"
></A
><H2
>Description</H2
@ -230,7 +230,7 @@ CLASS="LITERAL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7044"
NAME="AEN7120"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CloseAudio</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCLOSEAUDIO"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6555"
NAME="AEN6631"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6555"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6558"
NAME="AEN6634"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6559"
NAME="AEN6635"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6565"
NAME="AEN6641"
></A
><H2
>Description</H2
@ -122,7 +122,7 @@ NAME="AEN6565"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6568"
NAME="AEN6644"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_Color</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCOLOR"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2581"
NAME="AEN2660"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN2581"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2584"
NAME="AEN2663"
></A
><H2
>Structure Definition</H2
@ -97,14 +97,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2587"
NAME="AEN2666"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2589"
NAME="AEN2668"
></A
><P
></P
@ -181,7 +181,7 @@ VALIGN="TOP"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2608"
NAME="AEN2687"
></A
><H2
>Description</H2
@ -203,7 +203,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2615"
NAME="AEN2694"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CondBroadcast</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCONDBROADCAST"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7712"
NAME="AEN7788"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7712"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7715"
NAME="AEN7791"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7716"
NAME="AEN7792"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7722"
NAME="AEN7798"
></A
><H2
>Description</H2
@ -134,7 +134,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7728"
NAME="AEN7804"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CondSignal</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCONDSIGNAL"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7685"
NAME="AEN7761"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7685"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7688"
NAME="AEN7764"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7689"
NAME="AEN7765"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7695"
NAME="AEN7771"
></A
><H2
>Description</H2
@ -134,7 +134,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7701"
NAME="AEN7777"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CondWait</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCONDWAIT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7739"
NAME="AEN7815"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7739"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7742"
NAME="AEN7818"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7743"
NAME="AEN7819"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7749"
NAME="AEN7825"
></A
><H2
>Description</H2
@ -134,7 +134,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7755"
NAME="AEN7831"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CondWaitTimeout</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCONDWAITTIMEOUT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7768"
NAME="AEN7844"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7768"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7771"
NAME="AEN7847"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7772"
NAME="AEN7848"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7778"
NAME="AEN7854"
></A
><H2
>Description</H2
@ -147,7 +147,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7787"
NAME="AEN7863"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_ConvertAudio</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCONVERTAUDIO"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6426"
NAME="AEN6501"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6426"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6429"
NAME="AEN6504"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6430"
NAME="AEN6505"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6436"
NAME="AEN6511"
></A
><H2
>Description</H2
@ -240,7 +240,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6471"
NAME="AEN6546"
></A
><H2
>Examples</H2
@ -317,7 +317,7 @@ SDL_ConvertAudio(&#38;wav_cvt);
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6474"
NAME="AEN6549"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_ConvertSurface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCONVERTSURFACE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1766"
NAME="AEN1843"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1766"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1769"
NAME="AEN1846"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1770"
NAME="AEN1847"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1776"
NAME="AEN1853"
></A
><H2
>Description</H2
@ -151,7 +151,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1787"
NAME="AEN1864"
></A
><H2
>Return Value</H2
@ -165,7 +165,7 @@ CLASS="LITERAL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1791"
NAME="AEN1868"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateCond</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATECOND"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7634"
NAME="AEN7710"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7634"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7637"
NAME="AEN7713"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7638"
NAME="AEN7714"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7644"
NAME="AEN7720"
></A
><H2
>Description</H2
@ -123,7 +123,7 @@ NAME="AEN7644"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7647"
NAME="AEN7723"
></A
><H2
>Examples</H2
@ -143,7 +143,7 @@ SDL_DestroyCond(cond);</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7650"
NAME="AEN7726"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateCursor</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATECURSOR"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1989"
NAME="AEN2068"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1989"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1992"
NAME="AEN2071"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1993"
NAME="AEN2072"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1999"
NAME="AEN2078"
></A
><H2
>Description</H2
@ -134,7 +134,7 @@ The cursor width must be a multiple of 8 bits.</P
<DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2005"
NAME="AEN2084"
></A
><P
></P
@ -210,7 +210,7 @@ HREF="sdlfreecursor.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2026"
NAME="AEN2105"
></A
><H2
>Example</H2
@ -301,7 +301,7 @@ static SDL_Cursor *init_system_cursor(const char *image[])
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2029"
NAME="AEN2108"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateMutex</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATEMUTEX"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7195"
NAME="AEN7271"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7195"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7198"
NAME="AEN7274"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7199"
NAME="AEN7275"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7205"
NAME="AEN7281"
></A
><H2
>Description</H2
@ -123,7 +123,7 @@ NAME="AEN7205"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7208"
NAME="AEN7284"
></A
><H2
>Examples</H2
@ -152,7 +152,7 @@ SDL_DestroyMutex(mut);&#13;</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7211"
NAME="AEN7287"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateRGBSurface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATERGBSURFACE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1316"
NAME="AEN1358"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1316"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1319"
NAME="AEN1361"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1320"
NAME="AEN1362"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1326"
NAME="AEN1368"
></A
><H2
>Description</H2
@ -153,7 +153,7 @@ CLASS="PARAMETER"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN1338"
NAME="AEN1380"
></A
><P
></P
@ -198,7 +198,21 @@ CLASS="LITERAL"
><TD
ALIGN="LEFT"
VALIGN="TOP"
>With this flag SDL will attempt to find the best location for this surface, either in system memory or video memory, to obtain hardware colorkey blitting support.</TD
>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
@ -211,18 +225,108 @@ CLASS="LITERAL"
><TD
ALIGN="LEFT"
VALIGN="TOP"
>With this flag SDL will attempt to find the best location for this surface, either in system memory or video memory, to obtain hardware alpha support</TD
>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="AEN1357"
NAME="AEN1411"
></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="AEN1415"
></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="AEN1418"
></A
><H2
>See Also</H2
@ -268,6 +372,20 @@ HREF="sdlsurface.html"
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

View file

@ -4,7 +4,7 @@
>SDL_CreateRGBSurfaceFrom</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATERGBSURFACEFROM"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1376"
NAME="AEN1441"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1376"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1379"
NAME="AEN1444"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1380"
NAME="AEN1445"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1386"
NAME="AEN1451"
></A
><H2
>Description</H2
@ -132,7 +132,7 @@ CLASS="PARAMETER"
> specified in the parameter list. The pixel data is not copied into the <SPAN
CLASS="STRUCTNAME"
>SDL_Surface</SPAN
> structure so it should no be freed until the surface has been freed with a called to <A
> 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
@ -153,7 +153,20 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1398"
NAME="AEN1463"
></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="AEN1467"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateSemaphore</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATESEMAPHORE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7311"
NAME="AEN7387"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7311"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7314"
NAME="AEN7390"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7315"
NAME="AEN7391"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7321"
NAME="AEN7397"
></A
><H2
>Description</H2
@ -152,7 +152,7 @@ will atomically increment the semaphore value.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7330"
NAME="AEN7406"
></A
><H2
>Return Value</H2
@ -166,7 +166,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7334"
NAME="AEN7410"
></A
><H2
>Examples</H2
@ -185,7 +185,7 @@ if (my_sem == NULL) {
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7338"
NAME="AEN7414"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateThread</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATETHREAD"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7076"
NAME="AEN7152"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7076"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7079"
NAME="AEN7155"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7080"
NAME="AEN7156"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7086"
NAME="AEN7162"
></A
><H2
>Description</H2
@ -140,7 +140,7 @@ The thread quits when this function returns.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7092"
NAME="AEN7168"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_CreateYUVOverlay</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLCREATEYUVOVERLAY"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2310"
NAME="AEN2389"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2310"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2313"
NAME="AEN2392"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2314"
NAME="AEN2393"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2320"
NAME="AEN2399"
></A
><H2
>Description</H2
@ -159,7 +159,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2333"
NAME="AEN2412"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_Delay</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDELAY"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7830"
NAME="AEN7906"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7830"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7833"
NAME="AEN7909"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7834"
NAME="AEN7910"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7840"
NAME="AEN7916"
></A
><H2
>Description</H2
@ -124,11 +124,25 @@ CLASS="FUNCTION"
CLASS="EMPHASIS"
>least</I
> 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 <I
CLASS="EMPHASIS"
>at least</I
> 10 ms.
Some platforms have shorter clock ticks but this is the most common.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7845"
NAME="AEN7924"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_DestroyCond</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDESTROYCOND"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7663"
NAME="AEN7739"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7663"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7666"
NAME="AEN7742"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7667"
NAME="AEN7743"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7673"
NAME="AEN7749"
></A
><H2
>Description</H2
@ -123,7 +123,7 @@ NAME="AEN7673"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7676"
NAME="AEN7752"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_DestroyMutex</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDESTROYMUTEX"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7224"
NAME="AEN7300"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7224"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7227"
NAME="AEN7303"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7228"
NAME="AEN7304"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7234"
NAME="AEN7310"
></A
><H2
>Description</H2
@ -126,7 +126,7 @@ HREF="sdlcreatemutex.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7238"
NAME="AEN7314"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_DestroySemaphore</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDESTROYSEMAPHORE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7357"
NAME="AEN7433"
></A
><H2
>Name</H2
@ -84,14 +84,14 @@ HREF="sdlcreatesemaphore.html"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7361"
NAME="AEN7437"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7362"
NAME="AEN7438"
></A
><P
></P
@ -116,7 +116,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7368"
NAME="AEN7444"
></A
><H2
>Description</H2
@ -144,7 +144,7 @@ waiting on it.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7375"
NAME="AEN7451"
></A
><H2
>Examples</H2
@ -160,7 +160,7 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7379"
NAME="AEN7455"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_DisplayFormat</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDISPLAYFORMAT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1898"
NAME="AEN1975"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1898"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1901"
NAME="AEN1978"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1902"
NAME="AEN1979"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1908"
NAME="AEN1985"
></A
><H2
>Description</H2
@ -137,7 +137,7 @@ HREF="sdldisplayformatalpha.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1915"
NAME="AEN1992"
></A
><H2
>Return Value</H2
@ -151,7 +151,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1919"
NAME="AEN1996"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_DisplayFormatAlpha</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDISPLAYFORMATALPHA"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1936"
NAME="AEN2013"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1936"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1939"
NAME="AEN2016"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1940"
NAME="AEN2017"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1946"
NAME="AEN2023"
></A
><H2
>Description</H2
@ -128,11 +128,19 @@ HREF="sdlconvertsurface.html"
>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="AEN1951"
NAME="AEN2030"
></A
><H2
>Return Value</H2
@ -146,7 +154,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1955"
NAME="AEN2034"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_DisplayYUVOverlay</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLDISPLAYYUVOVERLAY"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2410"
NAME="AEN2489"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2410"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2413"
NAME="AEN2492"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2414"
NAME="AEN2493"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2420"
NAME="AEN2499"
></A
><H2
>Description</H2
@ -146,7 +146,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2429"
NAME="AEN2508"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_EnableKeyRepeat</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLENABLEKEYREPEAT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5217"
NAME="AEN5292"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5217"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5220"
NAME="AEN5295"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5221"
NAME="AEN5296"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5227"
NAME="AEN5302"
></A
><H2
>Description</H2
@ -155,7 +155,7 @@ CLASS="SYMBOL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5238"
NAME="AEN5313"
></A
><H2
>Return Value</H2

View file

@ -4,7 +4,7 @@
>SDL_EnableUNICODE</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLENABLEUNICODE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5187"
NAME="AEN5262"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5187"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5190"
NAME="AEN5265"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5191"
NAME="AEN5266"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5197"
NAME="AEN5272"
></A
><H2
>Description</H2
@ -143,7 +143,7 @@ that do not have a printable representation. UNICODE translation is disabled by
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5205"
NAME="AEN5280"
></A
><H2
>Return Value</H2
@ -153,7 +153,7 @@ NAME="AEN5205"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5208"
NAME="AEN5283"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_Event</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLEVENT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3214"
NAME="AEN3289"
></A
><H2
>Name</H2
@ -81,7 +81,7 @@ NAME="AEN3214"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3217"
NAME="AEN3292"
></A
><H2
>Structure Definition</H2
@ -106,14 +106,14 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3220"
NAME="AEN3295"
></A
><H2
>Structure Data</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN3222"
NAME="AEN3297"
></A
><P
></P
@ -361,7 +361,7 @@ HREF="sdlsyswmevent.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3289"
NAME="AEN3364"
></A
><H2
>Description</H2
@ -385,7 +385,7 @@ CLASS="STRUCTFIELD"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN3297"
NAME="AEN3372"
></A
><P
></P
@ -648,7 +648,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3377"
NAME="AEN3452"
></A
><H2
>Use</H2
@ -853,7 +853,7 @@ SDL_PushEvent(&#38;user_event);</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3434"
NAME="AEN3509"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_EventState</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLEVENTSTATE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5028"
NAME="AEN5103"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5028"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5031"
NAME="AEN5106"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5032"
NAME="AEN5107"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5038"
NAME="AEN5113"
></A
><H2
>Description</H2
@ -193,7 +193,7 @@ CLASS="STRUCTNAME"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5059"
NAME="AEN5134"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_FillRect</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLFILLRECT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1858"
NAME="AEN1935"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1858"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1861"
NAME="AEN1938"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1862"
NAME="AEN1939"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1868"
NAME="AEN1945"
></A
><H2
>Description</H2
@ -164,7 +164,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1880"
NAME="AEN1957"
></A
><H2
>Return Value</H2
@ -181,7 +181,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1885"
NAME="AEN1962"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_Flip</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLFLIP"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN969"
NAME="AEN1011"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN969"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN972"
NAME="AEN1014"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN973"
NAME="AEN1015"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN979"
NAME="AEN1021"
></A
><H2
>Description</H2
@ -145,7 +145,7 @@ setting the video mode for this function to perform hardware flipping.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN987"
NAME="AEN1029"
></A
><H2
>Return Value</H2
@ -162,7 +162,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN992"
NAME="AEN1034"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_FreeCursor</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLFREECURSOR"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2042"
NAME="AEN2121"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2042"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2045"
NAME="AEN2124"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2046"
NAME="AEN2125"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2052"
NAME="AEN2131"
></A
><H2
>Description</H2
@ -129,7 +129,7 @@ HREF="sdlcreatecursor.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2057"
NAME="AEN2136"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_FreeSurface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,22 +73,22 @@ NAME="SDLFREESURFACE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1409"
NAME="AEN1478"
></A
><H2
>Name</H2
>SDL_FreeSurface&nbsp;--&nbsp;Frees (deletes) and SDL_Surface</DIV
>SDL_FreeSurface&nbsp;--&nbsp;Frees (deletes) a SDL_Surface</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1412"
NAME="AEN1481"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1413"
NAME="AEN1482"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1419"
NAME="AEN1488"
></A
><H2
>Description</H2
@ -129,7 +129,7 @@ HREF="sdlcreatergbsurfacefrom.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1424"
NAME="AEN1493"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_FreeWAV</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLFREEWAV"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6235"
NAME="AEN6310"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6235"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6238"
NAME="AEN6313"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6239"
NAME="AEN6314"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6245"
NAME="AEN6320"
></A
><H2
>Description</H2
@ -139,7 +139,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6253"
NAME="AEN6328"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_FreeYUVOverlay</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLFREEYUVOVERLAY"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2440"
NAME="AEN2519"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2440"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2443"
NAME="AEN2522"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2444"
NAME="AEN2523"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2450"
NAME="AEN2529"
></A
><H2
>Description</H2
@ -136,7 +136,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2457"
NAME="AEN2536"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetAppState</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETAPPSTATE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5309"
NAME="AEN5384"
></A
><H2
>Name</H2
@ -84,14 +84,14 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5313"
NAME="AEN5388"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5314"
NAME="AEN5389"
></A
><P
></P
@ -115,7 +115,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5320"
NAME="AEN5395"
></A
><H2
>Description</H2
@ -124,7 +124,7 @@ NAME="AEN5320"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN5323"
NAME="AEN5398"
></A
><P
></P
@ -180,7 +180,7 @@ VALIGN="TOP"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5338"
NAME="AEN5413"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetAudioStatus</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETAUDIOSTATUS"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6168"
NAME="AEN6243"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN6168"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6171"
NAME="AEN6246"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6172"
NAME="AEN6247"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6178"
NAME="AEN6253"
></A
><H2
>Description</H2
@ -138,7 +138,7 @@ CLASS="LITERAL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6185"
NAME="AEN6260"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetClipRect</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETCLIPRECT"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1738"
NAME="AEN1815"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1738"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1741"
NAME="AEN1818"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1742"
NAME="AEN1819"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1748"
NAME="AEN1825"
></A
><H2
>Description</H2
@ -132,7 +132,7 @@ filled with the clipping rectangle of the surface.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1753"
NAME="AEN1830"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetCursor</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETCURSOR"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2091"
NAME="AEN2170"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2091"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2094"
NAME="AEN2173"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2095"
NAME="AEN2174"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2101"
NAME="AEN2180"
></A
><H2
>Description</H2
@ -122,7 +122,7 @@ NAME="AEN2101"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2104"
NAME="AEN2183"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetEventFilter</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETEVENTFILTER"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4997"
NAME="AEN5072"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN4997"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5000"
NAME="AEN5075"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5001"
NAME="AEN5076"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5007"
NAME="AEN5082"
></A
><H2
>Description</H2
@ -132,7 +132,7 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5013"
NAME="AEN5088"
></A
><H2
>Return Value</H2
@ -145,7 +145,7 @@ CLASS="LITERAL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5017"
NAME="AEN5092"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetGammaRamp</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETGAMMARAMP"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1141"
NAME="AEN1183"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1141"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1144"
NAME="AEN1186"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1145"
NAME="AEN1187"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1151"
NAME="AEN1193"
></A
><H2
>Description</H2
@ -125,7 +125,7 @@ Each table is an array of 256 Uint16 values.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1155"
NAME="AEN1197"
></A
><H2
>Return Value</H2
@ -135,7 +135,7 @@ NAME="AEN1155"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1158"
NAME="AEN1200"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetKeyName</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETKEYNAME"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5162"
NAME="AEN5237"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5162"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5165"
NAME="AEN5240"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5166"
NAME="AEN5241"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5172"
NAME="AEN5247"
></A
><H2
>Description</H2
@ -133,7 +133,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5178"
NAME="AEN5253"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetKeyState</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETKEYSTATE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5068"
NAME="AEN5143"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5068"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5071"
NAME="AEN5146"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5072"
NAME="AEN5147"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5078"
NAME="AEN5153"
></A
><H2
>Description</H2
@ -149,7 +149,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5088"
NAME="AEN5163"
></A
><H2
>Example</H2
@ -163,7 +163,7 @@ if ( keystate[SDLK_RETURN] ) printf("Return Key Pressed.\n");</PRE
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5092"
NAME="AEN5167"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetModState</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETMODSTATE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5103"
NAME="AEN5178"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5103"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5106"
NAME="AEN5181"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5107"
NAME="AEN5182"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5113"
NAME="AEN5188"
></A
><H2
>Description</H2
@ -122,7 +122,7 @@ NAME="AEN5113"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5116"
NAME="AEN5191"
></A
><H2
>Return Value</H2
@ -130,7 +130,7 @@ NAME="AEN5116"
>The return value can be an OR'd combination of the SDLMod enum.</P
><P
><A
NAME="AEN5120"
NAME="AEN5195"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
@ -158,7 +158,7 @@ CLASS="PROGRAMLISTING"
>
SDL also defines the following symbols for convenience:
<A
NAME="AEN5123"
NAME="AEN5198"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
@ -174,7 +174,7 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5125"
NAME="AEN5200"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetMouseState</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETMOUSESTATE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5247"
NAME="AEN5322"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5247"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5250"
NAME="AEN5325"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5251"
NAME="AEN5326"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5257"
NAME="AEN5332"
></A
><H2
>Description</H2
@ -150,7 +150,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5266"
NAME="AEN5341"
></A
><H2
>Example</H2
@ -163,7 +163,7 @@ if(SDL_GetMouseState(NULL, NULL)&#38;SDL_BUTTON(1))
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5269"
NAME="AEN5344"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetRelativeMouseState</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETRELATIVEMOUSESTATE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN5280"
NAME="AEN5355"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN5280"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN5283"
NAME="AEN5358"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN5284"
NAME="AEN5359"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5290"
NAME="AEN5365"
></A
><H2
>Description</H2
@ -152,7 +152,7 @@ CLASS="PARAMETER"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN5300"
NAME="AEN5375"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetRGB</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETRGB"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1261"
NAME="AEN1303"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1261"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1264"
NAME="AEN1306"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1265"
NAME="AEN1307"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1271"
NAME="AEN1313"
></A
><H2
>Description</H2
@ -127,7 +127,7 @@ components from pixel formats with less than 8-bits per RGB component
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1275"
NAME="AEN1317"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetRGBA</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETRGBA"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1290"
NAME="AEN1332"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN1290"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1293"
NAME="AEN1335"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN1294"
NAME="AEN1336"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1300"
NAME="AEN1342"
></A
><H2
>Description</H2
@ -130,7 +130,7 @@ components from pixel formats with less than 8-bits per RGB component
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1305"
NAME="AEN1347"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetThreadID</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETTHREADID"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7118"
NAME="AEN7194"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7118"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7121"
NAME="AEN7197"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7122"
NAME="AEN7198"
></A
><P
></P
@ -113,7 +113,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7128"
NAME="AEN7204"
></A
><H2
>Description</H2
@ -129,7 +129,7 @@ HREF="sdlcreatethread.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7133"
NAME="AEN7209"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetTicks</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETTICKS"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN7808"
NAME="AEN7884"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN7808"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN7811"
NAME="AEN7887"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN7812"
NAME="AEN7888"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7818"
NAME="AEN7894"
></A
><H2
>Description</H2
@ -123,7 +123,7 @@ Note that this value wraps if the program runs for more than ~49 days.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN7821"
NAME="AEN7897"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetVideoInfo</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETVIDEOINFO"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN656"
NAME="AEN695"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN656"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN659"
NAME="AEN698"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN660"
NAME="AEN699"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN666"
NAME="AEN705"
></A
><H2
>Description</H2
@ -136,7 +136,7 @@ pixel format of the "best" video mode.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN672"
NAME="AEN711"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GetVideoSurface</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGETVIDEOSURFACE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN634"
NAME="AEN673"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN634"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN637"
NAME="AEN676"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN638"
NAME="AEN677"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN644"
NAME="AEN683"
></A
><H2
>Description</H2
@ -125,7 +125,7 @@ surface.</P
><DIV
CLASS="REFSECT1"
><A
NAME="AEN647"
NAME="AEN686"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GLattr</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGLATTR"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2470"
NAME="AEN2549"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2470"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2473"
NAME="AEN2552"
></A
><H2
>Attributes</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2475"
NAME="AEN2554"
></A
><P
></P
@ -261,7 +261,7 @@ VALIGN="TOP"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2526"
NAME="AEN2605"
></A
><H2
>Description</H2
@ -286,7 +286,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2534"
NAME="AEN2613"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GL_GetAttribute</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGLGETATTRIBUTE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2210"
NAME="AEN2289"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2210"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2213"
NAME="AEN2292"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2214"
NAME="AEN2293"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2220"
NAME="AEN2299"
></A
><H2
>Description</H2
@ -144,7 +144,7 @@ HREF="sdlglsetattribute.html"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2229"
NAME="AEN2308"
></A
><H2
>Return Value</H2
@ -160,7 +160,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2234"
NAME="AEN2313"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GL_GetProcAddress</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGLGETPROCADDRESS"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2180"
NAME="AEN2259"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2180"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2183"
NAME="AEN2262"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2184"
NAME="AEN2263"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2190"
NAME="AEN2269"
></A
><H2
>Description</H2
@ -139,7 +139,7 @@ CLASS="EMPHASIS"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2198"
NAME="AEN2277"
></A
><H2
>Example</H2
@ -176,7 +176,7 @@ else{
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2201"
NAME="AEN2280"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GL_LoadLibrary</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGLLOADLIBRARY"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2150"
NAME="AEN2229"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2150"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2153"
NAME="AEN2232"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2154"
NAME="AEN2233"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2160"
NAME="AEN2239"
></A
><H2
>Description</H2
@ -148,7 +148,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2171"
NAME="AEN2250"
></A
><H2
>See Also</H2

View file

@ -4,7 +4,7 @@
>SDL_GL_SetAttribute</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
@ -73,7 +73,7 @@ NAME="SDLGLSETATTRIBUTE"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2244"
NAME="AEN2323"
></A
><H2
>Name</H2
@ -81,14 +81,14 @@ NAME="AEN2244"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2247"
NAME="AEN2326"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN2248"
NAME="AEN2327"
></A
><P
></P
@ -112,7 +112,7 @@ CLASS="FSFUNC"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2254"
NAME="AEN2333"
></A
><H2
>Description</H2
@ -150,7 +150,7 @@ CLASS="FUNCTION"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2265"
NAME="AEN2344"
></A
><H2
>Return Value</H2
@ -166,7 +166,7 @@ CLASS="RETURNVALUE"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2270"
NAME="AEN2349"
></A
><H2
>Example</H2
@ -199,7 +199,7 @@ CLASS="LITERAL"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2276"
NAME="AEN2355"
></A
><H2
>See Also</H2

Some files were not shown because too many files have changed in this diff Show more