Difference for include/gr.h from version 1.16 to 1.17


version 1.16 version 1.17
Line 19
 
Line 19
  * 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)
  *   *
Line 288
 
Line 291
 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
Line 302
 
Line 305
  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;
Line 581
 
Line 584
 // 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);
   

Legend:
line(s) removed in v.1.16 
line(s) changed
 line(s) added in v.1.17