aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/g3dviewer-0.2.99.4/src/main.h')
-rw-r--r--src/others/mimesh/g3dviewer-0.2.99.4/src/main.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h b/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h
new file mode 100644
index 0000000..40bc5a1
--- /dev/null
+++ b/src/others/mimesh/g3dviewer-0.2.99.4/src/main.h
@@ -0,0 +1,70 @@
1/* $Id: main.h 53 2006-06-04 14:49:01Z 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 _MAIN_H
24#define _MAIN_H
25
26#include <GL/gl.h>
27#include <glib/gi18n.h>
28#include <gtk/gtk.h>
29#include <glade/glade-xml.h>
30#include <g3d/g3d.h>
31
32typedef struct {
33 G3DContext *g3dcontext;
34 G3DModel *model;
35 gchar *filename;
36
37 /* GL stuff */
38 GLfloat quat[4];
39 GLfloat zoom;
40 GLfloat aspect;
41 GLfloat bgcolor[4];
42 guint32 glflags;
43
44 /* mouse */
45 struct {
46 gint32 beginx, beginy;
47 } mouse;
48
49 /* model information */
50 struct {
51 GtkTreeStore *treestore;
52 GtkTreeStore *logtreestore;
53 } info;
54
55 /* interface */
56 struct {
57 GladeXML *xml;
58
59 GtkWidget *window;
60 GtkWidget *infowin;
61
62 GtkWidget *glarea;
63 GdkPixbuf **icons;
64
65 guint status_context_id;
66 } interface;
67
68} G3DViewer;
69
70#endif /* _MAIN_H */