Primitives Functions
Primitives
Polygon
Transform
Surface
Drawing
Dirty Rect
Palette
Control
Misc
Defines
Types
Extended

Arguments

Index
Credits

Return Name Arguments
void SPG_Pixel SDL_Surface* surface, Sint16 x, Sint16 y, Uint32 color
void SPG_PixelBlend SDL_Surface* surface, Sint16 x, Sint16 y, Uint32 color, Uint8 alpha
void SPG_LineH SDL_Surface* surface, Sint16 x1, Sint16 y, Sint16 x2, Uint32 Color
void SPG_LineHBlend SDL_Surface* surface, Sint16 x1, Sint16 y, Sint16 x2, Uint32 color, Uint8 alpha
void SPG_LineV SDL_Surface* surface, Sint16 x, Sint16 y1, Sint16 y2, Uint32 Color
void SPG_LineVBlend SDL_Surface* surface, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color, Uint8 alpha
void SPG_LineFn SDL_Surface* surface, Sint16 X1, Sint16 Y1, Sint16 X2, Sint16 Y2, Uint32 Color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color)
void SPG_Line SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 Color
void SPG_LineBlend SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha
void SPG_LineFadeFn SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint32 color2, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color)
void SPG_LineFade SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint32 color2
void SPG_LineFadeBlend SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint8 alpha1, Uint32 color2, Uint8 alpha2
void SPG_LineHTex SDL_Surface* dest, Sint16 x1, Sint16 y, Sint16 x2, 
SDL_Surface
* source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2
voidSPG_LineHFadeSDL_Surface* dest, Sint16 x1, Sint16 y, Sint16 x2, Uint32 color1, Uint32 color2
void SPG_Rect SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color
void SPG_RectBlend SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha
void SPG_RectFilled SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color
void SPG_RectFilledBlend SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha
void SPG_RectRound SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color
void SPG_RectRoundBlend SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color, Uint8 alpha
void SPG_RectRoundFilled SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color
void SPG_RectRoundFilledBlend SDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color, Uint8 alpha
void SPG_ArcFn SDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color)
void SPG_Arc SDL_Surface* surface, Sint16 x, Sint16 y, float radius, float angle1, float angle2, Uint32 color
void SPG_ArcBlend SDL_Surface* surface, Sint16 x, Sint16 y, float radius, float angle1, float angle2, Uint32 color, Uint8 alpha
void SPG_ArcFilled SDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color
void SPG_ArcFilledBlend SDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color, Uint8 alpha
void SPG_CircleFn SDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color)
void SPG_Circle SDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color
void SPG_CircleBlend SDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color, Uint8 alpha
void SPG_CircleFilled SDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color
void SPG_CircleFilledBlend SDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color, Uint8 alpha
void SPG_EllipseFn SDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, void Callback(SDL_Surface* Surf, Sint16 X, Sint16 Y, Uint32 Color)
void SPG_Ellipse SDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color
void SPG_EllipseBlend SDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, Uint8 alpha
void SPG_EllipseFilled SDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color
void SPG_EllipseFilledBlend SDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, Uint8 alpha
voidSPG_EllipseArbSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color
voidSPG_EllipseBlendArbSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color, Uint8 alpha
voidSPG_EllipseFilledArbSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color
voidSPG_EllipseFilledBlendArbSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color, Uint8 alpha
void SPG_Bezier SDL_Surface* surface, Sint16 startX, Sint16 startY, Sint16 cx1, Sint16 cy1, Sint16 cx2, Sint16 cy2, Sint16 endX, Sint16 endY, Uint8 quality, Uint32 color
void SPG_BezierBlend SDL_Surface* surface, Sint16 startX, Sint16 startY, Sint16 cx1, Sint16 cy1, Sint16 cx2, Sint16 cy2, Sint16 endX, Sint16 endY, Uint8 quality, Uint32 color, Uint8 alpha



void SPG_Pixel(SDL_Surface *surface, Sint16 x, Sint16 y, Uint32 color)
- Draws a pixel of the given color at (x,y)

void SPG_PixelBlend(SDL_Surface *surface, Sint16 x, Sint16 y, Uint32 color, Uint8 alpha)
- Alpha blends a pixel of the given color at (x,y)

void SPG_LineH(SDL_Surface *surface, Sint16 x1, Sint16 x2, Sint16 y, Uint32 Color)
- Draws a horizontal line

void SPG_LineHBlend(SDL_Surface *surface, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color, Uint8 alpha)
- Alpha-blends a horizontal line

void SPG_LineV(SDL_Surface *surface, Sint16 x, Sint16 y1, Sint16 y2, Uint32 Color)
- Draws a vertical line

void SPG_LineVBlend(SDL_Surface *surface, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color, Uint8 alpha)
- Alpha-blends a vertical line

void SPG_LineFn(SDL_Surface *surface, Sint16 X1, Sint16 Y1, Sint16 X2, Sint16 Y2, Uint32 Color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color))
- Performs the callback for each pixel of the line.

void SPG_Line(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 Color)
- Draws a line between (x1,y1) and (x2,y2)

void SPG_LineBlend(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha)
- Alpha-blends a line between (x1,y1) and (x2,y2)

