MinVR  0.9.0
A multi-platform virtual reality library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
MinVR::MVREngineGLFW Class Reference

VR Engine for raw OpenGL apps based on GLFW. More...

Inheritance diagram for MinVR::MVREngineGLFW:
MinVR::AbstractMVREngine

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
 

Detailed Description

This engine is used for raw OpenGL apps. It depends on the GLFW windowing libarary to open windows, and collect keyboard and mouse input.

Constructor & Destructor Documentation

MinVR::MVREngineGLFW::MVREngineGLFW ( )
MinVR::MVREngineGLFW::~MVREngineGLFW ( )

Member Function Documentation

WindowRef MinVR::MVREngineGLFW::createWindow ( WindowSettingsRef  settings,
std::vector< AbstractCameraRef cameras 
)
virtual
static void MinVR::MVREngineGLFW::error_callback ( int  error,
const char *  description 
)
static

Callback method to throw an assertion if GLFW has an error.

void MinVR::MVREngineGLFW::runApp ( AbstractMVRAppRef  app)
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.


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