diff options
Diffstat (limited to '')
-rw-r--r-- | src/others/mimesh/gl.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/others/mimesh/gl.h b/src/others/mimesh/gl.h new file mode 100644 index 0000000..d72ea95 --- /dev/null +++ b/src/others/mimesh/gl.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* $Id: gl.h 41 2006-05-22 12:23:29Z mmmaddd $ */ | ||
2 | |||
3 | /* | ||
4 | G3DViewer - 3D object viewer | ||
5 | |||
6 | Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation; either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program; if not, write to the Free Software | ||
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _GL_H | ||
24 | #define _GL_H | ||
25 | |||
26 | G_BEGIN_DECLS | ||
27 | |||
28 | #define G3D_FLAG_GL_SPECULAR (1L << 0) | ||
29 | #define G3D_FLAG_GL_SHININESS (1L << 1) | ||
30 | #define G3D_FLAG_GL_ALLTWOSIDE (1L << 2) | ||
31 | #define G3D_FLAG_GL_TEXTURES (1L << 3) | ||
32 | |||
33 | void gl_set_twoside(gboolean twoside); | ||
34 | void gl_set_textures(gboolean textures); | ||
35 | void gl_load_texture(gpointer key, gpointer value, gpointer data); | ||
36 | void gl_draw_model(G3DModel *model); | ||
37 | void gl_draw_model_with_flags(gint32 glflags, G3DModel *model); | ||
38 | void gl_draw(gint32 glflags, G3DFloat zoom, G3DFloat aspect, G3DFloat *bgcolor, G3DFloat *quat, G3DModel *model); | ||
39 | int texture_load_all_textures(G3DModel *model); | ||
40 | |||
41 | G_END_DECLS | ||
42 | |||
43 | #endif | ||