没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
2296页
SDL2 文档 Documentation https://wiki.libsdl.org/ 完整离线版 pdf Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.
资源推荐
资源详情
资源评论
Simple DirectMedia Layer
What is it?
Simple DirectMedia Layer is a cross-platform development library
designed to provide low level access to audio, keyboard, mouse,
joystick, and graphics hardware via OpenGL and Direct3D. It is
used by video playback software, emulators, and popular games
including
Valve's award winning catalog and many Humble
Bundle games.
SDL officially supports Windows, Mac OS X, Linux, iOS, and
Android. Support for other platforms may be found in the source
code.
SDL is written in C, works natively with C++, and there are bindings
available for several other languages, including C# and Python.
SDL 2.0 is distributed under the
zlib license. This license allows
you to use SDL freely in any software.
This is the SDL wiki; SDL's main website is
https://libsdl.org/.
This wiki is your portal to documentation and other resources for
SDL 2.0.
Using the SDL documentation Wiki
Use the links under the Navigation Links heading in the left-hand
menu to access:
Introduction
An introduction to the features in SDL 2.0.
Includes a Migration Guide from 1.2 to 2.0!
Source Code
How to download the source code to SDL.
Installation
SDL Wiki
Search Wiki
Quick Links
FrontPage
Introduction
Support
API By Name
API By Category
Contributing
RecentChanges
FindPage
Wiki Help
User Actions
Login
Titles
Text
How to install SDL on your platform of choice and link
your program against it.
API reference by Name or by Category
The official documentation for the API. Look here to find
detailed information about the functions, structures, and
enumerations.
Tutorials
Want to learn about a feature in SDL you haven't used
before? Here's a great place to get started!
Articles
A sampling of the articles that have been written about
SDL.
Books
Looking for more information than you can get online?
Check out the books listed here.
FAQs
A few of the most commonly asked questions about
using SDL are answered here.
Forums
A great place to keep up with the latest news, help other
users out, and ask questions.
Contributing
Users wishing to contribute content to the wiki should
follow the guidelines provided in this guide.
We hope you find everything you are looking for and enjoy using
SDL. If anything is not addressed somewhere here feel free to take
advantage of the Feedback form in the upper right or send an email
to
<ANTI SPAM wiki AT libsdl DOT org>.
Enjoy!
MoinMoin Powered Python Powered GPL licensed Valid HTML 4.01
Introduction to SDL 2.0
Contents
Introduction to SDL
What is SDL?
What can SDL do?
What platforms does SDL run on?
How to get and install SDL
Transitioning from SDL 1.2 to 2.0
1. Introduction to SDL
1.1. What is SDL?
Simple DirectMedia Layer is a cross-platform development library
designed to provide low level access to audio, keyboard, mouse,
joystick, and graphics hardware via OpenGL and Direct3D. It is
used by video playback software, emulators, and popular games
including
Valve's award winning catalog and many Humble
Bundle games.
SDL officially supports Windows, Mac OS X, Linux, iOS, and
Android. Support for other platforms may be found in the source
code.
For the latest information on what is supported see the page
about Installation.
SDL is written in C, works natively with C++, and there are bindings
available for several other languages, including C# and Python.
For the latest list of languages see
http://www.libsdl.org/languages.php
SDL 2.0 is distributed under the zlib license. This license allows
you to use SDL freely in any software. The Simple DirectMedia
Layer library (SDL) is a general API that provides low level access
to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and
2D framebuffer across multiple platforms.
SDL Wiki
Search Wiki
Quick Links
FrontPage
Introduction
Support
API By Name
API By Category
Contributing
RecentChanges
FindPage
Wiki Help
User Actions
Login
Titles
Text
1.2. What can SDL do?
Read ahead for an overview of what SDL is capable of. If you're
simply interested in the changes from 1.2 to 2.0, check out the
Migration Guide.
Video
3D graphics:
SDL can be used in combination with the OpenGL API
or Direct3D API for 3D graphics
Accelerated 2D render API:
Supports easy rotation, scaling and alpha blending, all
accelerated using modern 3D APIs
Acceleration is supported using OpenGL and Direct3D,
and there is a software fallback
Create and manage multiple windows
Input Events
Events and API functions provided for:
Application and window state changes
Mouse input
Keyboard input
Joystick and game controller input
Multitouch gestures
Each event can be enabled or disabled with
SDL_EventState()
Events are passed through a user-specified filter function
before being posted to the internal event queue
Thread-safe event queue
Force Feedback
Force feedback is supported under Windows, Mac OS X and
Linux
Audio
Set audio playback of 8-bit and 16-bit audio, mono stereo or
5.1 surround sound, with optional conversion if the format is
not supported by the hardware
Audio runs independently in a separate thread, filled via a
user callback mechanism
Designed for custom software audio mixers, but
SDL_mixer provides a complete audio/music output library
File I/O Abstraction
General purpose abstraction for opening, reading and writing
data
Built-in support for files and memory
Shared Object Support
Load shared objects (DLL on Windows, .dylib on Mac OS X,
.so on Linux)
Lookup functions in shared objects
Threads
Simple thread creation API
Simple thread local storage API
Mutexes, semaphores and condition variables
Atomic operations for lockless programming
Timers
Get the number of milliseconds elapsed
Wait a specified number of milliseconds
Create timers that run alongside your code in a separate
thread
Use high resolution counter for profiling
CPU Feature Detection
Query the number of CPUs
Detect CPU features and supported instruction sets
Endian Independence
Detect the endianness of the current system
Routines for fast swapping of data values
Read and write data of a specified endianness
Power Management
Querying power management status
1.3. What platforms does SDL run on?
Windows
Uses Win32 APIs for display, taking advantage of Direct3D for
hardware acceleration
Uses DirectSound and XAudio2 for sound
Mac OS X
Uses Cocoa for video display, taking advantage of OpenGL
剩余2295页未读,继续阅读
资源评论
zhenguo.li
- 粉丝: 4
- 资源: 32
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功