source: abuse/trunk/src/imlib/morph.h @ 128

Last change on this file since 128 was 57, checked in by Sam Hocevar, 15 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 987 bytes
Line 
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
10#ifndef __MORPH_H_
11#define __MORPH_H_
12
13#include "image.hpp"
14struct point
15{
16  short sx,sy,ex,ey;    /* starting x -ending x */
17  unsigned char sc,ec;             /* start/ending color */
18};
19
20struct 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
35extern 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.