2021-02-03 22:13:37 +00:00
|
|
|
#if !defined(vrcommon_h)
|
|
|
|
#define vrcommon_h
|
|
|
|
|
|
|
|
#include <android/log.h>
|
|
|
|
|
|
|
|
#include "../darkplaces/mathlib.h"
|
|
|
|
|
2022-12-22 22:22:52 +00:00
|
|
|
#include "TBXR_Common.h"
|
|
|
|
|
2021-02-03 22:13:37 +00:00
|
|
|
#define LOG_TAG "QuakeQuest"
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
#define DEBUG 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ALOGE(...) __android_log_print( ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__ )
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
#define ALOGV(...) __android_log_print( ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__ )
|
|
|
|
#else
|
|
|
|
#define ALOGV(...)
|
|
|
|
#endif
|
|
|
|
|
2022-12-22 22:22:52 +00:00
|
|
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
|
|
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
|
|
|
extern ovrTrackedController leftRemoteTracking_new;
|
|
|
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
|
|
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
|
|
|
extern ovrTrackedController rightRemoteTracking_new;
|
|
|
|
|
|
|
|
extern float playerHeight;
|
|
|
|
extern float playerYaw;
|
|
|
|
|
|
|
|
extern vec3_t hmdorientation;
|
2021-02-03 22:13:37 +00:00
|
|
|
|
|
|
|
qboolean isMultiplayer();
|
|
|
|
float length(float x, float y);
|
|
|
|
float nonLinearFilter(float in);
|
|
|
|
bool between(float min, float val, float max);
|
|
|
|
|
|
|
|
#endif //vrcommon_h
|