Skip to main content

A wrapper around SDL_gpu

Project description

pysdl-gpu is a wrapper around the SDL_gpu library. It depends on PySDL2, and it uses ctypes.

The SDL_gpu library, as well as its documentation, can be found here:

Feel free to report bugs or make pull requests here:

Note that this library is intended to match the sdl_gpu.h header as closely as possible, and thus, following PEP-8 is less of a priority.


pysdl-gpu requires SDL2 and SDL_gpu to be installed on your system. Alternatively, the environment variable PYSDL2_DLL_PATH can be used to point pysdl-gpu to the location of the SDL2 and SDL_gpu libraries.

Once installed, simply import the library:

import sdlgpu

Refer to SDL_gpu’s documentation for a list of available functions, enums, and structures.


pysdl-gpu is licensed under the terms of the MIT License. For more details on the terms of this license, refer to LICENSE.txt.

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

pysdl-gpu-0.1.3.tar.gz (12.4 kB view hashes)

Uploaded Source

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