Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_C-api.h
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Disposes the one and only system. | * Disposes the one and only system. | ||||
| * \param systemhandle The handle to the system | * \param systemhandle The handle to the system | ||||
| * \return An indication of success. | * \return An indication of success. | ||||
| */ | */ | ||||
| extern GHOST_TSuccess GHOST_DisposeSystem(GHOST_SystemHandle systemhandle); | extern GHOST_TSuccess GHOST_DisposeSystem(GHOST_SystemHandle systemhandle); | ||||
| /** | /** | ||||
| * Show a system message box to the user | |||||
| * \param systemhandle The handle to the system | |||||
| * \param title Title of the message box | |||||
| * \param message Message of the message box | |||||
| * \param link Optional (hyper)link to a webpage to show when pressing help | |||||
| * \param dialog_options Options to configure the message box. | |||||
| * \return void. | |||||
| */ | |||||
| extern void GHOST_ShowMessageBox(GHOST_SystemHandle systemhandle, | |||||
| const char *title, | |||||
| const char *message, | |||||
| const char *link, | |||||
| GHOST_DialogOptions dialog_options); | |||||
| /** | |||||
| * Creates an event consumer object | * Creates an event consumer object | ||||
| * \param eventCallback The event callback routine. | * \param eventCallback The event callback routine. | ||||
| * \param userdata Pointer to user data returned to the callback routine. | * \param userdata Pointer to user data returned to the callback routine. | ||||
| */ | */ | ||||
| extern GHOST_EventConsumerHandle GHOST_CreateEventConsumer( | extern GHOST_EventConsumerHandle GHOST_CreateEventConsumer( | ||||
| GHOST_EventCallbackProcPtr eventCallback, GHOST_TUserDataPtr userdata); | GHOST_EventCallbackProcPtr eventCallback, GHOST_TUserDataPtr userdata); | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | extern GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle, | ||||
| GHOST_TWindowState state, | GHOST_TWindowState state, | ||||
| GHOST_TDrawingContextType type, | GHOST_TDrawingContextType type, | ||||
| GHOST_GLSettings glSettings); | GHOST_GLSettings glSettings); | ||||
| /** | /** | ||||
| * Create a new offscreen context. | * Create a new offscreen context. | ||||
| * Never explicitly delete the context, use disposeContext() instead. | * Never explicitly delete the context, use disposeContext() instead. | ||||
| * \param systemhandle The handle to the system | * \param systemhandle The handle to the system | ||||
| * \param platform_support_callback An optional callback to check platform support | |||||
| * \return A handle to the new context ( == NULL if creation failed). | * \return A handle to the new context ( == NULL if creation failed). | ||||
| */ | */ | ||||
| extern GHOST_ContextHandle GHOST_CreateOpenGLContext(GHOST_SystemHandle systemhandle); | extern GHOST_ContextHandle GHOST_CreateOpenGLContext(GHOST_SystemHandle systemhandle); | ||||
| /** | /** | ||||
| * Dispose of a context. | * Dispose of a context. | ||||
| * \param systemhandle The handle to the system | * \param systemhandle The handle to the system | ||||
| * \param contexthandle Handle to the context to be disposed. | * \param contexthandle Handle to the context to be disposed. | ||||
| ▲ Show 20 Lines • Show All 766 Lines • Show Last 20 Lines | |||||