1998-06-12 01:07:06 +00:00
|
|
|
/**************************************************************************
|
|
|
|
* gui.h
|
|
|
|
*
|
|
|
|
* Written 1998 by Durk Talsma, started Juni, 1998. For the flight gear
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* 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
|
2006-02-21 01:16:04 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1998-06-12 01:07:06 +00:00
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _GUI_H_
|
|
|
|
#define _GUI_H_
|
|
|
|
|
2001-04-22 17:00:08 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2004-03-31 21:10:32 +00:00
|
|
|
#include <plib/pu.h>
|
1998-06-12 01:07:06 +00:00
|
|
|
|
2003-09-24 17:20:55 +00:00
|
|
|
#include <simgear/structure/exception.hxx>
|
2001-07-24 23:50:44 +00:00
|
|
|
|
2002-08-25 22:53:38 +00:00
|
|
|
#define TR_HIRES_SNAP 1
|
|
|
|
|
2008-08-01 15:57:29 +00:00
|
|
|
namespace osg
|
|
|
|
{
|
|
|
|
class GraphicsContext;
|
|
|
|
}
|
2001-01-08 20:55:16 +00:00
|
|
|
// gui.cxx
|
2008-08-01 15:57:29 +00:00
|
|
|
extern void guiStartInit(osg::GraphicsContext*);
|
2008-05-19 21:21:03 +00:00
|
|
|
extern bool guiFinishInit();
|
1999-06-01 21:17:10 +00:00
|
|
|
extern void mkDialog(const char *txt);
|
2001-07-24 23:50:44 +00:00
|
|
|
extern void guiErrorMessage(const char *txt);
|
|
|
|
extern void guiErrorMessage(const char *txt, const sg_throwable &throwable);
|
1999-05-12 01:11:17 +00:00
|
|
|
|
2008-04-26 22:34:46 +00:00
|
|
|
extern bool fgDumpSnapShot();
|
2007-05-26 11:39:13 +00:00
|
|
|
extern void fgDumpSceneGraph();
|
2007-11-21 20:51:49 +00:00
|
|
|
extern void fgDumpTerrainBranch();
|
1999-10-26 03:45:33 +00:00
|
|
|
|
1999-05-12 01:11:17 +00:00
|
|
|
extern puFont guiFnt;
|
|
|
|
extern fntTexFont *guiFntHandle;
|
2001-01-08 20:55:16 +00:00
|
|
|
extern int gui_menu_on;
|
1999-05-12 01:11:17 +00:00
|
|
|
|
2002-08-25 22:53:38 +00:00
|
|
|
// from gui_funcs.cxx
|
2008-06-23 18:28:02 +00:00
|
|
|
extern void fgDumpSnapShotWrapper();
|
2002-08-25 22:53:38 +00:00
|
|
|
#ifdef TR_HIRES_SNAP
|
2008-06-23 18:28:02 +00:00
|
|
|
extern void fgHiResDumpWrapper();
|
2004-09-27 02:39:54 +00:00
|
|
|
extern void fgHiResDump();
|
2002-08-25 22:53:38 +00:00
|
|
|
#endif
|
2010-07-31 15:54:37 +00:00
|
|
|
|
2008-06-23 18:28:02 +00:00
|
|
|
extern void helpCb();
|
2002-08-25 22:53:38 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2008-04-13 21:12:36 +00:00
|
|
|
const char *name;
|
2008-06-23 18:28:02 +00:00
|
|
|
void (*fn)();
|
2002-08-25 22:53:38 +00:00
|
|
|
} __fg_gui_fn_t;
|
|
|
|
extern const __fg_gui_fn_t __fg_gui_fn[];
|
|
|
|
|
1999-05-06 21:14:06 +00:00
|
|
|
#endif // _GUI_H_
|