Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_C-api.h
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| GHOST_DECLARE_HANDLE(GHOST_SystemHandle); | GHOST_DECLARE_HANDLE(GHOST_SystemHandle); | ||||
| GHOST_DECLARE_HANDLE(GHOST_TimerTaskHandle); | GHOST_DECLARE_HANDLE(GHOST_TimerTaskHandle); | ||||
| GHOST_DECLARE_HANDLE(GHOST_WindowHandle); | GHOST_DECLARE_HANDLE(GHOST_WindowHandle); | ||||
| GHOST_DECLARE_HANDLE(GHOST_EventHandle); | GHOST_DECLARE_HANDLE(GHOST_EventHandle); | ||||
| GHOST_DECLARE_HANDLE(GHOST_RectangleHandle); | GHOST_DECLARE_HANDLE(GHOST_RectangleHandle); | ||||
| GHOST_DECLARE_HANDLE(GHOST_EventConsumerHandle); | GHOST_DECLARE_HANDLE(GHOST_EventConsumerHandle); | ||||
| GHOST_DECLARE_HANDLE(GHOST_ContextHandle); | |||||
| /** | /** | ||||
| * Definition of a callback routine that receives events. | * Definition of a callback routine that receives events. | ||||
| * \param event The event received. | * \param event The event received. | ||||
| * \param userdata The callback's user data, supplied to GHOST_CreateSystem. | * \param userdata The callback's user data, supplied to GHOST_CreateSystem. | ||||
| */ | */ | ||||
| typedef int (*GHOST_EventCallbackProcPtr)(GHOST_EventHandle event, GHOST_TUserDataPtr userdata); | typedef int (*GHOST_EventCallbackProcPtr)(GHOST_EventHandle event, GHOST_TUserDataPtr userdata); | ||||
| ▲ Show 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | extern GHOST_WindowHandle GHOST_CreateWindow( | ||||
| GHOST_TInt32 top, | GHOST_TInt32 top, | ||||
| GHOST_TUns32 width, | GHOST_TUns32 width, | ||||
| GHOST_TUns32 height, | GHOST_TUns32 height, | ||||
| GHOST_TWindowState state, | GHOST_TWindowState state, | ||||
| GHOST_TDrawingContextType type, | GHOST_TDrawingContextType type, | ||||
| GHOST_GLSettings glSettings); | GHOST_GLSettings glSettings); | ||||
| /** | /** | ||||
| * Create a new offscreen context. | |||||
| * Never explicitly delete the context, use disposeContext() instead. | |||||
| * \param systemhandle The handle to the system | |||||
| * \return A handle to the new context ( == NULL if creation failed). | |||||
| */ | |||||
| extern GHOST_ContextHandle GHOST_CreateOpenGLContext(GHOST_SystemHandle systemhandle); | |||||
| /** | |||||
| * Dispose of a context. | |||||
| * \param systemhandle The handle to the system | |||||
| * \param contexthandle Handle to the context to be disposed. | |||||
| * \return Indication of success. | |||||
| */ | |||||
| extern GHOST_TSuccess GHOST_DisposeOpenGLContext(GHOST_SystemHandle systemhandle, | |||||
| GHOST_ContextHandle contexthandle); | |||||
| /** | |||||
| * Returns the window user data. | * Returns the window user data. | ||||
| * \param windowhandle The handle to the window | * \param windowhandle The handle to the window | ||||
| * \return The window user data. | * \return The window user data. | ||||
| */ | */ | ||||
| extern GHOST_TUserDataPtr GHOST_GetWindowUserData(GHOST_WindowHandle windowhandle); | extern GHOST_TUserDataPtr GHOST_GetWindowUserData(GHOST_WindowHandle windowhandle); | ||||
| /** | /** | ||||
| * Changes the window user data. | * Changes the window user data. | ||||
| ▲ Show 20 Lines • Show All 506 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Invalidates the contents of this window. | * Invalidates the contents of this window. | ||||
| * \param windowhandle The handle to the window | * \param windowhandle The handle to the window | ||||
| * \return Indication of success. | * \return Indication of success. | ||||
| */ | */ | ||||
| extern GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle); | extern GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle); | ||||
| /** | /** | ||||
| * Activates the drawing context of this context. | |||||
| * \param contexthandle The handle to the context | |||||
| * \return A success indicator. | |||||
| */ | |||||
| extern GHOST_TSuccess GHOST_ActivateOpenGLContext(GHOST_ContextHandle contexthandle); | |||||
| /** | |||||
| * Returns the status of the tablet | * Returns the status of the tablet | ||||
| * \param windowhandle The handle to the window | * \param windowhandle The handle to the window | ||||
| * \return Status of tablet | * \return Status of tablet | ||||
| */ | */ | ||||
| extern const GHOST_TabletData *GHOST_GetTabletData(GHOST_WindowHandle windowhandle); | extern const GHOST_TabletData *GHOST_GetTabletData(GHOST_WindowHandle windowhandle); | ||||
| /** | /** | ||||
| * Access to rectangle width. | * Access to rectangle width. | ||||
| ▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines | |||||