source: abuse/tags/pd/macabuse/imlib/include/supmorph.hpp

Last change on this file was 49, checked in by Sam Hocevar, 12 years ago
  • Imported original public domain release, for future reference.
File size: 711 bytes
Line 
1#ifndef __SUPER_MORPH_HPP__
2#define __SUPER_MORPH_HPP__
3#include "jmalloc.hpp"
4#include "timage.hpp"
5
6class super_morph
7{
8public :
9  int t;
10  unsigned char *movers;
11  int w,h;
12  super_morph(trans_image *h1, trans_image *h2, int aneal_steps, void (*stat_fun)(int)); 
13  ~super_morph() { if (t) jfree(movers); }
14} ;
15
16
17struct stepper
18{
19  long x,y,r,g,b,dx,dy,dr,dg,db;
20} ;
21
22class smorph_player
23{
24  stepper *steps;
25  unsigned char *hole;
26public :
27  int w,h,f_left,t;
28  smorph_player(super_morph *m, palette *pal, image *i1, image *i2, int frames, int dir);
29  int show(image *screen, int x, int y, color_filter *fil, palette *pal, int blur_threshold);
30  ~smorph_player() { jfree(hole); jfree(steps);  }
31} ;
32
33
34#endif
Note: See TracBrowser for help on using the repository browser.