19 #ifdef WITH_INPUT_NDOF
24 : m_nativePixel(false),
26 m_displayManager(nullptr),
27 m_timerManager(nullptr),
28 m_windowManager(nullptr),
29 m_eventManager(nullptr),
30 #ifdef WITH_INPUT_NDOF
33 m_multitouchGestures(true),
35 m_is_debug_enabled(false)
46 return std::chrono::duration_cast<std::chrono::milliseconds>(
47 std::chrono::steady_clock::now().time_since_epoch())
114 const bool stereoVisual,
115 const bool alphaBackground)
130 (
GHOST_Window **)window, setting, stereoVisual, alphaBackground);
142 GHOST_PRINT(
"GHOST_System::beginFullScreen(): could not enter full-screen mode\n");
203 iwindow->getClientBounds(
bounds);
214 #ifdef WITH_INPUT_NDOF
217 m_ndofManager->sendMotionEvent();
326 #ifdef WITH_INPUT_NDOF
327 void GHOST_System::setNDOFDeadZone(
float deadzone)
329 if (this->m_ndofManager) {
330 this->m_ndofManager->setDeadZone(deadzone);
341 #ifdef WITH_GHOST_DEBUG
372 #ifdef WITH_INPUT_NDOF
373 delete m_ndofManager;
374 m_ndofManager =
nullptr;
382 const bool stereoVisual,
383 const bool alphaBackground)
390 if (alphaBackground) {
397 "GHOST_System::createFullScreenWindow(): invalid display manager");
#define GHOST_ASSERT(x, info)
@ GHOST_kWindowStateMinimized
@ GHOST_kWindowStateNormal
void * GHOST_TUserDataPtr
@ GHOST_glAlphaBackground
void(* GHOST_TimerProcPtr)(struct GHOST_TimerTaskHandle__ *task, uint64_t time)
@ GHOST_kDrawingContextTypeOpenGL
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
virtual GHOST_TSuccess setCurrentDisplaySetting(uint8_t display, const GHOST_DisplaySetting &setting)
virtual GHOST_TSuccess getCurrentDisplaySetting(uint8_t display, GHOST_DisplaySetting &setting) const
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_TSuccess getCursorPosition(int32_t &x, int32_t &y) const =0
virtual GHOST_IWindow * createWindow(const char *title, int32_t left, int32_t top, uint32_t width, uint32_t 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
virtual GHOST_TSuccess setCursorPosition(int32_t x, int32_t y)=0
virtual void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const =0
virtual void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const =0
virtual uint64_t getMilliSeconds() const
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 removeTimer(GHOST_ITimerTask *timerTask)
GHOST_TTabletAPI getTabletAPI(void)
GHOST_TSuccess endFullScreen(void)
virtual bool isDebugEnabled()
virtual GHOST_TSuccess exit()
bool m_multitouchGestures
virtual GHOST_TSuccess init()
virtual void setTabletAPI(GHOST_TTabletAPI api)
bool supportsWindowPosition(void)
GHOST_TSuccess getButtonState(GHOST_TButton mask, bool &isDown) const
GHOST_TSuccess getModifierKeyState(GHOST_TModifierKey mask, bool &isDown) const
GHOST_TSuccess disposeWindow(GHOST_IWindow *window)
bool useNativePixel(void)
GHOST_IWindow * getWindowUnderCursor(int32_t x, int32_t y)
void setMultitouchGestures(const bool use)
GHOST_WindowManager * m_windowManager
virtual void initDebug(GHOST_Debug debug)
GHOST_TSuccess getCursorPositionClientRelative(const GHOST_IWindow *window, int32_t &x, int32_t &y) const
bool validWindow(GHOST_IWindow *window)
GHOST_ITimerTask * installTimer(uint64_t delay, uint64_t interval, GHOST_TimerProcPtr timerProc, GHOST_TUserDataPtr userData=NULL)
GHOST_TSuccess pushEvent(GHOST_IEvent *event)
GHOST_TimerManager * m_timerManager
GHOST_TSuccess addEventConsumer(GHOST_IEventConsumer *consumer)
GHOST_TSuccess setCursorPositionClientRelative(GHOST_IWindow *window, int32_t x, int32_t y)
GHOST_DisplayManager * m_displayManager
bool supportsCursorWarp(void)
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
GHOST_TSuccess updateFullScreen(const GHOST_DisplaySetting &setting, GHOST_IWindow **window)
GHOST_TSuccess removeEventConsumer(GHOST_IEventConsumer *consumer)
bool fireTimers(uint64_t time)
GHOST_TSuccess removeTimer(GHOST_TimerTask *timer)
GHOST_TSuccess addTimer(GHOST_TimerTask *timer)
GHOST_TSuccess endFullScreen(void)
bool getFullScreen(void) const
GHOST_TSuccess removeWindow(const GHOST_IWindow *window)
const std::vector< GHOST_IWindow * > & getWindows() const
GHOST_TSuccess beginFullScreen(GHOST_IWindow *window, const bool stereoVisual)
bool getWindowFound(const GHOST_IWindow *window) const
GHOST_IWindow * getFullScreenWindow(void) const
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
unsigned __int64 uint64_t
bool get(GHOST_TModifierKey mask) const