All Projects → xyproto → Sdl2 Examples

xyproto / Sdl2 Examples

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

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language
go
31211 projects - #10 most used programming language
rust
11053 projects
lua
6591 projects
cpp
1120 projects
pascal
1382 projects
d
599 projects
nim
578 projects
crystal
512 projects
cxx
24 projects

Labels

Projects that are alternatives of or similar to Sdl2 Examples

Div Games Studio
Complete cross platform games development package, originally for DOS but now available on modern platforms.
Stars: ✭ 168 (+23.53%)
Mutual labels:  cmake, sdl2
Engine
A basic cross-platform 3D game engine
Stars: ✭ 208 (+52.94%)
Mutual labels:  cmake, sdl2
Ffmpeg Video Player
An FFmpeg and SDL Tutorial.
Stars: ✭ 149 (+9.56%)
Mutual labels:  cmake, sdl2
Anese
Another NES Emulator - written for fun & learning - first implementation of wideNES
Stars: ✭ 323 (+137.5%)
Mutual labels:  cmake, sdl2
Sdl kitchensink
A Simple SDL2 / FFmpeg library for audio/video playback written in C99
Stars: ✭ 53 (-61.03%)
Mutual labels:  cmake, sdl2
Sdl2 Cmake Modules
Modern CMake modules for finding and using the SDL2 library as well as other related libraries: SDL2_image, SDL2_ttf, SDL2_net, SDL2_mixer and SDL2_gfx. (Targets: SDL2::Core, SDL2::Main, SDL2::Image, SDL2::TTF, SDL2::Net, SDL2::Mixer and SDL2::GFX). Mirror of https://gitlab.com/aminosbh/sdl2-cmake-modules
Stars: ✭ 108 (-20.59%)
Mutual labels:  cmake, sdl2
Vcmi
Open-source engine for Heroes of Might and Magic III
Stars: ✭ 2,514 (+1748.53%)
Mutual labels:  cmake, sdl2
Openloco
An open source re-implementation of Chris Sawyer's Locomotion
Stars: ✭ 504 (+270.59%)
Mutual labels:  cmake, sdl2
Openspades
Compatible client of Ace of Spades 0.75
Stars: ✭ 769 (+465.44%)
Mutual labels:  cmake, sdl2
Openrct2
An open source re-implementation of RollerCoaster Tycoon 2 🎢
Stars: ✭ 10,115 (+7337.5%)
Mutual labels:  cmake, sdl2
Xray 16
Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
Stars: ✭ 1,806 (+1227.94%)
Mutual labels:  cmake, sdl2
Limited Systems
Limited Systems
Stars: ✭ 132 (-2.94%)
Mutual labels:  cmake
Ros Travis Integration
ROS package continuous integration using travis-CI
Stars: ✭ 125 (-8.09%)
Mutual labels:  cmake
Chip8cpp
Chip-8 Emulator in C++
Stars: ✭ 125 (-8.09%)
Mutual labels:  cmake
Core
parallel finite element unstructured meshes
Stars: ✭ 124 (-8.82%)
Mutual labels:  cmake
Imgui sdl
ImGuiSDL: SDL2 based renderer for Dear ImGui
Stars: ✭ 134 (-1.47%)
Mutual labels:  sdl2
Example Cpp11 Cmake
Stars: ✭ 129 (-5.15%)
Mutual labels:  cmake
Nimgame2
A simple 2D game engine for Nim language.
Stars: ✭ 123 (-9.56%)
Mutual labels:  sdl2
Teeworlds
A retro multiplayer shooter
Stars: ✭ 1,712 (+1158.82%)
Mutual labels:  sdl2
Snippets
(Hopefully) useful code snippets and header-only libs
Stars: ✭ 123 (-9.56%)
Mutual labels:  sdl2

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
  • Nim 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:

  • OCaml
  • Haskell

Pull requests are welcome.

If you give it a shot that doesn't result in a pull request, please submit a pull request with updated attempt counters:

OCaml: 1
Haskell: 1

General information

  • License: MIT
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].