_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Functions | Variables
linedraw_sdl Namespace Reference

Functions

static void VideoDoDrawPixel16 (Uint32 color, int x, int y)
 
void VideoDrawPixel16 (Uint32 color, int x, int y)
 
static void VideoDoDrawPixel32 (Uint32 color, int x, int y)
 
void VideoDrawPixel32 (Uint32 color, int x, int y)
 
static void VideoDoDrawTransPixel16 (Uint32 color, int x, int y, unsigned char alpha)
 
void VideoDrawTransPixel16 (Uint32 color, int x, int y, unsigned char alpha)
 
static void VideoDoDrawTransPixel32 (Uint32 color, int x, int y, unsigned char alpha)
 
void VideoDrawTransPixel32 (Uint32 color, int x, int y, unsigned char alpha)
 
static void VideoDoDrawPixelClip (Uint32 color, int x, int y)
 
void DrawPixelClip (Uint32 color, int x, int y)
 
static void VideoDoDrawTransPixelClip (Uint32 color, int x, int y, unsigned char alpha)
 
void DrawTransPixelClip (Uint32 color, int x, int y, unsigned char alpha)
 
void DrawVLine (Uint32 color, int x, int y, int height)
 
void DrawTransVLine (Uint32 color, int x, int y, int height, unsigned char alpha)
 
void DrawVLineClip (Uint32 color, int x, int y, int height)
 
void DrawTransVLineClip (Uint32 color, int x, int y, int height, unsigned char alpha)
 
void DrawHLine (Uint32 color, int x, int y, int width)
 
void DrawHLineClip (Uint32 color, int x, int y, int width)
 
void DrawTransHLine (Uint32 color, int x, int y, int width, unsigned char alpha)
 
void DrawTransHLineClip (Uint32 color, int x, int y, int width, unsigned char alpha)
 
void DrawLine (Uint32 color, int sx, int sy, int dx, int dy)
 
void DrawLineClip (Uint32 color, int sx, int sy, int dx, int dy)
 
void DrawTransLine (Uint32 color, int sx, int sy, int dx, int dy, unsigned char)
 
void DrawTransLineClip (Uint32 color, int sx, int sy, int dx, int dy, unsigned char)
 
void DrawRectangle (Uint32 color, int x, int y, int w, int h)
 
void DrawRectangleClip (Uint32 color, int x, int y, int w, int h)
 
