📄 index.html
字号:
<HTML><HEAD><TITLE></TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="NEXT"TITLE="SDL Guide"HREF="guide.html"></HEAD><BODYCLASS="BOOK"BGCOLOR="#FFF8DC"TEXT="#000000"LINK="#0000ee"VLINK="#551a8b"ALINK="#ff0000"><DIVCLASS="BOOK"><ANAME="AEN1"></A><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT>I. <AHREF="guide.html">SDL Guide</A></DT><DD><DL><DT><AHREF="guidepreface.html">Preface</A></DT><DD><DL><DT><AHREF="guidepreface.html#GUIDEABOUTSDL">About SDL</A></DT><DT><AHREF="guideaboutsdldoc.html">About SDLdoc</A></DT><DT><AHREF="guidecredits.html">Credits</A></DT></DL></DD><DT>1. <AHREF="guidethebasics.html">The Basics</A></DT><DD><DL><DT><AHREF="guidethebasics.html#GUIDEINTRODUCTION">Introduction</A></DT><DT><AHREF="guidebasicsinit.html">Initializing SDL</A></DT></DL></DD><DT>2. <AHREF="guidevideo.html">Graphics and Video</A></DT><DD><DL><DT><AHREF="guidevideo.html#GUIDEVIDEOINTRO">Introduction to SDL Video</A></DT><DT><AHREF="guidevideoopengl.html">Using OpenGL With SDL</A></DT></DL></DD><DT>3. <AHREF="guideinput.html">Input handling</A></DT><DD><DL><DT><AHREF="guideinput.html#GUIDEINPUTJOYSTICK">Handling Joysticks</A></DT><DT><AHREF="guideinputkeyboard.html">Handling the Keyboard</A></DT></DL></DD><DT>4. <AHREF="guideexamples.html">Examples</A></DT><DD><DL><DT><AHREF="guideexamples.html#AEN369">Introduction</A></DT><DT><AHREF="guideeventexamples.html">Event Examples</A></DT><DT><AHREF="guideaudioexamples.html">Audio Examples</A></DT><DT><AHREF="guidecdromexamples.html">CDROM Examples</A></DT><DT><AHREF="guidetimeexamples.html">Time Examples</A></DT></DL></DD></DL></DD><DT>II. <AHREF="reference.html">SDL Reference</A></DT><DD><DL><DT>5. <AHREF="general.html">General</A></DT><DD><DL><DT><AHREF="sdlinit.html">SDL_Init</A> -- Initializes SDL</DT><DT><AHREF="sdlinitsubsystem.html">SDL_InitSubSystem</A> -- Initialize subsystems</DT><DT><AHREF="sdlquitsubsystem.html">SDL_QuitSubSystem</A> -- Shut down a subsystem</DT><DT><AHREF="sdlquit.html">SDL_Quit</A> -- Shut down SDL</DT><DT><AHREF="sdlwasinit.html">SDL_WasInit</A> -- Check which subsystems are initialized</DT><DT><AHREF="sdlgeterror.html">SDL_GetError</A> -- Get SDL error string</DT><DT><AHREF="sdlenvvars.html">SDL_envvars</A> -- SDL environment variables</DT></DL></DD><DT>6. <AHREF="video.html">Video</A></DT><DD><DL><DT><AHREF="sdlgetvideosurface.html">SDL_GetVideoSurface</A> -- returns a pointer to the current display surface</DT><DT><AHREF="sdlgetvideoinfo.html">SDL_GetVideoInfo</A> -- returns a pointer to information about the video hardware</DT><DT><AHREF="sdlvideodrivername.html">SDL_VideoDriverName</A> -- Obtain the name of the video driver</DT><DT><AHREF="sdllistmodes.html">SDL_ListModes</A> -- Returns a pointer to an array of available screen dimensions for the given format and video flags</DT><DT><AHREF="sdlvideomodeok.html">SDL_VideoModeOK</A> -- Check to see if a particular video mode is supported.</DT><DT><AHREF="sdlsetvideomode.html">SDL_SetVideoMode</A> -- Set up a video mode with the specified width, height and bits-per-pixel.</DT><DT><AHREF="sdlupdaterect.html">SDL_UpdateRect</A> -- Makes sure the given area is updated on the given screen.</DT><DT><AHREF="sdlupdaterects.html">SDL_UpdateRects</A> -- Makes sure the given list of rectangles is updated on the given screen.</DT><DT><AHREF="sdlflip.html">SDL_Flip</A> -- Swaps screen buffers</DT><DT><AHREF="sdlsetcolors.html">SDL_SetColors</A> -- Sets a portion of the colormap for the given 8-bit surface.</DT><DT><AHREF="sdlsetpalette.html">SDL_SetPalette</A> -- Sets the colors in the palette of an 8-bit surface.</DT><DT><AHREF="sdlsetgamma.html">SDL_SetGamma</A> -- Sets the color gamma function for the display</DT><DT><AHREF="sdlgetgammaramp.html">SDL_GetGammaRamp</A> -- Gets the color gamma lookup tables for the display</DT><DT><AHREF="sdlsetgammaramp.html">SDL_SetGammaRamp</A> -- Sets the color gamma lookup tables for the display</DT><DT><AHREF="sdlmaprgb.html">SDL_MapRGB</A> -- Map a RGB color value to a pixel format.</DT><DT><AHREF="sdlmaprgba.html">SDL_MapRGBA</A> -- Map a RGBA color value to a pixel format.</DT><DT><AHREF="sdlgetrgb.html">SDL_GetRGB</A> -- Get RGB values from a pixel in the specified pixel format.</DT><DT><AHREF="sdlgetrgba.html">SDL_GetRGBA</A> -- Get RGBA values from a pixel in the specified pixel format.</DT><DT><AHREF="sdlcreatergbsurface.html">SDL_CreateRGBSurface</A> -- Create an empty SDL_Surface</DT><DT><AHREF="sdlcreatergbsurfacefrom.html">SDL_CreateRGBSurfaceFrom</A> -- Create an SDL_Surface from pixel data</DT><DT><AHREF="sdlfreesurface.html">SDL_FreeSurface</A> -- Frees (deletes) a SDL_Surface</DT><DT><AHREF="sdllocksurface.html">SDL_LockSurface</A> -- Lock a surface for directly access.</DT><DT><AHREF="sdlunlocksurface.html">SDL_UnlockSurface</A> -- Unlocks a previously locked surface.</DT><DT><AHREF="sdlloadbmp.html">SDL_LoadBMP</A> -- Load a Windows BMP file into an SDL_Surface.</DT><DT><AHREF="sdlsavebmp.html">SDL_SaveBMP</A> -- Save an SDL_Surface as a Windows BMP file.</DT><DT><AHREF="sdlsetcolorkey.html">SDL_SetColorKey</A> -- Sets the color key (transparent pixel) in a blittable surface andRLE acceleration.</DT><DT><AHREF="sdlsetalpha.html">SDL_SetAlpha</A> -- Adjust the alpha properties of a surface</DT><DT><AHREF="sdlsetcliprect.html">SDL_SetClipRect</A> -- Sets the clipping rectangle for a surface.</DT><DT><AHREF="sdlgetcliprect.html">SDL_GetClipRect</A> -- Gets the clipping rectangle for a surface.</DT><DT><AHREF="sdlconvertsurface.html">SDL_ConvertSurface</A> -- Converts a surface to the same format as another surface.</DT><DT><AHREF="sdlblitsurface.html">SDL_BlitSurface</A> -- This performs a fast blit from the source surface to the destination surface.</DT><DT><AHREF="sdlfillrect.html">SDL_FillRect</A> -- This function performs a fast fill of the given rectangle with some color</DT><DT><AHREF="sdldisplayformat.html">SDL_DisplayFormat</A> -- Convert a surface to the display format</DT><DT><AHREF="sdldisplayformatalpha.html">SDL_DisplayFormatAlpha</A> -- Convert a surface to the display format</DT><DT><AHREF="sdlwarpmouse.html">SDL_WarpMouse</A> -- Set the position of the mouse cursor.</DT><DT><AHREF="sdlcreatecursor.html">SDL_CreateCursor</A> -- Creates a new mouse cursor.</DT><DT><AHREF="sdlfreecursor.html">SDL_FreeCursor</A> -- Frees a cursor created with SDL_CreateCursor.</DT><DT><AHREF="sdlsetcursor.html">SDL_SetCursor</A> -- Set the currently active mouse cursor.</DT><DT><AHREF="sdlgetcursor.html">SDL_GetCursor</A> -- Get the currently active mouse cursor.</DT><DT><AHREF="sdlshowcursor.html">SDL_ShowCursor</A> -- Toggle whether or not the cursor is shown on the screen.</DT><DT><AHREF="sdlglloadlibrary.html">SDL_GL_LoadLibrary</A> -- Specify an OpenGL library</DT><DT><AHREF="sdlglgetprocaddress.html">SDL_GL_GetProcAddress</A> -- Get the address of a GL function</DT><DT><AHREF="sdlglgetattribute.html">SDL_GL_GetAttribute</A> -- Get the value of a special SDL/OpenGL attribute</DT><DT><AHREF="sdlglsetattribute.html">SDL_GL_SetAttribute</A> -- Set a special SDL/OpenGL attribute</DT><DT><AHREF="sdlglswapbuffers.html">SDL_GL_SwapBuffers</A> -- Swap OpenGL framebuffers/Update Display</DT><DT><AHREF="sdlcreateyuvoverlay.html">SDL_CreateYUVOverlay</A> -- Create a YUV video overlay</DT><DT><AHREF="sdllockyuvoverlay.html">SDL_LockYUVOverlay</A> -- Lock an overlay</DT><DT><AHREF="sdlunlockyuvoverlay.html">SDL_UnlockYUVOverlay</A> -- Unlock an overlay</DT><DT><AHREF="sdldisplayyuvoverlay.html">SDL_DisplayYUVOverlay</A> -- Blit the overlay to the display</DT><DT><AHREF="sdlfreeyuvoverlay.html">SDL_FreeYUVOverlay</A> -- Free a YUV video overlay</DT><DT><AHREF="sdlglattr.html">SDL_GLattr</A> -- SDL GL Attributes</DT><DT><AHREF="sdlrect.html">SDL_Rect</A> -- Defines a rectangular area</DT><DT><AHREF="sdlcolor.html">SDL_Color</A> -- Format independent color description</DT><DT><AHREF="sdlpalette.html">SDL_Palette</A> -- Color palette for 8-bit pixel formats</DT><DT><AHREF="sdlpixelformat.html">SDL_PixelFormat</A> -- Stores surface format information</DT><DT><AHREF="sdlsurface.html">SDL_Surface</A> -- Graphical Surface Structure</DT><DT><AHREF="sdlvideoinfo.html">SDL_VideoInfo</A> -- Video Target information</DT><DT><AHREF="sdloverlay.html">SDL_Overlay</A> -- YUV video overlay</DT></DL></DD><DT>7. <AHREF="wm.html">Window Management</A></DT><DD><DL><DT><AHREF="sdlwmsetcaption.html">SDL_WM_SetCaption</A> -- Sets the window tile and icon name.</DT><DT><AHREF="sdlwmgetcaption.html">SDL_WM_GetCaption</A> -- Gets the window title and icon name.</DT><DT><AHREF="sdlwmseticon.html">SDL_WM_SetIcon</A> -- Sets the icon for the display window.</DT><DT><AHREF="sdlwmiconifywindow.html">SDL_WM_IconifyWindow</A> -- Iconify/Minimise the window</DT><DT><AHREF="sdlwmtogglefullscreen.html">SDL_WM_ToggleFullScreen</A> -- Toggles fullscreen mode</DT><DT><AHREF="sdlwmgrabinput.html">SDL_WM_GrabInput</A> -- Grabs mouse and keyboard input.</DT></DL></DD><DT>8. <AHREF="event.html">Events</A></DT><DD><DL><DT><AHREF="event.html#AEN3691">Introduction</A></DT><DT><AHREF="eventstructures.html">SDL Event Structures.</A></DT><DT><AHREF="eventfunctions.html">Event Functions.</A></DT></DL></DD><DT>9. <AHREF="joystick.html">Joystick</A></DT><DD><DL><DT><A
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -