Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | void GHOST_GetAllDisplayDimensions(GHOST_SystemHandle systemhandle, | ||||
| GHOST_TUns32 *width, | GHOST_TUns32 *width, | ||||
| GHOST_TUns32 *height) | GHOST_TUns32 *height) | ||||
| { | { | ||||
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | ||||
| system->getAllDisplayDimensions(*width, *height); | system->getAllDisplayDimensions(*width, *height); | ||||
| } | } | ||||
| GHOST_ContextHandle GHOST_CreateOpenGLContext(GHOST_SystemHandle systemhandle) | GHOST_ContextHandle GHOST_CreateOpenGLContext( | ||||
| GHOST_SystemHandle systemhandle, GHOST_PlatformSupportCallbackPtr platform_support_callback) | |||||
| { | { | ||||
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | ||||
| return (GHOST_ContextHandle)system->createOffscreenContext(); | return (GHOST_ContextHandle)system->createOffscreenContext(platform_support_callback); | ||||
| } | } | ||||
| GHOST_TSuccess GHOST_DisposeOpenGLContext(GHOST_SystemHandle systemhandle, | GHOST_TSuccess GHOST_DisposeOpenGLContext(GHOST_SystemHandle systemhandle, | ||||
| GHOST_ContextHandle contexthandle) | GHOST_ContextHandle contexthandle) | ||||
| { | { | ||||
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | ||||
| GHOST_IContext *context = (GHOST_IContext *)contexthandle; | GHOST_IContext *context = (GHOST_IContext *)contexthandle; | ||||
| ▲ Show 20 Lines • Show All 714 Lines • Show Last 20 Lines | |||||