Fixed a build problem.
[gljewel.git] / shape.h
blob755e046dccfc76dbc62cc17f7e82d926fcc67647
1 /**
2 * @file shape.h
3 * @brief The interface to the shape library module.
5 * Copyright 2001, 2008 David Ashley <dashxdr@gmail.com>
6 * Copyright 2008 Stephen M. Webb <stephen.webb@bregmasoft.ca>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of Version 2 of the GNU General Public License as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef GLJEWEL_SHAPE_H_
22 #define GLJEWEL_SHAPE_H_
25 /**
26 * Each shape must module must provide a registration function of type
27 * void (*f)(shape *) which will fill in an uninitialized structure of this
28 * type.
30 typedef struct shape
32 /* member functions */
33 void (*create)(float);
34 void (*draw)(void);
35 char *(*name)(void);
36 } shape;
38 #endif /* GLJEWEL_SHAPE_H_ */