Main Page | Data Structures | File List | Data Fields | Globals

line.h File Reference

line drawing functions More...

#include "gfx.h"

Go to the source code of this file.

Defines

#define DITHER(I, Y)   (dithpat[I][Y & 1])
 get a dithered pattern of intensity I on the screen line Y

Functions

void surface_line (surface_t *, int x1, int y1, int x2, int y2)
 draw a line on a surface
void line (int x1, int y1, int x2, int y2)
 draw a line on video
void line_slow (int x1, int y1, int x2, int y2)
 draw a line on video (slow)
void calculate_side (int x1, int y1, int x2, int y2, int low[], int high[])
 calculate a triangle side
void hline (int x1, int y1, int x2, u_char value)
 draw horizontal line on video. value can be a bit pattern. note: x1 <= x2
void surface_hline (surface_t *s, int x1, int y1, int x2, u_char value)
 draw horizontal line on surface. value can be a bit pattern. note: x1 <= x2


Detailed Description

line drawing functions

Definition in file line.h.


Generated on Thu Mar 3 19:55:02 2005 for GFX lib by  doxygen 1.4.1