Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
ada
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c11
 
 
c18
 
 
c89
 
 
c99
 
 
 
 
d
 
 
fpc
 
 
 
 
go
 
 
img
 
 
 
 
lua
 
 
 
 
nim
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

SDL2 Examples

Build Status

"hello world" for SDL2 for various programming languages.

Each sample creates a window, displays an image, then waits two seconds and quits.

Requirements

  • The SDL 2 library.
  • See the README or README.md file per sample for more information.

Requirements for some of the languages

  • C compiler that supports C89 (ANSI C), C99 or C11, for the C samples
  • A C++ compiler for the C++ sample
  • GCC 4.8 or later (or clang++) for the C++11 sample
  • Go 1.1 or later and the sdl2 go package (go get github.com/veandco/go-sdl2/sdl)
  • MRuby with SDL2 added to the configuration file
  • Nimrod 0.9.4 and sdl2 installed with babel
  • Python 2 or 3 and PySDL2
  • FPC 2.6.4 (or later than 2.4.0, must have Uint8, Uint16 and Uint32)
  • Lua (tested with Lua 5.2) and lua-sdl2

Languages that are not added yet

I found no straightforward way to add examples for for the following languages:

  • Zig
  • OCaml
  • Haskell
  • Modern C++ in combination with Bazel

For OCaml and Haskell especially, they are not added because the dependencies are impossible.

Pull requests are welcome.

General information

  • License: MIT

About

Examples for getting started with SDL2, for over 12 different programming languages

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.