Logo Search packages:      
Sourcecode: g3dviewer version File versions  Download package

main.h

/* $Id: main.h 87 2008-07-01 12:14:55Z 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>

#include "gl.h"

#define G3DV_FLAG_DEBUG_TREE       (1 << 0)
#define G3DV_FLAG_DEBUG_TREE_DATA  (1 << 1)

typedef struct {
      G3DContext *g3dcontext;
      G3DModel *model;
      gchar *filename;
      guint32 flags;

      /* debugging stuff */
      guint32 debug_level;
      guint32 debug_flags;

      /* GL stuff */
      G3DGLRenderOptions *renderoptions;

      /* 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 */

Generated by  Doxygen 1.6.0   Back to index