#pragma once #ifdef ANDROID #include #endif #include #include #include #include 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 } }