Constructor & Destructor Documentation

Member Function Documentation

virtual void VRG3D::VRApp::init

(

const std::string &

vrSetup,

Log *

appLog = NULL

)

[virtual]

This is an easy constructor to use for many typical situations. The vrSetup argument corresponds to a config file that specifies the type of window to open and devices to connect to. Look in $G/share/VRG3D/desktop.vrsetup for an example. Or, run with vrSetup == "" to print out a list of installed VR setups.

If you need access to the raw GEvent's generated by G3D, you can reimplement this, but use with care. One reason to get GEvent's is to work with the G3D::Gui* 2D screen gui elements. The default implementation of this routine already does the necessary processing for you to use G3D::Gui* if you register your GuiWindow with VRApp's _widgetManager.

virtual GuiButton* VRG3D::VRApp::addGuiButtonAndTrapEvent

(

GuiPane *

pane,

const std::string &

eventToGenerate,

const GuiCaption &

text,

GuiButton::Style

style = GuiButton::NORMAL_STYLE

)

[virtual]

When working with G3D::Gui*, use this routine rather than GuiPane::addButton() to have the event generated by the button click transformed into a VRG3D::Event named eventToGenerate.

virtual void VRG3D::VRApp::oneFrame

(

)

[virtual]

This is the guts of the main program loop. It's unusual to need to reimplemet this.

virtual void VRG3D::VRApp::oneFrameGraphics

(

)

[virtual]

This is the graphics portion of the main program loop. It's unusual to need to reimplement this.