No project description provided
Project description
An SDL2 wrapper made with cffi. Faster on pypy.
Adapted from headers & wrapper functions from
libSDL2,
https://github.com/torch/sdl2-ffi,
https://bitbucket.org/duangle/pysdl-cffi, and
PySDL2.
My goal is to preserve a flat, faithful-to-C view of the SDL API, then make
it more Pythonic by removing the SDL_ prefix, renaming each SDL_FunctionName to
sdl.functionName, leaving the enum's capitalized. The wrapper will also
convert "out" parameters (most of the time (int *) or other pointer arguments
are passed) to returned tuples, and it will convert SDL_GetError() to an
exception.
It does not yet do all of these things.
This wrapper won't contain anything that doesn't directly translate to part of
the library's API. The goal is to be a dependency for something like pygame,
not a replacement.
Adapted from headers & wrapper functions from
libSDL2,
https://github.com/torch/sdl2-ffi,
https://bitbucket.org/duangle/pysdl-cffi, and
PySDL2.
My goal is to preserve a flat, faithful-to-C view of the SDL API, then make
it more Pythonic by removing the SDL_ prefix, renaming each SDL_FunctionName to
sdl.functionName, leaving the enum's capitalized. The wrapper will also
convert "out" parameters (most of the time (int *) or other pointer arguments
are passed) to returned tuples, and it will convert SDL_GetError() to an
exception.
It does not yet do all of these things.
This wrapper won't contain anything that doesn't directly translate to part of
the library's API. The goal is to be a dependency for something like pygame,
not a replacement.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysdl2-cffi-0.1.0.tar.gz
(53.6 kB
view hashes)
Built Distribution
Close
Hashes for pysdl2_cffi-0.1.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe0267edac1457cf480842770553bedee07e6d45725d8a558181c8b75446e22d |
|
MD5 | e9423763a9365399c5197a3a639b8f6f |
|
BLAKE2b-256 | fbbf17e24a79831bc9ba9f5bc96849257858958ba15e56c69b380c651b101fb5 |