____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

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 alpha)
void DrawTransLineClip (Uint32 color, int sx, int sy, int dx, int dy, unsigned char alpha)
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 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 (void)
 Simply invalidates whole window or screen.

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

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

Draw a circle

Definition at line 663 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixel.

Referenced by CVideo::DrawCircle().

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

Draw a circle clipped

Definition at line 732 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixelClip().

Referenced by CVideo::DrawCircleClip().

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

Draw a horizontal line

Definition at line 260 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixel.

Referenced by CVideo::DrawHLine(), DrawHLineClip(), DrawLine(), and DrawRectangle().

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

Draw a horizontal line clipped

Definition at line 272 of file linedraw.cpp.

References CLIP_RECTANGLE, and DrawHLine().

Referenced by CVideo::DrawHLineClip(), DrawLineClip(), and DrawRectangleClip().

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

Draw a line

Definition at line 308 of file linedraw.cpp.

References DrawHLine(), DrawVLine(), CVideo::LockScreen(), CVideo::UnlockScreen(), Video, VideoDoDrawPixel, and y.

Referenced by CVideo::DrawLine(), and DrawTransLine().

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

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

Draw a clipped pixel

Definition at line 182 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixelClip().

Referenced by CVideo::DrawPixelClip().

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

Draw a rectangle

Definition at line 548 of file linedraw.cpp.

References DrawHLine(), and DrawVLine().

Referenced by CVideo::DrawRectangle().

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

Draw a rectangle clipped

Definition at line 560 of file linedraw.cpp.

References DrawHLineClip(), and DrawVLineClip().

Referenced by CVideo::DrawRectangleClip().

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

Draw a transparent circle

Definition at line 697 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixel.

Referenced by CVideo::DrawTransCircle().

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

Draw a transparent circle clipped

Definition at line 766 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixelClip().

Referenced by CVideo::DrawTransCircleClip().

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

Draw a transparent horizontal line

Definition at line 282 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixel.

Referenced by CVideo::DrawTransHLine(), and DrawTransRectangle().

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

Draw a transparent horizontal line clipped

Definition at line 295 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixelClip().

Referenced by CVideo::DrawTransHLineClip(), and DrawTransRectangleClip().

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

Draw a transparent line

Definition at line 528 of file linedraw.cpp.

References DrawLine().

Referenced by CVideo::DrawTransLine().

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

Draw a transparent line clipped

Definition at line 538 of file linedraw.cpp.

References DrawLineClip().

Referenced by CVideo::DrawTransLineClip().

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

Draw a transparent clipped pixel

Definition at line 202 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixelClip().

Referenced by CVideo::DrawTransPixelClip().

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

Draw a transparent rectangle

Definition at line 572 of file linedraw.cpp.

References DrawTransHLine(), and DrawTransVLine().

Referenced by CVideo::DrawTransRectangle().

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

Draw a transparent rectangle clipped.