void DrawTransRectangle (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
 
void DrawTransRectangleClip (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
 
void FillRectangle (Uint32 color, int x, int y, int w, int h)
 
void FillRectangleClip (Uint32 color, int x, int y, int w, int h)
 
void FillTransRectangle (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
 
void FillTransRectangleClip (Uint32 color, int x, int y, int w, int h, unsigned char alpha)
 
void DrawCircle (Uint32 color, int x, int y, int r)
 
void DrawTransCircle (Uint32 color, int x, int y, int r, unsigned char alpha)
 
void DrawCircleClip (Uint32 color, int x, int y, int r)
 
void DrawTransCircleClip (Uint32 color, int x, int y, int r, unsigned char alpha)
 
void DrawEllipseClip (Uint32 color, int xc, int yc, int rx, int ry)
 
void FillCircle (Uint32 color, int x, int y, int r)
 
void FillTransCircle (Uint32 color, int x, int y, int r, unsigned char alpha)
 
void FillCircleClip (Uint32 color, int x, int y, int r)
 
void FillTransCircleClip (Uint32 color, int x, int y, int r, unsigned char alpha)
 
void InitLineDraw ()
 Init line draw. More...
 

Variables

void(* VideoDrawPixel )(Uint32 color, int x, int y)
 
static void(* VideoDoDrawPixel )(Uint32 color, int x, int y)
 
void(* VideoDrawTransPixel )(Uint32 color, int x, int y, unsigned char alpha)
 
static void(* VideoDoDrawTransPixel )(Uint32 color, int x, int y, unsigned char alpha)
 

Function Documentation

◆ DrawCircle()

void linedraw_sdl::DrawCircle ( Uint32  color,
int  x,
int  y,
int  r 
)

Draw a circle

◆ DrawCircleClip()

void linedraw_sdl::DrawCircleClip ( Uint32  color,
int  x,
int  y,
int  r 
)

Draw a circle clipped

◆ DrawEllipseClip()

void linedraw_sdl::DrawEllipseClip ( Uint32  color,
int  xc,
int  yc,
int  rx,
int  ry 
)

Draw an ellipse clipped

◆ DrawHLine()

void linedraw_sdl::DrawHLine ( Uint32  color,
int  x,
int  y,
int  width 
)

Draw a horizontal line

◆ DrawHLineClip()

void linedraw_sdl::DrawHLineClip ( Uint32  color,
int  x,
int  y,
int  width 
)

Draw a horizontal line clipped

◆ DrawLine()

void linedraw_sdl::DrawLine ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy 
)

Draw a line

◆ DrawLineClip()

void linedraw_sdl::DrawLineClip ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy 
)

Draw a line clipped

◆ DrawPixelClip()

void linedraw_sdl::DrawPixelClip ( Uint32  color,
int  x,
int  y 
)

Draw a clipped pixel

◆ DrawRectangle()

void linedraw_sdl::DrawRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

Draw a rectangle

◆ DrawRectangleClip()

void linedraw_sdl::DrawRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

Draw a rectangle clipped

◆ DrawTransCircle()

void linedraw_sdl::DrawTransCircle ( Uint32  color,
int  x,
int  y,
int  r,
unsigned char  alpha 
)

Draw a transparent circle

◆ DrawTransCircleClip()

void linedraw_sdl::DrawTransCircleClip ( Uint32  color,
int  x,
int  y,
int  r,
unsigned char  alpha 
)

Draw a transparent circle clipped

◆ DrawTransHLine()

void linedraw_sdl::DrawTransHLine ( Uint32  color,
int  x,
int  y,
int  width,
unsigned char  alpha 
)

Draw a transparent horizontal line

◆ DrawTransHLineClip()

void linedraw_sdl::DrawTransHLineClip ( Uint32  color,
int  x,
int  y,
int  width,
unsigned char  alpha 
)

Draw a transparent horizontal line clipped

◆ DrawTransLine()

void linedraw_sdl::DrawTransLine ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy,
unsigned char   
)

Draw a transparent line

◆ DrawTransLineClip()

void linedraw_sdl::DrawTransLineClip ( Uint32  color,
int  sx,
int  sy,
int  dx,
int  dy,
unsigned char   
)

Draw a transparent line clipped

◆ DrawTransPixelClip()

void linedraw_sdl::DrawTransPixelClip ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)

Draw a transparent clipped pixel

◆ DrawTransRectangle()

void linedraw_sdl::DrawTransRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

Draw a transparent rectangle

◆ DrawTransRectangleClip()

void linedraw_sdl::DrawTransRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

Draw a transparent rectangle clipped.

