mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
b72dec2940
There are still a bunch of warnings, but fixing warnings in deprecated code that only one guy uses anymore isn't an efficient use of time. git-svn-id: https://svn.eduke32.com/eduke32@7387 1a8010ca-5511-0410-912e-c29ae57300e0
39 lines
767 B
C
39 lines
767 B
C
// Windows DIB/DirectDraw interface layer for the Build Engine
|
|
// Originally by Jonathon Fowler (jf@jonof.id.au)
|
|
|
|
#ifndef build_interface_layer_
|
|
#define build_interface_layer_ WIN
|
|
|
|
#include "compat.h"
|
|
#include "windows_inc.h"
|
|
|
|
extern uint32_t maxrefreshfreq;
|
|
|
|
extern int32_t glusecds;
|
|
|
|
extern char di_disabled;
|
|
extern char forcegl;
|
|
|
|
HWND win_gethwnd(void);
|
|
HINSTANCE win_gethinstance(void);
|
|
|
|
extern void idle_waitevent_timeout(uint32_t timeout);
|
|
|
|
static inline void idle_waitevent(void)
|
|
{
|
|
idle_waitevent_timeout(100);
|
|
}
|
|
|
|
static inline void idle(void)
|
|
{
|
|
idle_waitevent();
|
|
}
|
|
|
|
#include "baselayer.h"
|
|
|
|
#else
|
|
#if (build_interface_layer_ != WIN)
|
|
#error "Already using the " build_interface_layer_ ". Can't now use Windows."
|
|
#endif
|
|
#endif // build_interface_layer_
|
|
|