2004-08-28 23:17:46 +00:00
|
|
|
/* $Id: grdef.h,v 1.10 2004-08-28 23:17:45 schaffner Exp $ */
|
2001-01-19 03:30:16 +00:00
|
|
|
/*
|
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
2002-09-04 22:21:25 +00:00
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
2001-01-19 03:30:16 +00:00
|
|
|
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
2002-09-04 22:21:25 +00:00
|
|
|
|
2001-01-19 03:30:16 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Internal definitions for graphics lib.
|
|
|
|
*
|
|
|
|
*/
|
2002-09-04 22:21:25 +00:00
|
|
|
|
2001-01-19 03:30:16 +00:00
|
|
|
void gr_init_bitmap_alloc( grs_bitmap *bm, int mode, int x, int y, int w, int h, int bytesperline);
|
|
|
|
void gr_init_sub_bitmap (grs_bitmap *bm, grs_bitmap *bmParent, int x, int y, int w, int h );
|
|
|
|
void gr_init_bitmap( grs_bitmap *bm, int mode, int x, int y, int w, int h, int bytesperline, unsigned char * data );
|
|
|
|
|
|
|
|
extern void gr_set_buffer(int w, int h, int r, int (*buffer_func)());
|
|
|
|
|
|
|
|
extern void gr_pal_setblock( int start, int n, unsigned char * palette );
|
|
|
|
extern void gr_pal_getblock( int start, int n, unsigned char * palette );
|
|
|
|
extern 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_stosd( ubyte * dest, unsigned char color, unsigned int nbytes);
|
2002-09-04 22:21:25 +00:00
|
|
|
|
2001-01-19 03:30:16 +00:00
|
|
|
extern unsigned int gr_var_color;
|
|
|
|
extern unsigned int gr_var_bwidth;
|
|
|
|
extern unsigned char * gr_var_bitmap;
|
|
|
|
|
2002-09-04 23:30:56 +00:00
|
|
|
void gr_linear_movsd( ubyte * source, ubyte * dest, unsigned int nbytes);
|
2003-10-25 01:44:23 +00:00
|
|
|
void gr_linear_rep_movsd_2x(ubyte *source, ubyte *dest, unsigned int nbytes);
|
2002-09-04 22:21:25 +00:00
|
|
|
|
2001-01-19 03:30:16 +00:00
|
|
|
void gr_linear_line( int x0, int y0, int x1, int y1);
|
|
|
|
|
|
|
|
extern unsigned int Table8to32[256];
|
|
|
|
|
2002-09-04 22:21:25 +00:00
|
|
|
#ifdef __MSDOS__
|
2001-01-19 03:30:16 +00:00
|
|
|
extern unsigned char * gr_video_memory;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
void order( int *x1, int *x2 );
|