version 1.16 | | version 1.17 |
---|
| | |
* Definitions for graphics lib. | | * Definitions for graphics lib. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.17 2003/03/09 06:34:09 donut |
| | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | * |
* Revision 1.16 2002/07/08 01:04:41 donut | | * Revision 1.16 2002/07/08 01:04:41 donut |
* add alt+enter to toggle fullscreen (in addition to previous key combos) | | * add alt+enter to toggle fullscreen (in addition to previous key combos) |
* | | * |
| | |
typedef struct _grs_bitmap { | | typedef struct _grs_bitmap { |
short bm_x,bm_y; // Offset from parent's origin | | short bm_x,bm_y; // Offset from parent's origin |
short bm_w,bm_h; // width,height | | short bm_w,bm_h; // width,height |
byte bm_type; // 0=Linear, 1=ModeX, 2=SVGA | | sbyte bm_type; // 0=Linear, 1=ModeX, 2=SVGA |
byte bm_flags; // bit 0 on means it has transparency. | | sbyte bm_flags; // bit 0 on means it has transparency. |
// bit 1 on means it has supertransparency | | // bit 1 on means it has supertransparency |
// bit 2 on means it doesn't get passed through lighting. | | // bit 2 on means it doesn't get passed through lighting. |
short bm_rowsize; // unsigned char offset to next row | | short bm_rowsize; // unsigned char offset to next row |
| | |
unsigned short bm_selector; | | unsigned short bm_selector; |
#endif | | #endif |
ubyte avg_color; // Average color of all pixels in texture map. | | ubyte avg_color; // Average color of all pixels in texture map. |
byte unused; // to 4-byte align. | | sbyte unused; // to 4-byte align. |
| | |
#ifdef D1XD3D | | #ifdef D1XD3D |
void *pvSurface; | | void *pvSurface; |
| | |
// Draw the bitmap into the current canvas at the specified location. | | // Draw the bitmap into the current canvas at the specified location. |
void gr_bitmap(int x,int y,grs_bitmap *bm); | | void gr_bitmap(int x,int y,grs_bitmap *bm); |
void gr_ubitmap(int x,int y,grs_bitmap *bm); | | void gr_ubitmap(int x,int y,grs_bitmap *bm); |
inline void scale_line(byte *in, byte *out, int ilen, int olen); | | inline void scale_line(sbyte *in, sbyte *out, int ilen, int olen); |
void gr_bitmap_scale_to(grs_bitmap *src, grs_bitmap *dst); | | void gr_bitmap_scale_to(grs_bitmap *src, grs_bitmap *dst); |
void show_fullscr(grs_bitmap *bm); | | void show_fullscr(grs_bitmap *bm); |
| | |