Skip to content
main
Switch branches/tags
Code

Latest commit

i.e. at least SDL_config_windows.h defined HAVE_IMMINTRIN_H without
much checking.  we actually do not need immintrin.h in sdl12-compat
therefore disabled its use in standalone makefiles.

some whitespace tidy-ups.
71ac211

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Simple DirectMedia Layer (SDL) sdl12-compat

https://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.

This code is a compatibility layer; it provides a binary-compatible API for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes. If you are writing new code, please target SDL 2.0 directly and do not use this layer.

If you absolutely must have the real SDL 1.2 ("SDL 1.2 Classic"), please use the source tree at https://github.com/libsdl-org/SDL-1.2, which occasionally gets bug fixes but no formal release. But we strongly encourage you not to do that.

How to use:

  • Build the library. This will need access to SDL2's headers, CMake ( https://cmake.org/ ) and the build tools of your choice. Once built, you will have a drop-in replacement that can be used with any existing binary that relies on SDL 1.2. You can copy this library over the existing 1.2 build, or force it to take priority over a system copy with LD_LIBRARY_PATH, etc. At runtime, sdl12-compat needs to be able to find a copy of SDL2, so plan to include it with the library if necessary.

  • If you want to build an SDL 1.2 program from source code, we have included compatibility headers, so that sdl12-compat can completely replace SDL 1.2 at all points. These headers are just the bare minimum needed for source-level compatibility and don't have a lot of documentation or fanciness at all. The new headers are also under the zlib license. Note that sdl12-compat itself does not use these headers, so if you just want the library, you don't need them.

About

An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes.

Topics

Resources

License

Releases

No releases published