Skip to main content

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.

Project details


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)

Uploaded Source

Built Distribution

pysdl2_cffi-0.1.0-py27-none-any.whl (52.5 kB view hashes)

Uploaded Python 2.7

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page