Giter Site home page Giter Site logo

thomond / sdl2-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xyproto/sdl2-examples

0.0 2.0 0.0 1.69 MB

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

License: MIT License

Makefile 16.81% CMake 3.88% C++ 31.89% C 3.54% Shell 2.87% Crystal 1.29% D 5.18% Pascal 3.45% Go 6.65% Lua 1.84% Ruby 2.15% Nim 2.22% OCaml 2.02% Pony 10.31% Python 2.38% Rust 3.52%

sdl2-examples's Introduction

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 C11, for the C sample
  • 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)
  • OCaml and OCamlSDL2
  • Lua (tested with Lua 5.2) and lua-sdl2

Samples that does not build

  • See the samples that are commented out at the top of the Makefile for a list of samples that currently does not build on 64-bit Arch Linux.

Pull requests are welcome!

General information

  • Author: Alexander F. Rødseth
  • License: MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.