| Polygon Functions | |||||||||||||||||||||||||||||||||||||||||||
|
Primitives Polygon Transform Surface Drawing Palette Control Misc Defines Extended Arguments Index Credits |
void SPG_Trigon(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color) - Draws a triangle void SPG_TrigonBlend(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color, Uint8 alpha) - Draws an alpha-blended triangle void SPG_TrigonFilled(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color) - Draws a filled triangle void SPG_TrigonFilledBlend(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color, Uint8 alpha) - Draws a filled alpha-blended triangle void SPG_TrigonFade(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color1, Uint32 color2, Uint32 color3) - Draws a filled trangle with interpolated shading from three vertex colors void SPG_TrigonTex(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, SDL_Surface* source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2, Sint16 sx3, Sint16 sy3) - Draws a surface-mapped (textured) triangle void SPG_QuadTex(SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Sint16 x4, Sint16 y4, SDL_Surface* source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2, Sint16 sx3, Sint16 sy3, Sint16 sx4, Sint16 sy4) - Draws a surface-mapped (textured) quadrilateral void SPG_Polygon(SDL_Surface* surface, Uint16 n, Sint16* x, Sint16* y, Uint32 color) - Draws a polygon with 'n' vertices void SPG_PolygonBlend(SDL_Surface* surface, Uint16 n, Sint16* x, Sint16* y, Uint32 color) - Draws an alpha-blended polygon with 'n' vertices void SPG_PolygonFilled(SDL_Surface* surface, Uint16 n, Sint16* x, Sint16* y, Uint32 color) - Draws a filled polygon with 'n' vertices void SPG_PolygonFilledBlend(SDL_Surface* surface, Uint16 n, Sint16* x, Sint16* y, Uint32 color, Uint8 alpha) - Draws a filled alpha-blended polygon with 'n' vertices void SPG_PolygonFade(SDL_Surface* surface, Uint16 n, Sint16* x, Sint16* y, Uint32* colors) - Draws a filled polygon with interpolated shading from 'n' vertex colors void SPG_PolygonFadeBlend(SDL_Surface* surface, Uint16 n, Sint16* x, Sint16* y, Uint32* colors, Uint8 alpha) - Draws a filled alpha-blended polygon with interpolated shading from 'n' vertex colors Notes: These functions respect the destination surface's clipping rect. (see SPG_ClipRect) The surface will be automatically locked when necessary. (see SPG_Lock) You can control the alpha blending mode. (see SPG_PushBlend) Anti-aliasing capability (see SPG_PushAA) |
||||||||||||||||||||||||||||||||||||||||||