|
MinVR
0.9.0
A multi-platform virtual reality library
|
VR Engine for raw OpenGL apps based on GLFW. More...
Public Member Functions | |
| MVREngineGLFW () | |
| ~MVREngineGLFW () | |
| void | runApp (AbstractMVRAppRef app) override |
| Runs a VR application. More... | |
| WindowRef | createWindow (WindowSettingsRef settings, std::vector< AbstractCameraRef > cameras) |
| Creates GLFW window. More... | |
Public Member Functions inherited from MinVR::AbstractMVREngine | |
| AbstractMVREngine () | |
| virtual | ~AbstractMVREngine () |
| virtual void | init (int argc, char **argv) |
| Initialize the engine. More... | |
| virtual void | init (ConfigMapRef configMap) |
| Initialize the engine. More... | |
| virtual void | runOneFrameOfApp (AbstractMVRAppRef app) |
| Draws a frame of the graphics. More... | |
| virtual void | initializeContextSpecificVars (int threadId, WindowRef window) |
| Initialize thread specific variables. More... | |
| virtual void | initializeLogging () |
| Initialize Boost Log v2.0. More... | |
Static Public Member Functions | |
| static void | error_callback (int error, const char *description) |
| GLFW error callback. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MinVR::AbstractMVREngine | |
| virtual void | setupWindowsAndViewports () |
| Creates windows and viewports. More... | |
| virtual void | setupInputDevices () |
| Creates Input Devices. More... | |
| virtual void | setupRenderThreads () |
| Creates render threads. More... | |
| virtual void | pollUserInput () |
| Poll the input devices for input. More... | |
| virtual void | updateProjectionForHeadTracking () |
| Updates head positions. More... | |
Protected Attributes inherited from MinVR::AbstractMVREngine | |
| AbstractMVRAppRef | _app |
| ConfigMapRef | _configMap |
| std::vector< EventRef > | _events |
| std::vector< WindowRef > | _windows |
| std::vector < AbstractInputDeviceRef > | _inputDevices |
| std::vector< RenderThreadRef > | _renderThreads |
| boost::mutex | _threadsInitializedMutex |
| boost::condition_variable | _threadsInitializedCond |
| boost::mutex | _startRenderingMutex |
| boost::condition_variable | _startRenderingCond |
| boost::mutex | _renderingCompleteMutex |
| boost::condition_variable | _renderingCompleteCond |
| boost::shared_ptr< boost::barrier > | _swapBarrier |
| boost::posix_time::ptime | _syncTimeStart |
| unsigned long | _frameCount |
This engine is used for raw OpenGL apps. It depends on the GLFW windowing libarary to open windows, and collect keyboard and mouse input.
| MinVR::MVREngineGLFW::MVREngineGLFW | ( | ) |
| MinVR::MVREngineGLFW::~MVREngineGLFW | ( | ) |
|
virtual |
Implements MinVR::AbstractMVREngine.
|
static |
Callback method to throw an assertion if GLFW has an error.
|
overridevirtual |
Runs the passed in VR application. This override will terminate the application if one of the GLFW windows is closed.
Reimplemented from MinVR::AbstractMVREngine.
1.8.4