forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef ANDROID
|
||||
#include <jni.h>
|
||||
#endif
|
||||
|
||||
#include <kha/vr/SensorState.h>
|
||||
#include <kha/vr/TimeWarpParms.h>
|
||||
|
||||
#include <kha/Image.h>
|
||||
|
||||
#include <kha/math/Quaternion.h>
|
||||
|
||||
namespace Kore {
|
||||
|
||||
namespace VrInterface {
|
||||
|
||||
#ifdef ANDROID
|
||||
// Save the JVM. Must be called before Initialize().
|
||||
// TODO: Can this be handled better?
|
||||
void SetJVM(JavaVM *jvm);
|
||||
#endif
|
||||
|
||||
#ifdef VR_CARDBOARD
|
||||
void DistortionBefore();
|
||||
|
||||
void DistortionAfter();
|
||||
|
||||
void DistortTexture(kha::Image_obj *image);
|
||||
|
||||
void updateGaze(float x, float y, float z, float w);
|
||||
|
||||
kha::math::Quaternion_obj *getGaze();
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef VR_GEAR_VR
|
||||
// Calls ovr_enterVrMode
|
||||
void Initialize();
|
||||
|
||||
void WarpSwapBlack();
|
||||
|
||||
void WarpSwapLoadingIcon();
|
||||
|
||||
kha::vr::SensorState_obj *GetSensorState();
|
||||
|
||||
kha::vr::SensorState_obj *GetPredictedSensorState(float time);
|
||||
|
||||
double GetTimeInSeconds();
|
||||
|
||||
void WarpSwap(kha::vr::TimeWarpParms_obj *parms);
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user