Ignore:
Timestamp:
Apr 22, 2011, 7:32:13 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: rename trans_image to TImage. The code is now clean enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/timage.h

    r532 r533  
    2525 */
    2626
    27 class trans_image // transparent image
     27class TImage // transparent image
    2828{
    2929public:
    30     trans_image(image *im, char const *name);
    31     ~trans_image();
     30    TImage(image *im, char const *name);
     31    ~TImage();
    3232
    3333    inline vec2i Size() { return m_size; }
     
    3636    image *ToImage();
    3737
    38     void PutImage(image *screen, int x, int y); // always transparent
    39     void PutRemap(image *screen, int x, int y, uint8_t *remap);
    40     void PutDoubleRemap(image *screen, int x, int y,
    41                         uint8_t *remap, uint8_t *remap2);
    42     void PutFade(image *screen, int x, int y, int amount, int total_frames,
     38    void PutImage(image *screen, vec2i pos);
     39    void PutRemap(image *screen, vec2i pos, uint8_t *map);
     40    void PutDoubleRemap(image *screen, vec2i pos, uint8_t *map, uint8_t *map2);
     41    void PutFade(image *screen, vec2i pos, int amount, int total_frames,
    4342                 color_filter *f, palette *pal);
    44     void PutFadeTint(image *screen, int x, int y, int amount, int total_frames,
     43    void PutFadeTint(image *screen, vec2i pos, int amount, int total_frames,
    4544                     uint8_t *tint, color_filter *f, palette *pal);
    46     void PutColor(image *screen, int x, int y, uint8_t color);
    47     void PutFilled(image *screen, int x, int y, uint8_t color);
    48     void PutPredator(image *screen, int x, int y);
    49     void PutBlend(image *screen, int x, int y, image *blend, int bx, int by,
     45    void PutColor(image *screen, vec2i pos, uint8_t color);
     46    void PutFilled(image *screen, vec2i pos, uint8_t color);
     47    void PutPredator(image *screen, vec2i pos);
     48    void PutBlend(image *screen, vec2i pos, image *blend, vec2i bpos,
    5049                  int blend_amount, color_filter *f, palette *pal);
    51     void PutScanLine(image *screen, int x, int y, int line);
     50    void PutScanLine(image *screen, vec2i pos, int line);
    5251
    5352    size_t MemUsage();
    5453
    5554private:
    56     uint8_t *ClipToLine(image *screen, int x1, int y1, int x2, int y2,
    57                         int x, int &y, int &ysteps);
     55    uint8_t *ClipToLine(image *screen, vec2i pos1, vec2i pos2,
     56                        vec2i &posy, int &ysteps);
    5857
    5958    enum PutMode { NORMAL, REMAP, REMAP2, FADE, FADE_TINT, COLOR,
    6059                   FILLED, PREDATOR, BLEND, SCANLINE };
    6160    template<int N>
    62     void PutImageGeneric(image *dest, int x, int y, uint8_t color,
    63                          image *blend, int bx, int by,
     61    void PutImageGeneric(image *dest, vec2i pos, uint8_t color,
     62                         image *blend, vec2i bpos,
    6463                         uint8_t *map1, uint8_t *map2, int amount,
    6564                         int total_frames, uint8_t *tint,
Note: See TracChangeset for help on using the changeset viewer.