mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
5e0ffb93b3
This introduces winbits.[ch] in the engine, containing layer-independent code migrated from winlayer, including nedmalloc, ebacktrace1, OS version detection, and high-resolution profiling timers. sdlayer has been expanded to include the code from winbits under _WIN32. All uses of RENDERTYPEWIN in the source have been examined and changed to _WIN32 (or removed) where the block in question is layer-independent. git-svn-id: https://svn.eduke32.com/eduke32@3221 1a8010ca-5511-0410-912e-c29ae57300e0
35 lines
716 B
C
35 lines
716 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
|
|
|
|
extern uint32_t maxrefreshfreq;
|
|
|
|
extern int32_t glusecds;
|
|
|
|
extern char di_disabled;
|
|
|
|
int32_t win_gethwnd(void);
|
|
int32_t 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__
|
|
|