Parameters
colorcolor
xx coordinate on the screen
yy coordinate on the screen
hheight of rectangle (0=don't draw).
wwidth of rectangle (0=don't draw).
alphaalpha value of pixels.

◆ DrawTransVLine()

void linedraw_sdl::DrawTransVLine ( Uint32  color,
int  x,
int  y,
int  height,
unsigned char  alpha 
)

Draw a transparent vertical line

◆ DrawTransVLineClip()

void linedraw_sdl::DrawTransVLineClip ( Uint32  color,
int  x,
int  y,
int  height,
unsigned char  alpha 
)

Draw a transparent vertical line clipped

◆ DrawVLine()

void linedraw_sdl::DrawVLine ( Uint32  color,
int  x,
int  y,
int  height 
)

Draw a vertical line

◆ DrawVLineClip()

void linedraw_sdl::DrawVLineClip ( Uint32  color,
int  x,
int  y,
int  height 
)

Draw a vertical line clipped

◆ FillCircle()

void linedraw_sdl::FillCircle ( Uint32  color,
int  x,
int  y,
int  r 
)

Draw a filled circle

◆ FillCircleClip()

void linedraw_sdl::FillCircleClip ( Uint32  color,
int  x,
int  y,
int  r 
)

Draw a filled circle clipped

◆ FillRectangle()

void linedraw_sdl::FillRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

Draw a filled rectangle

◆ FillRectangleClip()

void linedraw_sdl::FillRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h 
)

Draw a filled rectangle clipped

◆ FillTransCircle()

void linedraw_sdl::FillTransCircle ( Uint32  color,
int  x,
int  y,
int  r,
unsigned char  alpha 
)

Draw a filled transparent circle

◆ FillTransCircleClip()

void linedraw_sdl::FillTransCircleClip ( Uint32  color,
int  x,
int  y,
int  r,
unsigned char  alpha 
)

Draw a filled transparent circle clipped

◆ FillTransRectangle()

void linedraw_sdl::FillTransRectangle ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

Draw a filled transparent rectangle

◆ FillTransRectangleClip()

void linedraw_sdl::FillTransRectangleClip ( Uint32  color,
int  x,
int  y,
int  w,
int  h,
unsigned char  alpha 
)

Draw a filled transparent rectangle clipped

◆ InitLineDraw()

void linedraw_sdl::InitLineDraw ( )

Init line draw.

Initialize line draw

◆ VideoDoDrawPixel16()

static void linedraw_sdl::VideoDoDrawPixel16 ( Uint32  color,
int  x,
int  y 
)
static

Draw a 16-bit pixel

◆ VideoDoDrawPixel32()

static void linedraw_sdl::VideoDoDrawPixel32 ( Uint32  color,
int  x,
int  y 
)
static

Draw a 32-bit pixel

◆ VideoDoDrawPixelClip()

static void linedraw_sdl::VideoDoDrawPixelClip ( Uint32  color,
int  x,
int  y 
)
static

Draw a clipped pixel

◆ VideoDoDrawTransPixel16()

static void linedraw_sdl::VideoDoDrawTransPixel16 ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)
static

Draw a transparent 16-bit pixel

◆ VideoDoDrawTransPixel32()

static void linedraw_sdl::VideoDoDrawTransPixel32 ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)
static

Draw a transparent 32-bit pixel

◆ VideoDoDrawTransPixelClip()

static void linedraw_sdl::VideoDoDrawTransPixelClip ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)
static

Draw a transparent clipped pixel

◆ VideoDrawPixel16()

void linedraw_sdl::VideoDrawPixel16 ( Uint32  color,
int  x,
int  y 
)

Draw a 16-bit pixel

◆ VideoDrawPixel32()

void linedraw_sdl::VideoDrawPixel32 ( Uint32  color,
int  x,
int  y 
)

Draw a 32-bit pixel

◆ VideoDrawTransPixel16()

void linedraw_sdl::VideoDrawTransPixel16 ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)

Draw a transparent 16-bit pixel

◆ VideoDrawTransPixel32()

void linedraw_sdl::VideoDrawTransPixel32 ( Uint32  color,
int  x,
int  y,
unsigned char  alpha 
)

Draw a transparent 32-bit pixel

Variable Documentation

◆ VideoDoDrawPixel

void(* linedraw_sdl::VideoDoDrawPixel) (Uint32 color, int x, int y)
static

◆ VideoDoDrawTransPixel

void(* linedraw_sdl::VideoDoDrawTransPixel) (Uint32 color, int x, int y, unsigned char alpha)
static

◆ VideoDrawPixel

void(* linedraw_sdl::VideoDrawPixel) (Uint32 color, int x, int y)

◆ VideoDrawTransPixel

void(* linedraw_sdl::VideoDrawTransPixel) (Uint32 color, int x, int y, unsigned char alpha)
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.