All Projects → marcusva → Py Sdl2

marcusva / Py Sdl2

Licence: other
Python ctypes wrapper around SDL2

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Py Sdl2

Scrcpy
Display and control your Android device
Stars: ✭ 58,880 (+38383.66%)
Mutual labels:  sdl2
Player
FFmpeg and SDL2 video player
Stars: ✭ 119 (-22.22%)
Mutual labels:  sdl2
Sdl2 Examples
Examples for getting started with SDL2, for over 12 different programming languages
Stars: ✭ 136 (-11.11%)
Mutual labels:  sdl2
Sdl2 nim
Wrapper of the SDL 2 library for the Nim language.
Stars: ✭ 108 (-29.41%)
Mutual labels:  sdl2
Go Sdl2
SDL2 binding for Go
Stars: ✭ 1,667 (+989.54%)
Mutual labels:  sdl2
Snippets
(Hopefully) useful code snippets and header-only libs
Stars: ✭ 123 (-19.61%)
Mutual labels:  sdl2
Engge
Open source remake of Thimbleweed Park's engine
Stars: ✭ 94 (-38.56%)
Mutual labels:  sdl2
Knightonline
OpenKO is an open source version of the old school Knight Online MMORPG
Stars: ✭ 146 (-4.58%)
Mutual labels:  sdl2
Mir2x
open source MMORPG game
Stars: ✭ 118 (-22.88%)
Mutual labels:  sdl2
Imgui sdl
ImGuiSDL: SDL2 based renderer for Dear ImGui
Stars: ✭ 134 (-12.42%)
Mutual labels:  sdl2
Prototracker
Prototracker
Stars: ✭ 110 (-28.1%)
Mutual labels:  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 (+1080.39%)
Mutual labels:  sdl2
Teeworlds
A retro multiplayer shooter
Stars: ✭ 1,712 (+1018.95%)
Mutual labels:  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 (-29.41%)
Mutual labels:  sdl2
Openhow
Open-source reimplementation of Gremlin's Hogs of War (PC/PSX).
Stars: ✭ 144 (-5.88%)
Mutual labels:  sdl2
Openrct2
An open source re-implementation of RollerCoaster Tycoon 2 🎢
Stars: ✭ 10,115 (+6511.11%)
Mutual labels:  sdl2
Retro8
PICO-8 implementation with SDL2 and RetroArch back-ends
Stars: ✭ 116 (-24.18%)
Mutual labels:  sdl2
Ffmpeg Video Player
An FFmpeg and SDL Tutorial.
Stars: ✭ 149 (-2.61%)
Mutual labels:  sdl2
Opengl Demo
Just an OpenGL (SDL) demo in pure PHP
Stars: ✭ 146 (-4.58%)
Mutual labels:  sdl2
Nimgame2
A simple 2D game engine for Nim language.
Stars: ✭ 123 (-19.61%)
Mutual labels:  sdl2

PySDL2

Build Status Build Status PyPI - Python Version PyPI Version

PySDL2 is a pure Python wrapper around the SDL2, SDL2_mixer, SDL2_image, SDL2_ttf, and SDL2_gfx libraries. Instead of relying on C code, it uses the built-in ctypes module to interface with SDL2, and provides simple Python classes and wrappers for common SDL2 functionality.

Installation

PySDL2 is easy to install and integrate within your own projects. To install or update to the latest version, simply run one of the following commands in a terminal:

# Install latest stable version from PyPI
pip install -U pysdl2

# Install latest development verion from GitHub
pip install -U git+https://github.com/marcusva/py-sdl2.git

Note: If installing on Python 3 on a computer where both Python 2 and 3 are installed, replace pip with pip3 in the above commands.

Requirements

In order for PySDL2 to work, the binaries for SDL2 (and any SDL2 addon modules you wish to use, e.g. SDL2_mixer) need to be installed on your system. On macOS and Windows, the recommended way to install the SDL2 binaries is via the pysdl2-dll package using pip:

pip install pysdl2-dll

This will install pre-built binaries for all supported SDL2 libraries as a Python package, which PySDL2 will automatically load if available. On Linux and other Unix-like OSes, you can install the SDL2 binaries using your system's package manager (which may be out of date), or alternatively build and install the latest versions yourself from source.

The current minimum supported versions for each library are listed below:

  • SDL2 >= 2.0.5
  • SDL2_mixer >= 2.0.1 (for the sdl2.sdlmixer module)
  • SDL2_ttf >= 2.0.14 (for the sdl2.sdlttf module)
  • SDL2_image >= 2.0.1 (for the sdl2.sdlimage module)
  • SDL2_gfx >= 1.0.3 (for the sdl2.sdlgfx module)

Documentation

If you just started with SDL and PySDL2, it is strongly recommended that you read through the tutorial of the documentation to learn the basics. You can find the documentation at doc/html or online at http://pysdl2.readthedocs.org.

License

This library is given to the public domain. There are no licensing restrictions. Please see doc/copying.rst for further details.

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].