/***************************************************************************
                          main.h  -  description
                             -------------------
    begin                : Die Nov 9 2004
    copyright            : (C) 2004 by 
    email                : 
 ***************************************************************************/

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

#ifndef MAIN_H
#define MAIN_H

#include "globdefines.h"
#include "listviews.h"
#include "spl_prg.h"

extern int g_mouse_mode;
extern int g_mouse_x;
extern int g_mouse_y;
extern int g_mouse_button;
extern sgVec3 g_poi; // point of interest
extern int g_window_w;
extern int g_window_h;
extern int g_key;
extern int g_playmode;
extern int g_playmode_reset;
extern int g_switch;
extern long g_nextitem;
extern long g_nextid;
extern class FolderListItem *g_ListItem[MAX_LIST_ITEMS];
extern int gl_spl_num;
extern splPrg  *gl_spl_obj[MAX_SPL];
extern float g_fps;
extern float g_phfps;


// js
extern class jsJoystick *g_js[2] ;
extern float    g_ax[2][8] ;
extern int g_buttons[2] ;

extern class aStar *gastar;

extern class netclient    *g_client;
extern class Glcontrol    *g_gl;
extern class usercamera   *g_usercam;
extern class FolderListItem *g_tmpItem;
extern class FolderListItem * g_switchScene;
extern class QString g_mypath;
extern class QString g_prjpath;
extern int gl_sound_num;

#ifdef KCOPENAL
extern class AudioEnv *Audio;
#endif

#endif
