1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-10 21:39:15 +00:00
re3/src/skel/platform.h

60 lines
1.4 KiB
C
Raw Normal View History

2019-05-31 17:02:26 +00:00
#ifndef PLATFORM_H
#define PLATFORM_H
2020-07-24 17:43:51 +00:00
// Functions that's different on glfw/win etc. but have same signature (but if a function only used in win.cpp you can keep in win.h)
2019-05-31 17:02:26 +00:00
#include "rwcore.h"
#include "skeleton.h"
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
2020-05-11 02:55:57 +00:00
#ifdef _WIN32
2019-05-31 17:02:26 +00:00
extern RwUInt32 psTimer(void);
2020-05-11 02:55:57 +00:00
#else
extern double psTimer(void);
#endif
2019-05-31 17:02:26 +00:00
2020-05-23 09:34:40 +00:00
extern RwBool psInitialize(void);
2019-05-31 17:02:26 +00:00
extern void psTerminate(void);
extern void psCameraShowRaster(RwCamera *camera);
extern RwBool psCameraBeginUpdate(RwCamera *camera);
2020-08-14 15:57:23 +00:00
extern RwImage *psGrabScreen(RwCamera *camera);
2019-05-31 17:02:26 +00:00
extern void psMouseSetPos(RwV2d *pos);
extern RwBool psSelectDevice();
extern RwMemoryFunctions *psGetMemoryFunctions(void);
2019-05-31 17:02:26 +00:00
/* install the platform specific file system */
extern RwBool psInstallFileSystem(void);
/* Handle native texture support */
extern RwBool psNativeTextureSupport(void);
2020-05-11 02:55:57 +00:00
extern void _InputTranslateShiftKeyUpDown(RsKeyCodes* rs);
2020-07-24 17:43:51 +00:00
extern long _InputInitialiseMouse(); // returns HRESULT on Windows actually
extern void _InputInitialiseJoys();
2020-05-11 02:55:57 +00:00
extern void HandleExit();
extern void _psSelectScreenVM(RwInt32 videoMode);
extern void InitialiseLanguage();
extern RwBool _psSetVideoMode(RwInt32 subSystem, RwInt32 videoMode);
extern RwChar** _psGetVideoModeList();
extern RwInt32 _psGetNumVideModes();
2019-05-31 17:02:26 +00:00
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* PLATFORM_H */