Changeset 838
- Timestamp:
- Apr 22, 2006, 9:00:14 PM (16 years ago)
- Location:
- libcaca/trunk/cpp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cpp/caca++.h
r831 r838 54 54 public: 55 55 Caca(); 56 Caca(Cucul * qq);56 Caca(Cucul *cv); 57 57 ~Caca(); 58 58 59 void attach(Cucul * qq);59 void attach(Cucul *cv); 60 60 void detach(); 61 61 void set_delay(unsigned int); -
libcaca/trunk/cpp/cucul++.cpp
r832 r838 206 206 } 207 207 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 250 208 Cucul::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) 251 209 { -
libcaca/trunk/cpp/cucul++.h
r832 r838 40 40 protected: 41 41 cucul_font *font; 42 };43 44 class Sprite45 {46 friend class Cucul;47 protected:48 cucul_sprite *sprite;49 42 }; 50 43 … … 92 85 void fill_triangle(int, int, int, int, int, int, char const *); 93 86 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*);102 87 Dither * create_dither(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); 103 88 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.