GlobeEngine
geVRExample::VRExampleEngine Class Reference

#include <VRExampleEngine.h>

Inheritance diagram for geVRExample::VRExampleEngine:
ge::Engine

Public Member Functions

 VRExampleEngine ()
 
 ~VRExampleEngine ()
 
void clear ()
 
void destroy ()
 
void create ()
 
void initializeScene (std::string _projectsrcPath=0)
 
void drawScene ()
 
void resize (int _w, int _h)
 
void update ()
 
void updateFramebufferStandardID ()
 
void setDebugMapsEnabled (bool _in)
 
void drawFrame (std::shared_ptr< ge::Camera > _cam, vr::Hmd_Eye nEye)
 
std::string getTrackedDeviceString (vr::IVRSystem *pHmd, vr::TrackedDeviceIndex_t unDevice, vr::TrackedDeviceProperty prop, vr::TrackedPropertyError *peError=NULL)
 
bool initVRCompositor ()
 
void shutdown ()
 
vmml::Vector2ui getStereoRenderTargets ()
 
void setupRenderModelForTrackedDevice (vr::TrackedDeviceIndex_t unTrackedDeviceIndex)
 
vmml::Matrix4f getHMDMatrixProjectionEye (vr::Hmd_Eye nEye, float _nearClipPlane, float _farClipPlane)
 
vmml::Matrix4f getHMDMatrixPoseEye (vr::Hmd_Eye nEye)
 
void updateHMDMatrixPose ()
 
vmml::Matrix4f VRExampleEngine::getCurrentViewProjectionMatrix (vr::Hmd_Eye nEye)
 
void nextModel ()
 
void nextRenderMode ()
 
- Public Member Functions inherited from ge::Engine
 Engine ()
 
 ~Engine ()
 
void draw ()
 
void initExtension ()
 
void setProgrammState (enum PROGRAMMSTATE state)
 
enum PROGRAMMSTATE getProgrammState ()
 
void setDebugState (enum DEBUGSTATE state)
 
enum DEBUGSTATE getDebugState ()
 
void enablePicking (bool _in)
 
bool isPickingEnabled ()
 
void enableWireframe (bool _in)
 
bool isWireframeEnabled ()
 
void enableAnimationLoop (bool _in)
 
bool isAnimationLoopEnabled ()
 
void setUIFramebufferID (unsigned int _id)
 
const std::shared_ptr< TextureHandle > & getUIFramebufferHandle ()
 
bool isUIFramebufferActive ()
 
void enableUIFramebuffer (bool _in=true)
 
void disableUIFramebuffer ()
 
int getCameraCount ()
 
std::shared_ptr< ge::CameragetCamera (int _index)
 
std::shared_ptr< ge::CameragetSelectedCam ()
 
int getSelectedCamID () const
 
void setSelectedCamID (int _id)
 
float getDevicePixelRatio ()
 
void setDevicePixelRatio (float _in)
 
double getElapsedTimeForLastFrame ()
 
void getOpenGLError (std::string const &_input)
 
void getOpenGLError (char const *_input)
 

Additional Inherited Members

- Public Types inherited from ge::Engine
enum  eTEXTURE_UNITS {
  eUNIT0, eUNIT1, eUNIT2, eUNIT3,
  eUNIT4, eUNIT5, eUNIT6, eUNIT7
}
 
enum  PICKINGSTATE { IDLE =0, PICKEVENT, PICKED }
 
enum  DEBUGSTATE { NOTACTIVE, ACTIVE }
 
enum  PROGRAMMSTATE { NOTLOADED, LOADED, RUNNING }
 
- Protected Member Functions inherited from ge::Engine
void printLineRenderingInfo ()
 
void printTextureInfo ()
 
void printFramebufferInfo ()
 
void printBufferInformation ()
 
- Protected Attributes inherited from ge::Engine
std::vector< std::shared_ptr< ge::Camera > > cameras
 
int selectedCameraID
 
enum PROGRAMMSTATE programstate
 Tells you the state of the application. More...
 
enum DEBUGSTATE debugstate
 Tells you if the application is running with debug output. More...
 
enum PICKINGSTATE pickingState
 Tells you if there is a picking event or result ongoing. More...
 
bool pickingEnabled
 
bool animationsEnabled
 

Constructor & Destructor Documentation

geVRExample::VRExampleEngine::VRExampleEngine ( )
geVRExample::VRExampleEngine::~VRExampleEngine ( )

Member Function Documentation

void geVRExample::VRExampleEngine::clear ( )
virtual

Reimplemented from ge::Engine.

void geVRExample::VRExampleEngine::create ( )
virtual

Reimplemented from ge::Engine.

void geVRExample::VRExampleEngine::destroy ( )
void geVRExample::VRExampleEngine::drawFrame ( std::shared_ptr< ge::Camera _cam,
vr::Hmd_Eye  nEye 
)
void geVRExample::VRExampleEngine::drawScene ( )
virtual

Implements ge::Engine.

vmml::Matrix4f geVRExample::VRExampleEngine::getHMDMatrixPoseEye ( vr::Hmd_Eye  nEye)
vmml::Matrix4f geVRExample::VRExampleEngine::getHMDMatrixProjectionEye ( vr::Hmd_Eye  nEye,
float  _nearClipPlane,
float  _farClipPlane 
)
vmml::Vector2ui geVRExample::VRExampleEngine::getStereoRenderTargets ( )
std::string geVRExample::VRExampleEngine::getTrackedDeviceString ( vr::IVRSystem *  pHmd,
vr::TrackedDeviceIndex_t  unDevice,
vr::TrackedDeviceProperty  prop,
vr::TrackedPropertyError *  peError = NULL 
)
void geVRExample::VRExampleEngine::initializeScene ( std::string  _projectsrcPath = 0)
virtual

Implements ge::Engine.

bool geVRExample::VRExampleEngine::initVRCompositor ( )
void geVRExample::VRExampleEngine::nextModel ( )
inline
void geVRExample::VRExampleEngine::nextRenderMode ( )
inline
void geVRExample::VRExampleEngine::resize ( int  _w,
int  _h 
)
virtual

Implements ge::Engine.

void geVRExample::VRExampleEngine::setDebugMapsEnabled ( bool  _in)
void geVRExample::VRExampleEngine::setupRenderModelForTrackedDevice ( vr::TrackedDeviceIndex_t  unTrackedDeviceIndex)
void geVRExample::VRExampleEngine::shutdown ( )
void geVRExample::VRExampleEngine::update ( )
virtual

Implements ge::Engine.

void geVRExample::VRExampleEngine::updateFramebufferStandardID ( )
void geVRExample::VRExampleEngine::updateHMDMatrixPose ( )
vmml::Matrix4f geVRExample::VRExampleEngine::VRExampleEngine::getCurrentViewProjectionMatrix ( vr::Hmd_Eye  nEye)

The documentation for this class was generated from the following files: