/ source / blood / src / globals.h
globals.h
 1  //-------------------------------------------------------------------------
 2  /*
 3  Copyright (C) 2010-2019 EDuke32 developers and contributors
 4  Copyright (C) 2019 Nuke.YKT
 5  
 6  This file is part of NBlood.
 7  
 8  NBlood is free software; you can redistribute it and/or
 9  modify it under the terms of the GNU General Public License version 2
10  as published by the Free Software Foundation.
11  
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  
16  See the 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21  */
22  //-------------------------------------------------------------------------
23  #pragma once
24  #include "compat.h"
25  #include "build.h"
26  #include "resource.h"
27  
28  typedef struct {
29      int32_t usejoystick;
30      int32_t joystickrumble;
31      int32_t usemouse;
32      int32_t fullscreen;
33      int32_t xdim;
34      int32_t ydim;
35      int32_t bpp;
36      int32_t forcesetup;
37      int32_t noautoload;
38      int32_t quickstart;
39      int32_t firstlaunch;
40      char lastini[BMAX_PATH];
41  } ud_setup_t;
42  
43  extern ud_setup_t gSetup;
44  extern ClockTicks gFrameClock;
45  extern ClockTicks gFrameTicks;
46  extern int gFrame;
47  extern int gFrameRate;
48  extern int gGamma;
49  
50  extern Resource gSysRes;
51  const char *GetVersionString(void);