Changeset 527 for abuse/trunk/src/imlib/timage.h
- Timestamp:
- Apr 22, 2011, 4:13:04 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/timage.h
r524 r527 25 25 class trans_image // transpernet image 26 26 { 27 unsigned char *data; 28 short w,h;27 public: 28 trans_image(image *im, char const *name); // name has no meaning if MEM_CHECK is off 29 29 30 public : 31 short height() { return h; } 32 short width() { return w; } 33 trans_image(image *im, char const *name); // name has no meaning if MEM_CHECK is off 30 inline vec2i Size() { return m_size; } 31 uint8_t *Data() { return m_data; } 32 34 33 void put_image(image *screen, int x, int y); // always transparent 35 34 … … 54 53 void put_predator(image *screen, int x, int y); 55 54 void put_scan_line(image *screen, int x, int y, int line); // always transparent 56 unsigned char *t_data() { return data; } 57 int size(); 55 size_t MemUsage(); 58 56 image *make_image(); 59 ~trans_image() { free(data); }57 ~trans_image(); 60 58 61 59 private: 62 60 uint8_t *ClipToLine(image *screen, int x1, int y1, int x2, int y2, 63 61 int x, int &y, int &ysteps); 64 } ;65 62 63 vec2i m_size; 64 uint8_t *m_data; 65 }; 66 66 67 67 #endif 68 68 69 70 71 72
Note: See TracChangeset
for help on using the changeset viewer.