-
Notifications
You must be signed in to change notification settings - Fork 6
/
OpenHMD.h
43 lines (38 loc) · 973 Bytes
/
OpenHMD.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* OpenHMD - Free and Open Source API and drivers for immersive technology.
* Copyright (C) 2013 Fredrik Hultin.
* Copyright (C) 2013 Jakob Bornecrantz.
* OpenHMDDemo is designed and written by Joey Ferwerda from Thorworks game development studio.
* Distributed under the Boost 1.0 licence, see LICENSE for full text.
*/
#ifndef _OCULUSMANAGER_H_
#define _OCULUSMANAGER_H_
#include <openhmd/openhmd.h>
#include <OgreMatrix4.h>
#include <OgreMath.h>
#include <OgreVector2.h>
class OpenHMD
{
public:
OpenHMD();
int init();
void exit();
void update();
void getVerbose();
std::string getProduct();
Ogre::Quaternion getQuaternion();
Ogre::Vector2 getScreenSize();
Ogre::Matrix4 getLeftViewMatrix();
Ogre::Matrix4 getLeftProjectionMatrix();
Ogre::Matrix4 getRightViewMatrix();
Ogre::Matrix4 getRightProjectionMatrix();
float getIPD();
void setIPD(float inf);
bool isDummy();
float fval;
int ival;
private:
ohmd_context* ctx;
ohmd_device* hmd;
};
#endif