void SPG_LineFadeFn(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint32 color2, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color))
- Performs the callback at each point of a line.

void SPG_LineFade(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint32 color2)
- Draws a line that fades from 'color1' to 'color2'.

void SPG_LineFadeBlend(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint8 alpha1, Uint32 color2, Uint8 alpha2)
- Alpha-blends a line that fades from 'color1' to 'color2'.

void SPG_LineHTex(SDL_Surface *dest,Sint16 x1,Sint16 y,Sint16 x2,SDL_Surface *source,Sint16 sx1,Sint16 sy1,Sint16 sx2,Sint16 sy2)
- Maps the 'source' image to a horizontal line.

void SPG_LineHFade(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Uint32 color1, Uint32 color2)
- Draws a line that fades from 'color1' to 'color2'.

void SPG_Rect(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color)
- Draws a rectangle.

void SPG_RectBlend(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha)
- Alpha-blends a rectangle.

void SPG_RectFilled(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color)
- Draws a filled rectangle.

void SPG_RectFilledBlend(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha)
- Alpha-blends a filled rectangle.

void SPG_RectRound(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color)
- Draws a rectangle with rounded corners.

void SPG_RectRoundBlend(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color, Uint8 alpha)
- Alpha-blends a rectangle with rounded corners.

void SPG_RectRoundFilled(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color)
- Draws a filled rectangle with rounded corners.

void SPG_RectRoundFilledBlend(SDL_Surface *surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color, Uint8 alpha)
- Alpha-blends a filled rectangle with rounded corners.

void SPG_ArcFn(SDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color))
- Performs the callback at each pixel of an arc.

void SPG_Arc(SDL_Surface* surface, Sint16 x, Sint16 y, float radius, float angle1, float angle2, Uint32 color)
- Draws an arc of a circle.

void SPG_ArcBlend(SDL_Surface* surface, Sint16 x, Sint16 y, float radius, float angle1, float angle2, Uint32 color, Uint8 alpha)
- Alpha-blends an arc of a circle.

void SPG_ArcFilled(SDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color)
- Draws a filled arc of a circle (pie slice).

void SPG_ArcFilledBlend(SDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color, Uint8 alpha)
- Alpha-blends a filled arc of a circle (pie slice).

void SPG_CircleFn(SDL_Surface *surface, Sint16 x, Sint16 y, float r, Uint32 color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color))
- Performs the callback at each pixel of a circle.

void SPG_Circle(SDL_Surface *surface, Sint16 x, Sint16 y, float r, Uint32 color)
- Draws a circle.

void SPG_CircleBlend(SDL_Surface *surface, Sint16 x, Sint16 y, float r, Uint32 color, Uint8 alpha)
- Alpha-blends a circle.

void SPG_CircleFilled(SDL_Surface *surface, Sint16 x, Sint16 y, float r, Uint32 color)
- Draws filled circle.

void SPG_CircleFilledBlend(SDL_Surface *surface, Sint16 x, Sint16 y, float r, Uint32 color, Uint8 alpha)
- Alpha-blends a filled circle.

void SPG_EllipseFn(SDL_Surface *surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color))
- Performs the callback at each pixel of an ellipse.

void SPG_Ellipse(SDL_Surface *surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color)
- Draws an ellipse.

void SPG_EllipseBlend(SDL_Surface *surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, Uint8 alpha)
- Alpha-blends an ellipse.

void SPG_EllipseFilled(SDL_Surface *surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color)
- Draws a filled ellipse.

void SPG_EllipseFilledBlend(SDL_Surface *surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, Uint8 alpha)
- Alpha-blends a filled ellipse.

void SPG_EllipseArb(SDL_Surface *Surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color);
- Draws an ellipse at the given rotation angle.

void SPG_EllipseBlendArb(SDL_Surface *Surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color, Uint8 alpha)
- Alpha-blends an ellipse at the given rotation angle.

void SPG_EllipseFilledArb(SDL_Surface *Surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color);
- Draws a filled ellipse at the given rotation angle.

void SPG_EllipseFilledBlendArb(SDL_Surface *Surface, Sint16 x, Sint16 y, float rx, float ry, float angle, Uint32 color, Uint8 alpha)
- Alpha-blends a filled ellipse at the given rotation angle.

void SPG_Bezier(SDL_Surface *surface, Sint16 startX, Sint16 startY, Sint16 cx1, Sint16 cy1, Sint16 cx2, Sint16 cy2, Sint16 endX, Sint16 endY, Uint8 quality, Uint32 color)
- Draws a bezier curve from (startX, startY) to (endX, endY) with the indicated control points.  A quality of 4-7 is normal.

void SPG_BezierBlend(SDL_Surface *surface, Sint16 startX, Sint16 startY, Sint16 cx1, Sint16 cy1, Sint16 cx2, Sint16 cy2, Sint16 endX, Sint16 endY, Uint8 quality, Uint32 color, Uint8 alpha)
- Alpha-blends a bezier curve from (startX, startY) to (endX, endY) with the indicated control points.  A quality of 4-7 is normal.


SPriG v1.0.0 Documentation by Jonathan Dearborn 2008