2019-05-31 13:02:26 -04:00
|
|
|
#ifndef PLATFORM_H
|
|
|
|
#define PLATFORM_H
|
|
|
|
|
2020-07-24 13:43:51 -04: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 13:02:26 -04:00
|
|
|
#include "rwcore.h"
|
|
|
|
#include "skeleton.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2020-05-10 22:55:57 -04:00
|
|
|
#ifdef _WIN32
|
2019-05-31 13:02:26 -04:00
|
|
|
extern RwUInt32 psTimer(void);
|
2020-05-10 22:55:57 -04:00
|
|
|
#else
|
|
|
|
extern double psTimer(void);
|
|
|
|
#endif
|
2019-05-31 13:02:26 -04:00
|
|
|
|
2020-05-23 05:34:40 -04:00
|
|
|
extern RwBool psInitialize(void);
|
2019-05-31 13:02:26 -04:00
|
|
|
extern void psTerminate(void);
|
|
|
|
|
|
|
|
extern void psCameraShowRaster(RwCamera *camera);
|
|
|
|
extern RwBool psCameraBeginUpdate(RwCamera *camera);
|
2020-08-14 11:57:23 -04:00
|
|
|
extern RwImage *psGrabScreen(RwCamera *camera);
|
2019-05-31 13:02:26 -04:00
|
|
|
|
|
|
|
extern void psMouseSetPos(RwV2d *pos);
|
|
|
|
|
2019-06-01 23:00:38 -04:00
|
|
|
extern RwBool psSelectDevice();
|
|
|
|
|
|
|
|
extern RwMemoryFunctions *psGetMemoryFunctions(void);
|
2019-05-31 13:02:26 -04:00
|
|
|
|
|
|
|
/* install the platform specific file system */
|
|
|
|
extern RwBool psInstallFileSystem(void);
|
|
|
|
|
|
|
|
|
|
|
|
/* Handle native texture support */
|
|
|
|
extern RwBool psNativeTextureSupport(void);
|
|
|
|
|
2020-05-10 22:55:57 -04:00
|
|
|
extern void _InputTranslateShiftKeyUpDown(RsKeyCodes* rs);
|
2020-07-24 13:43:51 -04:00
|
|
|
extern long _InputInitialiseMouse(); // returns HRESULT on Windows actually
|
|
|
|
extern void _InputInitialiseJoys();
|
2020-05-10 22:55:57 -04: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 13:02:26 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* PLATFORM_H */
|