35 #ifdef WITH_INPUT_NDOF
40 : m_nativePixel(false),
42 m_displayManager(
NULL),
44 m_windowManager(
NULL),
46 #ifdef WITH_INPUT_NDOF
50 m_is_debug_enabled(false)
61 return std::chrono::duration_cast<std::chrono::milliseconds>(
62 std::chrono::steady_clock::now().time_since_epoch())
129 const bool stereoVisual,
130 const bool alphaBackground)
145 (
GHOST_Window **)window, setting, stereoVisual, alphaBackground);
157 GHOST_PRINT(
"GHOST_System::beginFullScreen(): could not enter full-screen mode\n");
210 #ifdef WITH_INPUT_NDOF
213 m_ndofManager->sendMotionEvent();
294 #ifdef WITH_INPUT_NDOF
295 void GHOST_System::setNDOFDeadZone(
float deadzone)
297 if (this->m_ndofManager) {
298 this->m_ndofManager->setDeadZone(deadzone);
309 #ifdef WITH_GHOST_DEBUG
342 #ifdef WITH_INPUT_NDOF
343 delete m_ndofManager;
344 m_ndofManager =
NULL;
352 const bool stereoVisual,
353 const bool alphaBackground)
365 "GHOST_System::createFullScreenWindow(): invalid display manager");
#define GHOST_ASSERT(x, info)
@ GHOST_kWindowStateNormal
void * GHOST_TUserDataPtr
unsigned long long GHOST_TUns64
void(* GHOST_TimerProcPtr)(struct GHOST_TimerTaskHandle__ *task, GHOST_TUns64 time)
@ GHOST_glAlphaBackground
@ GHOST_kDrawingContextTypeOpenGL
virtual GHOST_TSuccess getCurrentDisplaySetting(GHOST_TUns8 display, GHOST_DisplaySetting &setting) const
virtual GHOST_TSuccess setCurrentDisplaySetting(GHOST_TUns8 display, const GHOST_DisplaySetting &setting)
void removeWindowEvents(GHOST_IWindow *window)
GHOST_TSuccess addConsumer(GHOST_IEventConsumer *consumer)
GHOST_TSuccess removeConsumer(GHOST_IEventConsumer *consumer)
GHOST_TSuccess pushEvent(GHOST_IEvent *event)
virtual GHOST_IWindow * createWindow(const char *title, GHOST_TInt32 left, GHOST_TInt32 top, GHOST_TUns32 width, GHOST_TUns32 height, GHOST_TWindowState state, GHOST_TDrawingContextType type, GHOST_GLSettings glSettings, const bool exclusive=false, const bool is_dialog=false, const GHOST_IWindow *parentWindow=NULL)=0
GHOST_TSuccess createFullScreenWindow(GHOST_Window **window, const GHOST_DisplaySetting &settings, const bool stereoVisual, const bool alphaBackground=0)
virtual GHOST_TSuccess getButtons(GHOST_Buttons &buttons) const =0
GHOST_DisplaySetting m_preFullScreenSetting
void useWindowFocus(const bool use_focus)
GHOST_TSuccess getButtonState(GHOST_TButtonMask mask, bool &isDown) const
GHOST_TSuccess removeTimer(GHOST_ITimerTask *timerTask)
GHOST_TTabletAPI getTabletAPI(void)
GHOST_TSuccess endFullScreen(void)
virtual bool isDebugEnabled()
virtual GHOST_TSuccess exit()
GHOST_ITimerTask * installTimer(GHOST_TUns64 delay, GHOST_TUns64 interval, GHOST_TimerProcPtr timerProc, GHOST_TUserDataPtr userData=NULL)
virtual GHOST_TSuccess init()
void setTabletAPI(GHOST_TTabletAPI api)
virtual void initDebug(bool is_debug_enabled)
GHOST_TSuccess disposeWindow(GHOST_IWindow *window)
bool useNativePixel(void)
GHOST_WindowManager * m_windowManager
GHOST_TSuccess getModifierKeyState(GHOST_TModifierKeyMask mask, bool &isDown) const
bool validWindow(GHOST_IWindow *window)
GHOST_TSuccess pushEvent(GHOST_IEvent *event)
GHOST_TimerManager * m_timerManager
GHOST_TSuccess addEventConsumer(GHOST_IEventConsumer *consumer)
GHOST_DisplayManager * m_displayManager
GHOST_TSuccess beginFullScreen(const GHOST_DisplaySetting &setting, GHOST_IWindow **window, const bool stereoVisual, const bool alphaBackground)
GHOST_TTabletAPI m_tabletAPI
GHOST_EventManager * m_eventManager
virtual GHOST_TSuccess getModifierKeys(GHOST_ModifierKeys &keys) const =0
virtual GHOST_TUns64 getMilliSeconds() const
GHOST_TSuccess updateFullScreen(const GHOST_DisplaySetting &setting, GHOST_IWindow **window)
GHOST_TSuccess removeEventConsumer(GHOST_IEventConsumer *consumer)
GHOST_TSuccess removeTimer(GHOST_TimerTask *timer)
bool fireTimers(GHOST_TUns64 time)
GHOST_TSuccess addTimer(GHOST_TimerTask *timer)
GHOST_TSuccess endFullScreen(void)
bool getFullScreen(void) const
GHOST_TSuccess removeWindow(const GHOST_IWindow *window)
GHOST_TSuccess beginFullScreen(GHOST_IWindow *window, const bool stereoVisual)
bool getWindowFound(const GHOST_IWindow *window) const
GHOST_IWindow * getFullScreenWindow(void) const
bool get(GHOST_TModifierKeyMask mask) const
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)