blob: 40bc5a1870608d8618ee4e64239f74b90f3f4e9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/* $Id: main.h 53 2006-06-04 14:49:01Z mmmaddd $ */
/*
G3DViewer - 3D object viewer
Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _MAIN_H
#define _MAIN_H
#include <GL/gl.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <glade/glade-xml.h>
#include <g3d/g3d.h>
typedef struct {
G3DContext *g3dcontext;
G3DModel *model;
gchar *filename;
/* GL stuff */
GLfloat quat[4];
GLfloat zoom;
GLfloat aspect;
GLfloat bgcolor[4];
guint32 glflags;
/* mouse */
struct {
gint32 beginx, beginy;
} mouse;
/* model information */
struct {
GtkTreeStore *treestore;
GtkTreeStore *logtreestore;
} info;
/* interface */
struct {
GladeXML *xml;
GtkWidget *window;
GtkWidget *infowin;
GtkWidget *glarea;
GdkPixbuf **icons;
guint status_context_id;
} interface;
} G3DViewer;
#endif /* _MAIN_H */
|