Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_C-api.h
| Show First 20 Lines • Show All 174 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, GHOST_PlatformSupportCallbackPtr platform_support_callback); | |||||
| /** | /** | ||||
| * 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. | ||||
| * \return Indication of success. | * \return Indication of success. | ||||
| */ | */ | ||||
| extern GHOST_TSuccess GHOST_DisposeOpenGLContext(GHOST_SystemHandle systemhandle, | extern GHOST_TSuccess GHOST_DisposeOpenGLContext(GHOST_SystemHandle systemhandle, | ||||
| ▲ Show 20 Lines • Show All 763 Lines • Show Last 20 Lines | |||||