include/grdef.h File Reference


Defines

#define USE_2D_ASM   1
#define MINX   0
#define MINY   0
#define MAXX   (GWIDTH-1)
#define MAXY   (GHEIGHT-1)
#define TYPE   grd_curcanv->cv_bitmap.bm_type
#define DATA   grd_curcanv->cv_bitmap.bm_data
#define XOFFSET   grd_curcanv->cv_bitmap.bm_x
#define YOFFSET   grd_curcanv->cv_bitmap.bm_y
#define ROWSIZE   grd_curcanv->cv_bitmap.bm_rowsize
#define COLOR   grd_curcanv->cv_color

Functions

void gr_set_buffer (int w, int h, int r, int(*buffer_func)())
void gr_pal_setblock (int start, int n, unsigned char *palette)
void gr_pal_getblock (int start, int n, unsigned char *palette)
void gr_pal_setone (int index, unsigned char red, unsigned char green, unsigned char blue)
void gr_linear_movsb (ubyte *source, ubyte *dest, int nbytes)
void gr_linear_movsw (ubyte *source, ubyte *dest, int nbytes)
void gr_linear_movsd (ubyte *source, ubyte *dest, unsigned int nbytes)
void gr_linear_rep_movsd_2x (ubyte *source, ubyte *dest, uint nbytes)
void gr_linear_stosd (ubyte *dest, unsigned char color, unsigned int nbytes)
void gr_linear_line (int x0, int y0, int x1, int y1)
void order (int *x1, int *x2)

Variables

unsigned int gr_var_color
unsigned int gr_var_bwidth
unsigned char * gr_var_bitmap
unsigned int Table8to32 [256]

Define Documentation

#define COLOR   grd_curcanv->cv_color
 

#define DATA   grd_curcanv->cv_bitmap.bm_data
 

#define MAXX   (GWIDTH-1)
 

#define MAXY   (GHEIGHT-1)
 

#define MINX   0
 

#define MINY   0
 

#define ROWSIZE   grd_curcanv->cv_bitmap.bm_rowsize
 

#define TYPE   grd_curcanv->cv_bitmap.bm_type
 

#define USE_2D_ASM   1
 

#define XOFFSET   grd_curcanv->cv_bitmap.bm_x
 

#define YOFFSET   grd_curcanv->cv_bitmap.bm_y
 


Function Documentation

void gr_linear_line int  x0,
int  y0,
int  x1,
int  y1
 

void gr_linear_movsb ubyte source,
ubyte dest,
int  nbytes
 

void gr_linear_movsd ubyte source,
ubyte dest,
unsigned int  nbytes
 

void gr_linear_movsw ubyte source,
ubyte dest,
int  nbytes
 

void gr_linear_rep_movsd_2x ubyte source,
ubyte dest,
uint  nbytes
 

void gr_linear_stosd ubyte dest,
unsigned char  color,
unsigned int  nbytes
 

void gr_pal_getblock int  start,
int  n,
unsigned char *  palette
 

void gr_pal_setblock int  start,
int  n,
unsigned char *  palette
 

void gr_pal_setone int  index,
unsigned char  red,
unsigned char  green,
unsigned char  blue
 

void gr_set_buffer int  w,
int  h,
int  r,
int(*)()  buffer_func
 

void order int *  x1,
int *  x2
 


Variable Documentation

unsigned char* gr_var_bitmap
 

unsigned int gr_var_bwidth
 

unsigned int gr_var_color
 

unsigned int Table8to32[256]
 


Generated on Mon Aug 28 20:55:31 2006 for D1X-Rebirth by  doxygen 1.4.6