mirror of
https://github.com/yawut/SDL.git
synced 2026-06-21 11:59:49 -05:00
SDL2 for the Nintendo Wii U (build with "cmake [SDL source path] -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu")
Jesse Anders 2011-03-05 23:30:09 PST
It seems that in Windows XP, setting SDL_GL_ACCELERATED_VISUAL to 1 actually
disables hardware acceleration and puts OpenGL in software mode.
In the source code, the corresponding WGL attribute is first set here:
*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ = WGL_FULL_ACCELERATION_ARB;
Later, this code:
if (_this->gl_config.accelerated >= 0) {
*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ =
(_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB :
WGL_NO_ACCELERATION_ARB);
}
Sets it again if SDL_GL_ACCELERATED_VISUAL has a value other than the default.
More importantly, the documentation I found states that
WGL_GENERIC_ACCELERATION_ARB asks for an MDC driver, which, although I don't
know much about this topic, doesn't seem like the correct choice here. As
mentioned previously, the end effect is that requesting hardware acceleration
in Windows XP actually forces the renderer into software mode (on my system at
least), which I'm guessing isn't the desired behavior.
|
||
|---|---|---|
| acinclude | ||
| android-project | ||
| build-scripts | ||
| include | ||
| src | ||
| test | ||
| VisualC | ||
| VisualCE | ||
| Xcode | ||
| Xcode-iPhoneOS | ||
| .DISABLED-hgeol | ||
| .hgignore | ||
| .hgtags | ||
| .indent.pro | ||
| aclocal.m4 | ||
| Android.mk | ||
| autogen.sh | ||
| Borland.html | ||
| Borland.zip | ||
| BUGS | ||
| configure | ||
| configure.in | ||
| COPYING | ||
| CREDITS | ||
| INSTALL | ||
| Makefile.ds | ||
| Makefile.in | ||
| Makefile.minimal | ||
| Makefile.pandora | ||
| Makefile.wiz | ||
| NOTES | ||
| README | ||
| README-SDL.txt | ||
| README.android | ||
| README.BeOS | ||
| README.DirectFB | ||
| README.ds | ||
| README.gesture | ||
| README.HG | ||
| README.iphoneos | ||
| README.MacOSX | ||
| README.pandora | ||
| README.Platforms | ||
| README.Porting | ||
| README.touch | ||
| README.Watcom | ||
| README.WinCE | ||
| sdl-config.in | ||
| sdl.m4 | ||
| sdl.pc.in | ||
| SDL.spec.in | ||
| TODO | ||
| UNDER_CONSTRUCTION.txt | ||
| VisualC.html | ||
| Watcom-Win32.zip | ||
| WhatsNew | ||
Simple DirectMedia Layer
(SDL)
Version 1.3
---
http://www.libsdl.org/
This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.
The current version supports Windows, Windows CE, Mac OS X, Linux, FreeBSD,
NetBSD, OpenBSD, BSD/OS, Solaris, iOS, and Android. The code contains
support for other operating systems but those are not officially supported.
SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
Pike, Pliant, Python, Ruby, and Smalltalk.
This library is distributed under GNU LGPL version 2, which can be
found in the file "COPYING". This license allows you to use SDL
freely in commercial programs as long as you link with the dynamic
library.
The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation is available in HTML format in "docs/index.html", and
a documentation wiki is available online at:
http://www.libsdl.org/cgi/docwiki.cgi
The test programs in the "test" subdirectory are in the public domain.
Frequently asked questions are answered online:
http://www.libsdl.org/faq.php
If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
http://www.libsdl.org/mailing-list.php
Enjoy!
Sam Lantinga (slouken@libsdl.org)