2007-01-29 01:18:16 +00:00
|
|
|
// Base services interface declaration
|
|
|
|
// for the Build Engine
|
2012-03-12 04:47:04 +00:00
|
|
|
// by Jonathon Fowler (jf@jonof.id.au)
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2016-03-14 00:07:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef baselayer_h_
|
|
|
|
#define baselayer_h_
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2008-02-16 22:27:08 +00:00
|
|
|
#include "compat.h"
|
2020-07-14 12:00:27 +00:00
|
|
|
#include "c_dispatch.h"
|
2019-08-13 14:44:16 +00:00
|
|
|
#include "timer.h"
|
2019-10-27 08:53:09 +00:00
|
|
|
#include "c_cvars.h"
|
2019-10-28 00:12:31 +00:00
|
|
|
#include "inputstate.h"
|
2019-11-05 18:57:48 +00:00
|
|
|
#include "printf.h"
|
2019-11-10 10:42:25 +00:00
|
|
|
#include "zstring.h"
|
2019-11-28 18:35:35 +00:00
|
|
|
#include "vectors.h"
|
2008-02-16 22:27:08 +00:00
|
|
|
|
2019-09-21 11:02:17 +00:00
|
|
|
extern int32_t swapcomplete;
|
2019-11-09 18:15:03 +00:00
|
|
|
|
|
|
|
EXTERN_CVAR(Bool, r_usenewaspect)
|
2008-07-22 21:03:09 +00:00
|
|
|
|
2007-01-29 01:18:16 +00:00
|
|
|
// video
|
2019-11-09 18:15:03 +00:00
|
|
|
extern int32_t newaspect_enable;
|
2019-07-06 16:30:18 +00:00
|
|
|
extern int32_t r_fpgrouscan;
|
2012-08-16 21:48:56 +00:00
|
|
|
extern int32_t setaspect_new_use_dimen;
|
2020-04-15 05:13:24 +00:00
|
|
|
extern int32_t xres, yres, bpp;
|
|
|
|
extern double refreshfreq;
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2018-04-12 21:02:51 +00:00
|
|
|
int32_t videoCheckMode(int32_t *x, int32_t *y, int32_t c, int32_t fs, int32_t forced);
|
|
|
|
int32_t videoSetMode(int32_t x, int32_t y, int32_t c, int32_t fs);
|
|
|
|
void videoGetModes(void);
|
|
|
|
void videoShowFrame(int32_t);
|
|
|
|
int32_t videoUpdatePalette(int32_t start, int32_t num);
|
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
extern int32_t qsetmode;
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2013-08-24 22:55:49 +00:00
|
|
|
#define in3dmode() (qsetmode==200)
|
2013-05-30 09:13:32 +00:00
|
|
|
|
2018-04-12 21:02:31 +00:00
|
|
|
extern int32_t g_logFlushWindow;
|
2019-11-07 19:31:16 +00:00
|
|
|
|
2020-06-20 15:52:10 +00:00
|
|
|
#include "gamestruct.h"
|
2014-11-22 12:32:56 +00:00
|
|
|
#endif // baselayer_h_
|
2007-01-29 01:18:16 +00:00
|
|
|
|