Primitives Functions
Primitives
Polygon
Transform
Surface
Drawing
Palette
Control
Misc
Defines
Extended

Arguments

Index
Credits

Return Name Arguments
voidSPG_PixelSDL_Surface* surface, Sint16 x, Sint16 y, Uint32 color
voidSPG_PixelBlendSDL_Surface* surface, Sint16 x, Sint16 y, Uint32 color, Uint8 alpha
voidSPG_LineHSDL_Surface* surface, Sint16 x1, Sint16 x2, Sint16 y, Uint32 Color
voidSPG_LineHBlendSDL_Surface* surface, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color, Uint8 alpha
voidSPG_LineVSDL_Surface* surface, Sint16 x, Sint16 y1, Sint16 y2, Uint32 Color
voidSPG_LineVBlendSDL_Surface* surface, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color, Uint8 alpha
voidSPG_LineFnSDL_Surface* surface, Sint16 X1, Sint16 Y1, Sint16 X2, Sint16 Y2, Uint32 Color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color)
voidSPG_LineSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 Color
voidSPG_LineBlendSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha
voidSPG_LineFadeFnSDL_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)
voidSPG_LineFadeSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint32 color2
voidSPG_LineFadeBlendSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color1, Uint8 alpha1, Uint32 color2, Uint8 alpha2
voidSPG_LineTexSDL_Surface* dest, Sint16 x1, Sint16 x2, Sint16 y,
SDL_Surface
* source, Sint16 sx1, Sint16 sy1, Sint16 sx2, Sint16 sy2
voidSPG_RectSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color
voidSPG_RectBlendSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha
voidSPG_RectFilledSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color
voidSPG_RectFilledBlendSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color, Uint8 alpha
voidSPG_RectRoundSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color
voidSPG_RectRoundBlendSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color, Uint8 alpha
voidSPG_RectRoundFilledSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color
voidSPG_RectRoundFilledBlendSDL_Surface* surface, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, float r, Uint32 color, Uint8 alpha
voidSPG_ArcFnSDL_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)
voidSPG_ArcSDL_Surface* surface, Sint16 x, Sint16 y, float radius, float angle1, float angle2, Uint32 color
voidSPG_ArcBlendSDL_Surface* surface, Sint16 x, Sint16 y, float radius, float angle1, float angle2, Uint32 color, Uint8 alpha
voidSPG_ArcFilledSDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color
voidSPG_ArcFilledBlendSDL_Surface* surface, Sint16 cx, Sint16 cy, float radius, float startAngle, float endAngle, Uint32 color, Uint8 alpha
voidSPG_CircleFnSDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color, void Callback(SDL_Surface *Surf, Sint16 X, Sint16 Y, Uint32 Color)
voidSPG_CircleSDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color
voidSPG_CircleBlendSDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color, Uint8 alpha
voidSPG_CircleFilledSDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color
voidSPG_CircleFilledBlendSDL_Surface* surface, Sint16 x, Sint16 y, float r, Uint32 color, Uint8 alpha
voidSPG_EllipseFnSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, void Callback(SDL_Surface* Surf, Sint16 X, Sint16 Y, Uint32 Color)
voidSPG_EllipseSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color
voidSPG_EllipseBlendSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, Uint8 alpha
voidSPG_EllipseFilledSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color
voidSPG_EllipseFilledBlendSDL_Surface* surface, Sint16 x, Sint16 y, float rx, float ry, Uint32 color, Uint8 alpha
voidSPG_BezierSDL_Surface* surface, Sint16 startX, Sint16 startY, Sint16 cx1, Sint16 cy1, Sint16 cx2, Sint16 cy2, Sint16 endX, Sint16 endY, Uint8 quality, Uint32 color
voidSPG_BezierBlendSDL_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_LineTex(SDL_Surface *dest,Sint16 x1,Sint16 x2,Sint16 y,SDL_Surface *source,Sint16 sx1,Sint16 sy1,Sint16 sx2,Sint16 sy2)
- Maps the 'source' image to a horizontal line.

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_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 v0.94 Documentation by Jonathan Dearborn 2008