diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_Context.h')
-rw-r--r-- | intern/ghost/intern/GHOST_Context.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_Context.h b/intern/ghost/intern/GHOST_Context.h index d9c2cdce258..e707f1c3475 100644 --- a/intern/ghost/intern/GHOST_Context.h +++ b/intern/ghost/intern/GHOST_Context.h @@ -93,6 +93,22 @@ class GHOST_Context : public GHOST_IContext { } /** + * Get user data. + */ + void *getUserData() + { + return m_user_data; + } + + /** + * Set user data (intended for the caller to use as needed). + */ + void setUserData(void *user_data) + { + m_user_data = user_data; + } + + /** * Stereo visual created. Only necessary for 'real' stereo support, * ie quad buffered stereo. This is not always possible, depends on * the graphics h/w @@ -124,6 +140,9 @@ class GHOST_Context : public GHOST_IContext { bool m_stereoVisual; + /** Caller specified, not for internal use. */ + void *m_user_data = nullptr; + static void initClearGL(); #ifdef WITH_CXX_GUARDEDALLOC |