kmy_for_yukar
SharpKmyCore
Gfx
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
10
namespace
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
SharpKmyMath::Matrix4
Definition:
Matrix4.h:10
SharpKmy::MenuType::Unknown
@ Unknown
Yukar.Engine.TouchSlideOrientation.Right
@ Right
Yukar.Engine.TouchSlideOrientation.Left
@ Left
SharpKmyMath::Vector3
Definition:
Vector3.h:8
Generated by
1.9.4