资料收集站

SDL

Thursday
Jan 08th
Text size
  • Increase font size
  • Default font size
  • Decrease font size

Using_SDL

Frequently Asked Questions: Using SDL


Table Of Contents


Q: How do I choose a specific video driver?
A: You can set the environment variable "SDL_VIDEODRIVER" to the name of the driver you want to use. The drivers available depend on the platform and SDL compile-time options. Here is a partial list for some platforms:
  • Linux:
    • x11 - (default) Use the X11 windowing system
    • dga - Use XFree86 DGA 2.0 for fullscreen hardware acceleration
    • fbcon - Use the framebuffer console
    • directfb - Use the DirectFB API
    • svgalib - Use the SVGAlib API
    • ggi - Use the General Graphics Interface API
    • aalib - Use the Ascii Art library
  • Win32:
    • directx - (default) Use the DirectDraw API
    • windib - Use the standard Win32 GDI

Q: How do I choose a specific audio driver?
A: You can set the environment variable "SDL_AUDIODRIVER" to the name of the driver you want to use. The drivers available depend on the platform and SDL compile-time options. Here is a partial list for some platforms:
  • Linux:
    • dsp - (default) Use the OSS API by opening /dev/dsp
    • dma - Use the OSS API to perform DMA access on /dev/dsp
    • esd - Connect to the ESound audio daemon
    • artsc - Connect to the ARTS audio daemon
  • Win32:
    • dsound - (default) Use the DirectSound API
    • waveout - Use the Win32 MultiMedia API

Q: What environment variables are used by SDL?
A: Mattias Engdeg錼d has made a partial list of the environment variables that SDL may use. Keep in mind that these environment variables are not officially supported, and may change or go away at any time.
ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars

Comments (0)Add Comment

Write comment

busy
Last Updated ( Monday, 10 October 2005 02:32 )  

Google 搜索

相关文章

在线用户

We have 118 guests online