Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

drawline.cpp File Reference

#include "pgdraw.h"

Include dependency graph for drawline.cpp:

Go to the source code of this file.

Functions

void plotpixel (SDL_Surface *surface, Uint32 x, Uint32 y, const PG_Color &c, Uint8 width, int *pixelflag)
void octant0 (SDL_Surface *surface, Uint32 x0, Uint32 y0, Uint32 deltax, Uint32 deltay, int xdirection, const PG_Color &color, Uint8 width, int pixelflag)
void octant1 (SDL_Surface *surface, Uint32 x0, Uint32 y0, Uint32 deltax, Uint32 deltay, int xdirection, const PG_Color &color, Uint8 width, int pixelflag)
void PG_Draw::DrawLine (SDL_Surface *surface, Uint32 x0, Uint32 y0, Uint32 x1, Uint32 y1, const PG_Color &color, Uint8 width)


Function Documentation

void octant0 SDL_Surface *  surface,
Uint32  x0,
Uint32  y0,
Uint32  deltax,
Uint32  deltay,
int  xdirection,
const PG_Color color,
Uint8  width,
int  pixelflag
 

Definition at line 95 of file drawline.cpp.

References plotpixel().

Referenced by PG_Draw::DrawLine().

void octant1 SDL_Surface *  surface,
Uint32  x0,
Uint32  y0,
Uint32  deltax,
Uint32  deltay,
int  xdirection,
const PG_Color color,
Uint8  width,
int  pixelflag
 

Definition at line 126 of file drawline.cpp.

References plotpixel().

Referenced by PG_Draw::DrawLine().

void PG_Draw::DrawLine SDL_Surface *  surface,
Uint32  x0,
Uint32  y0,
Uint32  x1,
Uint32  y1,
const PG_Color color,
Uint8  width
 

Definition at line 158 of file drawline.cpp.

References octant0(), and octant1().

void plotpixel SDL_Surface *  surface,
Uint32  x,
Uint32  y,
const PG_Color c,
Uint8  width,
int *  pixelflag
 

Definition at line 33 of file drawline.cpp.

References PG_Draw::SetPixel().

Referenced by octant0(), and octant1().


Generated on Tue Jun 24 01:39:54 2008 for Advanced Strategic Command by  doxygen 1.4.2