Source

pygame / doc / capi / sdlbase.rst

Full commit

pygame2.sdl.base

The :mod:`pygame2.sdl.base` C API contains fundamental core functions used throughout nearly all :mod:`pygame2.sdl` related modules. As such, it should be considered to be imported in the first place in all C extensions that require parts of :mod:`pygame2.sdl`.

Import

Include headers:

pygame2/pgsdl.h

Macros

The following macros are used in places within the :mod:`pygame2.sdl` and related modules. They are used to check whether certain parts of the SDL subsystems are properly set and initialised.

Functions