1 /*
2 Copyright (C) 2003 Cedric Cellier, Dominique Lavault
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17 */
18 #ifndef DRAW_H
19 #define DRAW_H
20 
21 #include "csg.h"
22 #include "data.h"
23 
24 extern int with_ktx, with_wgl;
25 
26 extern void draw_init();	/* to be called once opengl is ready and before call to draw functions */
27 extern void draw_csg_tree(csg_node *);
28 extern void draw_union_of_products(csg_union_of_products *);
29 extern void draw_union_of_partial_products(csg_union_of_partial_products *);
30 extern void draw_mesh(mesh *);
31 extern void draw_position(position *);
32 extern void draw_primitive(primitive *);
33 
34 #endif
35