{"repo":"interkosmos/fortran-sdl2","free":true,"listed":false,"github":"https://github.com/interkosmos/fortran-sdl2","clone":"git clone https://github.com/interkosmos/fortran-sdl2.git","description":"Fortran 2008 interface bindings to SDL 2.0","language":"Fortran","stars":50,"topics":["fortran","sdl2","sdl","opengl","fpm","fortran-package-manager","game-development","gamedev"],"license":"ISC","category":"game-templates","readme_excerpt":"fortran-sdl2 A collection of ISO C binding interfaces to Simple DirectMedia Layer 2.0 (SDL 2.0), for 2D and 3D game programming in Fortran. SDL versions tested against: Library Version ----------- --------- SDL2 2.32.8 SDL2 image 2.8.8 SDL2 mixer 2.8.1 SDL2 ttf 2.24.0 For bindings to SDL2 gfx, see fortran-sdl2 gfx. Build Instructions If not present already, install SDL 2.0 with development headers (and optionally: SDL image 2.0, SDL mixer 2.0, and/or SDL ttf 2.0). On FreeBSD, run: Either use GNU/BSD make, xmake to build fortran-sdl2 , or the Fortran Package Manager (fpm). Make Run make sdl2 to compile the static library libsdl2.a : On Microsoft Windows, you have to set LIBGL and LIBGLU : On macOS, replace -lGL -lGLU with -framework OpenGL . You can override the default compiler ( gfortran ) by passing the FC argument, for example: Link your Fortran project with libsdl2.a and (optionally) libsdl2 .a , or simply with libfortran-sdl2.a : Library Compilation Linking ------------ ------------------- ----------------------------------------------------------------- SDL2 make sdl2 libsdl2.a -lSDL2 SDL2 image make sdl2 image libsdl2.a libsdl2 image.a -lSDL2 -lSDL2 image SDL2 mixer make sdl2 mixer libsdl2.a libsdl2 mixer.a -lSDL2 -lSDL2 mixer SDL2 ttf make sdl2 ttf libsdl2.a libsdl2 ttf.a -lSDL2 -lSDL2 ttf all make all libfortran-sdl2.a -lSDL2 -lSDL2 image -lSDL2 mixer -lSDL2 ttf xmake Build all static libraries with: Build a particular library with: The default output directory is bu","default_branch":null,"files":null,"tree":[],"storefront":"/r/interkosmos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/interkosmos/fortran-sdl2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}