Support Forum G3D Web Page |
Inherits G3D::XR.
Classes | |
class | MonitorHMD |
Public Member Functions | |
virtual const String & | className () const override |
Which subclass of XR is this? More... | |
virtual void | cleanup () override |
const Array< shared_ptr< HMD > > & | hmdArray () const |
virtual shared_ptr< Event > | nextEvent () |
Returns nullptr when out of events. More... | |
const Array< shared_ptr< Object > > & | objectArray () const |
All tracked objects, including HMDs. More... | |
virtual void | postGraphicsInit (const Settings &settings) override |
virtual void | preGraphicsInit (const Settings &settings) override |
const TrackedVolume & | trackedVolume () const |
virtual void | updateTrackingData () override |
Call once per frame. More... | |
Static Public Member Functions | |
static shared_ptr< MonitorXR > | create (const OSWindow::Settings &settings=OSWindow::Settings()) |
static void | setFrame (const shared_ptr< Object > &t, const CFrame &f, const CFrame &p) |
Allows XR subclasses to access protected variables inside a tracked object. More... | |
Protected Member Functions | |
MonitorXR (const OSWindow::Settings &settings) | |
Static Protected Member Functions | |
template<class T , class ... ArgTypes> | |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
Like std::make_shared, but works for protected constructors. More... | |
Protected Attributes | |
Queue< shared_ptr< XR::Event > > | m_eventQueue |
shared_ptr< MonitorHMD > | m_hmd |
Array< shared_ptr< HMD > > | m_hmdArray |
Array< shared_ptr< Object > > | m_objectArray |
OSWindow::Settings | m_settings |
Used for creating the HMD on the first frame. More... | |
TrackedVolume | m_trackedVolume |
|
inlineprotected |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Reimplemented from G3D::XR.
|
inlinestatic |
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
|
inlinevirtualinherited |
Returns nullptr when out of events.
All tracked objects, including HMDs.
|
inlineoverridevirtual |
Reimplemented from G3D::XR.
|
inlineoverridevirtual |
Reimplemented from G3D::XR.
|
staticinherited |
Allows XR subclasses to access protected variables inside a tracked object.
|
inlineinherited |
|
overridevirtual |
Call once per frame.
Implements G3D::XR.
Referenced by G3D::XR::nextEvent().
|
protected |
Referenced by G3D::XR::hmdArray().
Referenced by G3D::XR::objectArray().
|
protected |
Used for creating the HMD on the first frame.
Can't be done when MonitorXR is initialized because that happens before OpenGL is initialized.
|
protectedinherited |
Referenced by G3D::XR::trackedVolume().