Changeset 682 for abuse/trunk/src/imlib/transimage.h
- Timestamp:
- Sep 12, 2011, 10:17:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/transimage.h
r579 r682 31 31 ~TransImage(); 32 32 33 inline vec2iSize() { return m_size; }33 inline ivec2 Size() { return m_size; } 34 34 inline uint8_t *Data() { return m_data; } 35 35 36 36 image *ToImage(); 37 37 38 void PutImage(image *screen, vec2ipos);39 void PutRemap(image *screen, vec2ipos, uint8_t *map);40 void PutDoubleRemap(image *screen, vec2ipos, uint8_t *map, uint8_t *map2);41 void PutFade(image *screen, vec2ipos, int amount, int nframes,38 void PutImage(image *screen, ivec2 pos); 39 void PutRemap(image *screen, ivec2 pos, uint8_t *map); 40 void PutDoubleRemap(image *screen, ivec2 pos, uint8_t *map, uint8_t *map2); 41 void PutFade(image *screen, ivec2 pos, int amount, int nframes, 42 42 ColorFilter *f, palette *pal); 43 void PutFadeTint(image *screen, vec2ipos, int amount, int nframes,43 void PutFadeTint(image *screen, ivec2 pos, int amount, int nframes, 44 44 uint8_t *tint, ColorFilter *f, palette *pal); 45 void PutColor(image *screen, vec2ipos, uint8_t color);46 void PutFilled(image *screen, vec2ipos, uint8_t color);47 void PutPredator(image *screen, vec2ipos);48 void PutBlend(image *screen, vec2i pos, image *blend, vec2ibpos,45 void PutColor(image *screen, ivec2 pos, uint8_t color); 46 void PutFilled(image *screen, ivec2 pos, uint8_t color); 47 void PutPredator(image *screen, ivec2 pos); 48 void PutBlend(image *screen, ivec2 pos, image *blend, ivec2 bpos, 49 49 int blend_amount, ColorFilter *f, palette *pal); 50 void PutScanLine(image *screen, vec2ipos, int line);50 void PutScanLine(image *screen, ivec2 pos, int line); 51 51 52 52 size_t DiskUsage(); 53 53 54 54 private: 55 uint8_t *ClipToLine(image *screen, vec2i pos1, vec2ipos2,56 vec2i&posy, int &ysteps);55 uint8_t *ClipToLine(image *screen, ivec2 pos1, ivec2 pos2, 56 ivec2 &posy, int &ysteps); 57 57 58 58 enum PutMode { NORMAL, REMAP, REMAP2, FADE, FADE_TINT, COLOR, 59 59 FILLED, PREDATOR, BLEND, SCANLINE }; 60 60 template<int N> 61 void PutImageGeneric(image *dest, vec2ipos, uint8_t color,62 image *blend, vec2ibpos,61 void PutImageGeneric(image *dest, ivec2 pos, uint8_t color, 62 image *blend, ivec2 bpos, 63 63 uint8_t *map1, uint8_t *map2, int amount, 64 64 int nframes, uint8_t *tint, 65 65 ColorFilter *f, palette *pal); 66 66 67 vec2im_size;67 ivec2 m_size; 68 68 uint8_t *m_data; 69 69 };
Note: See TracChangeset
for help on using the changeset viewer.