Last change
on this file since 483 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
-
Property svn:keywords set to
Id
|
File size:
723 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef __MORPH_H_ |
---|
| 2 | #define __MORPH_H_ |
---|
| 3 | |
---|
| 4 | #include "image.hpp" |
---|
| 5 | struct point |
---|
| 6 | { |
---|
| 7 | short sx,sy,ex,ey; /* starting x -ending x */ |
---|
| 8 | unsigned char sc,ec; /* start/ending color */ |
---|
| 9 | }; |
---|
| 10 | |
---|
| 11 | struct bmap |
---|
| 12 | { |
---|
| 13 | unsigned l,h; |
---|
| 14 | char *data; |
---|
| 15 | } ; |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | /* bm is an array [1..2] of the struct bmap - they will not be changed */ |
---|
| 19 | /* bm[0] is the staring morph bitmap which sx,sy and sc refer to |
---|
| 20 | bm[1] is the ending ---- ex,sy and ec --- |
---|
| 21 | numpoints returns the number of points. |
---|
| 22 | The function returns an array (which it allocates) of point (note above |
---|
| 23 | struct) |
---|
| 24 | bcolor is the background */ |
---|
| 25 | |
---|
| 26 | extern struct point *morph(image **bm, char bcolor, int *num_points); |
---|
| 27 | #endif |
---|
| 28 | /* Kiss off ok, ok, ok, ok.. */ |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.