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.
SDL version 2.0.10 (stable - Development Libraries) 25.07.2019 -
SDL2-devel-2.0.10-
VC.zip (Visual C++ 32/64-bit)
https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zipSDL2-devel-2.0.10-
mingw.tar.gz (MinGW 32/64-bit)
https://www.libsdl.org/release/SDL2-devel-2.0.10-mingw.tar.gzMac OS X SDL2-2.0.10.dmg
https://www.libsdl.org/release/SDL2-2.0.10.dmgLinux https://www.archlinux.org/packages/extra/x86_64/sdl2/download/Source Code https://www.libsdl.org/release/SDL2-2.0.10.zipSDL2-2.0.10-win32-x86.zip (32-bit Windows) SDL.dll https://www.libsdl.org/release/SDL2-2.0.10-win32-x86.zipSDL2-2.0.10-win32-x64.zip (64-bit Windows) SDL.dll https://www.libsdl.org/release/SDL2-2.0.10-win32-x64.zipImplementation of Mandelbrot set using NASM and C with SDL https://github.com/skalermo/ARKO-Mandelbrot-Set/archive/master.zipJazon Yamamoto - The Black Art of Multiplatform Game Programming-Cengage Learning PTR (2014)
Source code -
http://www.delmarlearning.com/companions/content/1305110382/companionfiles/BAMGP.zipThere are many working examples with the source codes of programs, it covers not only the game world, it mainly describes the technology of sdl.
Mandelbrot-set-x86 - This program draws Mandelbrot set computed in x86 assembly language (nasm) in SDL2-powered window -
https://github.com/piter324/Mandelbrot-set-x86/archive/master.zipFasm with SDL.DLL -
https://board.flatassembler.net/topic.php?t=14324SDL_Animation (Source + Bin) -
https://board.flatassembler.net/download.php?id=6714+
format PE GUI 4.0
include 'win32ax.inc'
SDL_INIT_EVERYTHING = 0x0000FFFF
SDL_SWSURFACE = 0
.code
start:
invoke SDL_Init,SDL_INIT_EVERYTHING
invoke SDL_SetVideoMode,640,480,32,SDL_SWSURFACE
mov [screen],eax
invoke SDL_RWFromFile,"hello.bmp","rb"
invoke SDL_LoadBMP_RW,eax,1
mov [hello],eax
invoke SDL_UpperBlit,[hello],NULL,[screen],NULL
invoke SDL_Flip,[screen]
invoke SDL_Delay,2000
invoke SDL_FreeSurface,[hello]
invoke SDL_Quit
.data
hello dd 0
screen dd 0
section '.idata' import data readable writeable
library kernel32, 'kernel32.dll',\
user32, 'user32.dll',\
msvcrt, 'msvcrt.dll',\
sdl, 'sdl.dll'
include 'API\KERNEL32.INC'
include 'API\USER32.INC'
include 'API\MSVCRT.INC'
include 'API\SDL.INC'
SDL.INC -
https://board.flatassembler.net/download.php?id=6010Simple FASM game engine with SDL2 (Source + Bin) -
https://board.flatassembler.net/download.php?id=7810