Logo
Vr.h
1
2#pragma once
3
4#if KMY_VR
5
6#include "Math/Vector3.h"
7#include "Math/Matrix4.h"
8#include "vr/Vr.h"
9
10namespace SharpKmyVr
11{
12 //------------------------------------------------------------------------------
16 public enum class EyeType : int
17 {
18 Unknown = -1, // 不明
19 Center, // 中央
20 Left, // 左目
21 Right, // 右目
22 Num // 定義数
23 };
24
25 public ref class Func
26 {
27 public:
28 static bool Init();
29 static void Exit();
30
31// static void UpdateMatrix( float fNearClip, float fFarClip );
32
33 static SharpKmyMath::Matrix4 GetEyePosMatrix( EyeType eyeType );
34
35 static SharpKmyMath::Matrix4 GetViewMatrix( EyeType eyeType, SharpKmyMath::Vector3 vecUp, SharpKmyMath::Vector3 vecEyePos, SharpKmyMath::Matrix4 mtxRotateOffset );
36 static SharpKmyMath::Matrix4 GetProjectionMatrix( EyeType eyeType );
37
38 static SharpKmyMath::Matrix4 GetHmdPoseMatrix();
39 static SharpKmyMath::Matrix4 GetHmdPoseRotateMatrix();
40 static SharpKmyMath::Vector3 GetHmdPoseDirection();
41 static SharpKmyMath::Vector3 GetHmdPosePos();
42
43 static float GetHmdRotateY();
44
45 static bool IsReady();
46 };
47}
48
49#endif // #if KMY_VR
50
51
Definition: Matrix4.h:10
Definition: Vector3.h:8