Parameters:
color color
x x coordinate on the screen
y y coordinate on the screen
h height of rectangle (0=don't draw).
w width of rectangle (0=don't draw).
alpha alpha value of pixels.

Definition at line 592 of file linedraw.cpp.

References DrawTransHLineClip(), and DrawTransVLineClip().

Referenced by CVideo::DrawTransRectangleClip().

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

Draw a transparent vertical line

Definition at line 224 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixel.

Referenced by DrawTransRectangle(), CVideo::DrawTransVLine(), and FillTransCircle().

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

Draw a transparent vertical line clipped

Definition at line 247 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixelClip().

Referenced by DrawTransRectangleClip(), CVideo::DrawTransVLineClip(), and FillTransCircleClip().

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

Draw a vertical line

Definition at line 212 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixel.

Referenced by DrawLine(), DrawRectangle(), CVideo::DrawVLine(), DrawVLineClip(), and FillCircle().

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

Draw a vertical line clipped

Definition at line 237 of file linedraw.cpp.

References CLIP_RECTANGLE, and DrawVLine().

Referenced by DrawLineClip(), DrawRectangleClip(), CVideo::DrawVLineClip(), and FillCircleClip().

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

Draw a filled circle

Definition at line 801 of file linedraw.cpp.

References DrawVLine().

Referenced by CVideo::FillCircle().

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

Draw a filled circle clipped

Definition at line 878 of file linedraw.cpp.

References DrawVLineClip().

Referenced by CVideo::FillCircleClip().

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

Draw a filled rectangle

Definition at line 605 of file linedraw.cpp.

References TheScreen.

Referenced by CVideo::FillRectangle(), and FillRectangleClip().

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

Draw a filled rectangle clipped

Definition at line 614 of file linedraw.cpp.

References ClipX1, ClipX2, ClipY1, ClipY2, FillRectangle(), and TheScreen.

Referenced by CVideo::FillRectangleClip().

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

Draw a filled transparent circle

Definition at line 839 of file linedraw.cpp.

References DrawTransVLine().

Referenced by CVideo::FillTransCircle().

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

Draw a filled transparent circle clipped

Definition at line 916 of file linedraw.cpp.

References DrawTransVLineClip().

Referenced by CVideo::FillTransCircleClip().

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

Draw a filled transparent rectangle

Definition at line 634 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixel.

Referenced by CVideo::FillTransRectangle(), and FillTransRectangleClip().

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

Draw a filled transparent rectangle clipped

Definition at line 653 of file linedraw.cpp.

References CLIP_RECTANGLE, and FillTransRectangle().

Referenced by CVideo::FillTransRectangleClip().

void linedraw_sdl::InitLineDraw ( void   ) 

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

Draw a 16-bit pixel

Definition at line 71 of file linedraw.cpp.

References TheScreen, Video, and CVideo::Width.

Referenced by InitLineDraw(), and VideoDrawPixel16().

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

Draw a 32-bit pixel

Definition at line 89 of file linedraw.cpp.

References TheScreen, Video, and CVideo::Width.

Referenced by InitLineDraw(), and VideoDrawPixel32().

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

Draw a clipped pixel

Definition at line 172 of file linedraw.cpp.

References ClipX1, ClipX2, ClipY1, ClipY2, and VideoDoDrawPixel.

Referenced by DrawCircleClip(), DrawLineClip(), and DrawPixelClip().

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

Draw a transparent 16-bit pixel

Definition at line 107 of file linedraw.cpp.

References TheScreen, Video, and CVideo::Width.

Referenced by InitLineDraw(), and VideoDrawTransPixel16().

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

Draw a transparent 32-bit pixel

Definition at line 136 of file linedraw.cpp.

References TheScreen, Video, and CVideo::Width.

Referenced by InitLineDraw(), and VideoDrawTransPixel32().

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

Draw a transparent clipped pixel

Definition at line 192 of file linedraw.cpp.

References ClipX1, ClipX2, ClipY1, ClipY2, and VideoDoDrawTransPixel.

Referenced by DrawTransCircleClip(), DrawTransHLineClip(), DrawTransPixelClip(), and DrawTransVLineClip().

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

Draw a 16-bit pixel

Definition at line 79 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixel16().

Referenced by InitLineDraw().

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

Draw a 32-bit pixel

Definition at line 97 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawPixel32().

Referenced by InitLineDraw().

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

Draw a transparent 16-bit pixel

Definition at line 126 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixel16().

Referenced by InitLineDraw().

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

Draw a transparent 32-bit pixel

Definition at line 162 of file linedraw.cpp.

References CVideo::LockScreen(), CVideo::UnlockScreen(), Video, and VideoDoDrawTransPixel32().

Referenced by InitLineDraw().


Variable Documentation

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

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

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

Referenced by InitLineDraw().

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

Referenced by InitLineDraw().


Generated on Sat Feb 21 00:28:27 2009 for Bos Wars by  doxygen 1.5.6