Window& Window::displayMode(DisplayMode v){ if(created()){ const Cursor cursor_ = cursor(); const bool cursorHide_ = cursorHide(); const Dim dim_ = dimensions(); const bool fullScreen_ = fullScreen(); const double fps_ = fps(); const std::string& title_ = title(); destroy(); create(dim_, title_, fps_, v); cursor(cursor_); cursorHide(cursorHide_); fullScreen(fullScreen_); } else{ mDisplayMode = v; } return *this; }
inline void OmniStereoGraphicsRenderer::start() { if (mOmni.activeStereo()) { Window::displayMode(Window::displayMode() | Window::STEREO_BUF); } create(); if (mOmni.fullScreen()) { fullScreen(true); cursorHide(true); } Main::get().start(); }
inline void OmniApp::start() { if (mOmni.activeStereo()) { Window::displayMode(Window::displayMode() | Window::STEREO_BUF); } create(); if (mOmni.fullScreen()) { fullScreen(true); cursorHide(true); } if (!bSlave) { if(oscSend().opened()) sendHandshake(); mAudioIO.start(); } Main::get().start(); }
Window& Window::cursorHideToggle(){ cursorHide(!cursorHide()); return *this; }