Skip to content

Latest commit

 

History

History
214 lines (110 loc) · 3.58 KB

sdl2_sdlgfx.rst

File metadata and controls

214 lines (110 loc) · 3.58 KB

sdl2.sdlgfx

sdl2.sdlgfx - Python bindings for SDL2_gfx

py-sdl2 provides bindings for SDL2_gfx, an unofficial addon library for SDL2 that contains a range of useful functions for rendering shapes, frame pacing, and SDL surface manipulation.

Note that unlike the other SDL2 modules supported by this package, SDL2_gfx is not an official part of the SDL2 project.

Table Of Contents

Framerate management classes and functions

FPSManager

SDL_initFramerate

SDL_setFramerate

SDL_getFramerate

SDL_getFramecount

SDL_framerateDelay

Drawing functions

Pixel drawing functions

pixelColor

pixelRGBA

Line drawing functions

hlineColor

hlineRGBA

vlineColor

vlineRGBA

lineColor

lineRGBA

aalineColor

aalineRGBA

thickLineColor

thickLineRGBA

Rectangle drawing functions

rectangleColor

rectangleRGBA

roundedRectangleColor

roundedRectangleRGBA

boxColor

boxRGBA

roundedBoxColor

roundedBoxRGBA

Circle drawing functions

circleColor

circleRGBA

arcColor

arcRGBA

aacircleColor

aacircleRGBA

filledCircleColor

filledCircleRGBA

Ellipse drawing functions

ellipseColor

ellipseRGBA

aaellipseColor

aaellipseRGBA

filledEllipseColor

filledEllipseRGBA

Pie slice drawing functions

pieColor

pieRGBA

filledPieColor

filledPieRGBA

Triangle drawing functions

trigonColor

trigonRGBA

aatrigonColor

aatrigonRGBA

filledTrigonColor

filledTrigonRGBA

Polygon drawing functions

polygonColor

polygonRGBA

aapolygonColor

aapolygonRGBA

filledPolygonColor

filledPolygonRGBA

texturedPolygon

Bezier curve drawing functions

bezierColor

bezierRGBA

Text rendering functions

gfxPrimitivesSetFont

gfxPrimitivesSetFontRotation

characterColor

characterRGBA

stringColor

stringRGBA

Surface rotation and scaling functions

rotozoomSurface

rotozoomSurfaceXY

rotozoomSurfaceSize

rotozoomSurfaceSizeXY

zoomSurface

zoomSurfaceSize

shrinkSurface

rotateSurface90Degrees