pygame2.sdlext.constants – Constants for the SDL extensions
This module contains the constants used throughout the pygame2.sdlext
modules.
Filter Constants
Those constants denote the available filter types for the
pygame2.sdlext.transform.smoothscale() function, which can be set
and get using pygame2.sdlext.transform.get_filtertype() and
pygame2.sdlext.transform.set_filtertype().
-
pygame2.sdlext.constants.FILTER_C
- Use the plain C-language based filter. This is possibly the slowest of all
filter types, but guaranteed to work on any platform.
-
pygame2.sdlext.constants.FILTER_MMX
- Use the MMX-based filter. This uses the Intel MMX instruction set to
perform a fast filter operation. It is only available on Intel and AMD
platforms.
-
pygame2.sdlext.constants.FILTER_SSE
- Use the SSE-based filter. This uses the Intel SSE instruction set to
perform a fast filter operation. It is only available on newer Intel and AMD
platforms (Pentium III and above).