Skip to content

usdl2

usdl2

Pure-Python usdl2 implementation when the native C module is unavailable.

Shipped as add_ons/usdl2.py so MicroPython loads it via sys.path only when the built-in/frozen usdl2 module is not present. Uses ctypes on CPython and MicroPython win32; ffi/uctypes on MicroPython unix.

Functions:

SDL_DEFINE_PIXELFORMAT

SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes)

Define a pixel format.

SDL_Event

SDL_Event(event=None)

Return an SDL_Event buffer or decode event to a typed struct.