1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-22 14:35:58 +01:00
This commit is contained in:
XProger 2019-09-25 02:48:08 +03:00
parent 539d0f0bff
commit ee65d5ca7e
4 changed files with 13 additions and 18 deletions

View File

@ -22,11 +22,16 @@
#undef OS_PTHREAD_MT
#ifdef _GAPI_GL
#define VR_SUPPORT
#endif
#elif ANDROID
#define _OS_ANDROID 1
#define _GAPI_GL 1
#define _GAPI_GLES 1
//#define _GAPI_VULKAN
#define VR_SUPPORT
#elif __SDL2__
#define _GAPI_GL 1
#ifdef SDL2_GLES
@ -127,8 +132,6 @@
#define SHADOW_TEX_SIZE 2048
#endif
extern void osToggleVR(bool enable);
extern void* osMutexInit ();
extern void osMutexFree (void *obj);
extern void osMutexLock (void *obj);
@ -330,6 +333,14 @@ namespace Core {
}
}
#ifdef VR_SUPPORT
extern void osToggleVR(bool enable);
#else
void osToggleVR(bool enable) {
Core::settings.detail.stereo = Core::Settings::STEREO_OFF;
}
#endif
#ifdef PROFILE
struct TimingCPU {
int &result;

View File

@ -130,10 +130,6 @@ void osJoyVibrate(int index, float L, float R) {
joyDevice[index].vR = R;
}
void osToggleVR(bool enable) {
Core::settings.detail.stereo = Core::Settings::STEREO_OFF;
}
void joyInit() {
LOG("init gamepads:\n");
char name[128];

View File

@ -103,10 +103,6 @@ void osJoyVibrate(int index, float L, float R) {
// TODO
}
void osToggleVR(bool enable) {
// TODO
}
bool isKeyPressed (SDL_Scancode scancode) {
const Uint8 *state = SDL_GetKeyboardState(NULL);
if (state[scancode]) {

View File

@ -661,10 +661,6 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
}
//VR Support
#ifdef _GAPI_GL
#define VR_SUPPORT
#endif
#ifdef VR_SUPPORT
// TODO: fix depth precision
// TODO: fix water surface rendering
@ -886,10 +882,6 @@ void osToggleVR(bool enable) {
#else
void osToggleVR(bool enable) {
Core::settings.detail.stereo = Core::Settings::STEREO_OFF;
}
void vrUpdate() {}
void vrCompose() {}