File: supmorph.hpp

package info (click to toggle)
abuse 2.00-12
  • links: PTS
  • area: main
  • in suites: slink
  • size: 12,708 kB
  • ctags: 15,389
  • sloc: ansic: 115,852; cpp: 6,792; lisp: 2,066; sh: 1,734; makefile: 1,601; asm: 264
file content (34 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __SUPER_MORPH_HPP__
#define __SUPER_MORPH_HPP__
#include "jmalloc.hpp"
#include "timage.hpp"

class super_morph
{
public :
  int t;
  unsigned char *movers;
  int w,h;
  super_morph(trans_image *h1, trans_image *h2, int aneal_steps, void (*stat_fun)(int));  
  ~super_morph() { if (t) jfree(movers); }
} ;


struct stepper
{
  long x,y,r,g,b,dx,dy,dr,dg,db;
} ;

class smorph_player
{
  stepper *steps;
  unsigned char *hole;
public :
  int w,h,f_left,t;
  smorph_player(super_morph *m, palette *pal, image *i1, image *i2, int frames, int dir);
  int show(image *screen, int x, int y, color_filter *fil, palette *pal, int blur_threshold);
  ~smorph_player() { jfree(hole); jfree(steps);  }
} ;


#endif