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

Last change on this file since 494 was 494, checked in by Sam Hocevar, 11 years ago

style: remove trailing spaces, fix copyright statements.

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