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:22 +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);
|
|
|
|
|
2019-06-02 03:00:38 +00:00
|
|
|
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-21 02:59:31 +00:00
|
|
|
extern long _InputInitialiseMouse(bool exclusive); // returns HRESULT on Windows actually
|
2020-07-24 17:43:51 +00:00
|
|
|
extern void _InputShutdownMouse();
|
|
|
|
extern bool _InputMouseNeedsExclusive();
|
|
|
|
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 */
|