Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 126 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_CreateOffscreenContext(GHOST_SystemHandle systemhandle) | |||||
| { | |||||
| GHOST_ISystem *system = (GHOST_ISystem *) systemhandle; | |||||
| return (GHOST_ContextHandle) system->createOffscreenContext(); | |||||
| } | |||||
| GHOST_TSuccess GHOST_DisposeOffscreenContext(GHOST_SystemHandle systemhandle, | |||||
| GHOST_ContextHandle contexthandle) | |||||
| { | |||||
| GHOST_ISystem *system = (GHOST_ISystem *) systemhandle; | |||||
| GHOST_IContext *context = (GHOST_IContext *) contexthandle; | |||||
| return system->disposeContext(context); | |||||
| } | |||||
| GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle, | GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle, | ||||
| const char *title, | const char *title, | ||||
| GHOST_TInt32 left, | GHOST_TInt32 left, | ||||
| 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, | ||||
| ▲ Show 20 Lines • Show All 565 Lines • ▼ Show 20 Lines | |||||
| GHOST_TSuccess GHOST_ActivateWindowDrawingContext(GHOST_WindowHandle windowhandle) | GHOST_TSuccess GHOST_ActivateWindowDrawingContext(GHOST_WindowHandle windowhandle) | ||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | ||||
| return window->activateDrawingContext(); | return window->activateDrawingContext(); | ||||
| } | } | ||||
| GHOST_TSuccess GHOST_ActivateOffscreenContext(GHOST_ContextHandle contexthandle) | |||||
| { | |||||
| GHOST_IContext *context = (GHOST_IContext *) contexthandle; | |||||
| return context->activateDrawingContext(); | |||||
| } | |||||
| GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle) | GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle) | ||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | ||||
| return window->invalidate(); | return window->invalidate(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines | |||||