Last change
on this file since 481 was
481,
checked in by Sam Hocevar, 12 years ago
|
Fuck the history, I'm renaming all .hpp files to .h for my own sanity.
|
File size:
985 bytes
|
Rev | Line | |
---|
[56] | 1 | /* |
---|
| 2 | * Abuse - dark 2D side-scrolling platform game |
---|
| 3 | * Copyright (c) 1995 Crack dot Com |
---|
| 4 | * |
---|
| 5 | * This software was released into the Public Domain. As with most public |
---|
| 6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
| 7 | * Jonathan Clark. |
---|
| 8 | */ |
---|
| 9 | |
---|
[2] | 10 | #ifndef __MORPH_H_ |
---|
| 11 | #define __MORPH_H_ |
---|
| 12 | |
---|
[481] | 13 | #include "image.h" |
---|
[2] | 14 | struct point |
---|
| 15 | { |
---|
| 16 | short sx,sy,ex,ey; /* starting x -ending x */ |
---|
| 17 | unsigned char sc,ec; /* start/ending color */ |
---|
| 18 | }; |
---|
| 19 | |
---|
| 20 | struct bmap |
---|
| 21 | { |
---|
| 22 | unsigned l,h; |
---|
| 23 | char *data; |
---|
| 24 | } ; |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | /* bm is an array [1..2] of the struct bmap - they will not be changed */ |
---|
| 28 | /* bm[0] is the staring morph bitmap which sx,sy and sc refer to |
---|
| 29 | bm[1] is the ending ---- ex,sy and ec --- |
---|
| 30 | numpoints returns the number of points. |
---|
| 31 | The function returns an array (which it allocates) of point (note above |
---|
| 32 | struct) |
---|
| 33 | bcolor is the background */ |
---|
| 34 | |
---|
| 35 | extern struct point *morph(image **bm, char bcolor, int *num_points); |
---|
| 36 | #endif |
---|
| 37 | /* Kiss off ok, ok, ok, ok.. */ |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | |
---|
Note: See
TracBrowser
for help on using the repository browser.