| @@ -53,10 +53,10 @@ class Caca | |||||
| { | { | ||||
| public: | public: | ||||
| Caca(); | Caca(); | ||||
| Caca(Cucul *qq); | |||||
| Caca(Cucul *cv); | |||||
| ~Caca(); | ~Caca(); | ||||
| void attach(Cucul *qq); | |||||
| void attach(Cucul *cv); | |||||
| void detach(); | void detach(); | ||||
| void set_delay(unsigned int); | void set_delay(unsigned int); | ||||
| void display(); | void display(); | ||||
| @@ -205,48 +205,6 @@ int Cucul::rand(int min, int max) | |||||
| return cucul_rand(min, max); | return cucul_rand(min, max); | ||||
| } | } | ||||
| Cucul::Sprite * Cucul::load_sprite(char const *f) | |||||
| { | |||||
| Cucul::Sprite *s = new Cucul::Sprite(); | |||||
| s->sprite = cucul_load_sprite(f); | |||||
| return s; | |||||
| } | |||||
| int Cucul::get_sprite_frames(Cucul::Sprite const *s) | |||||
| { | |||||
| return cucul_get_sprite_frames(s->sprite); | |||||
| } | |||||
| int Cucul::get_sprite_width(Cucul::Sprite const *s, int v) | |||||
| { | |||||
| return cucul_get_sprite_width(s->sprite, v); | |||||
| } | |||||
| int Cucul::get_sprite_height(Cucul::Sprite const *s, int v) | |||||
| { | |||||
| return cucul_get_sprite_height(s->sprite, v); | |||||
| } | |||||
| int Cucul::get_sprite_dx(Cucul::Sprite const *s, int v) | |||||
| { | |||||
| return cucul_get_sprite_dx(s->sprite, v); | |||||
| } | |||||
| int Cucul::get_sprite_dy(Cucul::Sprite const *s, int v) | |||||
| { | |||||
| return cucul_get_sprite_dy(s->sprite, v); | |||||
| } | |||||
| void Cucul::draw_sprite(int x, int y, Cucul::Sprite const *s, int v) | |||||
| { | |||||
| cucul_draw_sprite(cv, x, y, s->sprite, v); | |||||
| } | |||||
| void Cucul::free_sprite(Cucul::Sprite *s) | |||||
| { | |||||
| cucul_free_sprite(s->sprite); | |||||
| } | |||||
| 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) | 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) | ||||
| { | { | ||||
| Cucul::Dither *d = new Dither(); | Cucul::Dither *d = new Dither(); | ||||
| @@ -41,13 +41,6 @@ class Cucul | |||||
| cucul_font *font; | cucul_font *font; | ||||
| }; | }; | ||||
| class Sprite | |||||
| { | |||||
| friend class Cucul; | |||||
| protected: | |||||
| cucul_sprite *sprite; | |||||
| }; | |||||
| class Dither | class Dither | ||||
| { | { | ||||
| friend class Cucul; | friend class Cucul; | ||||
| @@ -91,14 +84,6 @@ class Cucul | |||||
| void draw_thin_triangle(int, int, int, int, int, int); | void draw_thin_triangle(int, int, int, int, int, int); | ||||
| void fill_triangle(int, int, int, int, int, int, char const *); | void fill_triangle(int, int, int, int, int, int, char const *); | ||||
| int rand(int, int); | int rand(int, int); | ||||
| Sprite * load_sprite(char const *); | |||||
| int get_sprite_frames(Cucul::Sprite const *); | |||||
| int get_sprite_width(Cucul::Sprite const *, int); | |||||
| int get_sprite_height(Cucul::Sprite const *, int); | |||||
| int get_sprite_dx(Cucul::Sprite const *, int); | |||||
| int get_sprite_dy(Cucul::Sprite const *, int); | |||||
| void draw_sprite(int, int, Cucul::Sprite const *, int); | |||||
| void free_sprite(Cucul::Sprite*); | |||||
| Dither * create_dither(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); | Dither * create_dither(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); | ||||
| void set_dither_palette(Cucul::Dither *, unsigned int r[], unsigned int g[], unsigned int b[], unsigned int a[]); | void set_dither_palette(Cucul::Dither *, unsigned int r[], unsigned int g[], unsigned int b[], unsigned int a[]); | ||||
| void set_dither_brightness(Cucul::Dither *, float); | void set_dither_brightness(Cucul::Dither *, float); | ||||