Browse Source

* Removed soon-to-be-thrown-away sprite stuff from the C++ bindings.

tags/v0.99.beta14
Sam Hocevar sam 19 years ago
parent
commit
a6553bce90
3 changed files with 2 additions and 59 deletions
  1. +2
    -2
      cpp/caca++.h
  2. +0
    -42
      cpp/cucul++.cpp
  3. +0
    -15
      cpp/cucul++.h

+ 2
- 2
cpp/caca++.h View File

@@ -53,10 +53,10 @@ class Caca
{
public:
Caca();
Caca(Cucul *qq);
Caca(Cucul *cv);
~Caca();

void attach(Cucul *qq);
void attach(Cucul *cv);
void detach();
void set_delay(unsigned int);
void display();


+ 0
- 42
cpp/cucul++.cpp View File

@@ -205,48 +205,6 @@ int Cucul::rand(int min, int 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 *d = new Dither();


+ 0
- 15
cpp/cucul++.h View File

@@ -41,13 +41,6 @@ class Cucul
cucul_font *font;
};

class Sprite
{
friend class Cucul;
protected:
cucul_sprite *sprite;
};

class Dither
{
friend class Cucul;
@@ -91,14 +84,6 @@ class Cucul
void draw_thin_triangle(int, int, int, int, int, int);
void fill_triangle(int, int, int, int, int, int, char const *);
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);
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);


Loading…
Cancel
Save