Changeset 838 for libcaca/trunk/cpp


Ignore:
Timestamp:
Apr 22, 2006, 9:00:14 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Removed soon-to-be-thrown-away sprite stuff from the C++ bindings.
Location:
libcaca/trunk/cpp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cpp/caca++.h

    r831 r838  
    5454  public:
    5555    Caca();
    56     Caca(Cucul *qq);
     56    Caca(Cucul *cv);
    5757    ~Caca();
    5858
    59     void attach(Cucul *qq);
     59    void attach(Cucul *cv);
    6060    void detach();
    6161    void set_delay(unsigned int);
  • libcaca/trunk/cpp/cucul++.cpp

    r832 r838  
    206206}
    207207
    208 Cucul::Sprite * Cucul::load_sprite(char const *f)
    209 {
    210     Cucul::Sprite *s = new Cucul::Sprite();
    211     s->sprite = cucul_load_sprite(f);
    212     return s;
    213 }
    214 
    215 int Cucul::get_sprite_frames(Cucul::Sprite const *s)
    216 {
    217     return cucul_get_sprite_frames(s->sprite);
    218 }
    219 
    220 int Cucul::get_sprite_width(Cucul::Sprite const *s, int v)
    221 {
    222     return cucul_get_sprite_width(s->sprite, v);
    223 }
    224 
    225 int Cucul::get_sprite_height(Cucul::Sprite const *s, int v)
    226 {
    227     return cucul_get_sprite_height(s->sprite, v);
    228 }
    229 
    230 int Cucul::get_sprite_dx(Cucul::Sprite const *s, int v)
    231 {
    232     return cucul_get_sprite_dx(s->sprite, v);
    233 }
    234 
    235 int Cucul::get_sprite_dy(Cucul::Sprite const *s, int v)
    236 {
    237     return cucul_get_sprite_dy(s->sprite, v);
    238 }
    239 
    240 void Cucul::draw_sprite(int x, int y, Cucul::Sprite const *s, int v)
    241 {
    242     cucul_draw_sprite(cv, x, y, s->sprite, v);
    243 }
    244 
    245 void Cucul::free_sprite(Cucul::Sprite *s)
    246 {
    247     cucul_free_sprite(s->sprite);
    248 }
    249 
    250208Cucul::Dither * Cucul::create_dither(unsigned int v1, unsigned int v2, unsigned int v3, unsigned int v4, unsigned int v5, unsigned int v6, unsigned int v7, unsigned int v8)
    251209{
  • libcaca/trunk/cpp/cucul++.h

    r832 r838  
    4040      protected:
    4141        cucul_font *font;
    42     };
    43 
    44     class Sprite
    45     {
    46         friend class Cucul;
    47       protected:
    48         cucul_sprite *sprite;
    4942    };
    5043
     
    9285    void fill_triangle(int, int, int, int, int, int, char const *);
    9386    int rand(int, int);
    94     Sprite * load_sprite(char const *);
    95     int get_sprite_frames(Cucul::Sprite const *);
    96     int get_sprite_width(Cucul::Sprite const *, int);
    97     int get_sprite_height(Cucul::Sprite const *, int);
    98     int get_sprite_dx(Cucul::Sprite const *, int);
    99     int get_sprite_dy(Cucul::Sprite const *, int);
    100     void draw_sprite(int, int, Cucul::Sprite const *, int);
    101     void free_sprite(Cucul::Sprite*);
    10287    Dither * create_dither(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
    10388    void set_dither_palette(Cucul::Dither *, unsigned int r[], unsigned int g[], unsigned int b[], unsigned int a[]);
Note: See TracChangeset for help on using the changeset viewer.