version 1.1 | | version 1.2 |
---|
| | |
* Definitions for graphics lib. | | * Definitions for graphics lib. |
* | | * |
* $Log$ | | * $Log$ |
* Revision 1.1 1999/06/14 22:02:13 donut | | * Revision 1.2 1999/08/05 22:53:41 sekmu |
* Initial revision | | * |
| | * D3D patch(es) from ADB |
| | * |
| | * Revision 1.1.1.1 1999/06/14 22:02:13 donut |
| | * Import of d1x 1.37 source. |
* | | * |
* Revision 1.7 1995/09/13 08:39:44 allender | | * Revision 1.7 1995/09/13 08:39:44 allender |
* added prototype for gr_bitblt_cockpit | | * added prototype for gr_bitblt_cockpit |
| | |
| | |
#ifdef D1XD3D | | #ifdef D1XD3D |
#define BM_MAGIC_NUMBER 0x13579bdf | | #define BM_MAGIC_NUMBER 0x13579bdf |
#define BM_D3D_RENDER 1 | | //changed BM_D3D constants to prevent system crash if accidentally accessed |
#define BM_D3D_DISPLAY 2 | | //(it would be nice if Win9x actually protected first pages...) |
| | //#define BM_D3D_RENDER 1 |
| | //#define BM_D3D_DISPLAY 2 |
| | #define BM_D3D_RENDER 0xf0000001 |
| | #define BM_D3D_DISPLAY 0xf0000002 |
#endif | | #endif |
| | |
typedef struct _grs_bitmap { | | typedef struct _grs_bitmap { |
| | |
// these are the two workhorses, the others just use these | | // these are the two workhorses, the others just use these |
extern 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_init_bitmap( grs_bitmap *bm, int mode, int x, int y, int w, int h, int bytesperline, unsigned char * data ); |
extern void gr_init_sub_bitmap (grs_bitmap *bm, grs_bitmap *bmParent, int x, int y, int w, int h ); | | extern void gr_init_sub_bitmap (grs_bitmap *bm, grs_bitmap *bmParent, int x, int y, int w, int h ); |
| | |
| | extern void gr_init_bitmap_alloc( grs_bitmap *bm, int mode, int x, int y, int w, int h, int bytesperline); |
| | |
// Allocate a bitmap and its pixel data buffer. | | // Allocate a bitmap and its pixel data buffer. |
grs_bitmap *gr_create_bitmap(int w,int h); | | grs_bitmap *gr_create_bitmap(int w,int h); |