Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 967 Lines • ▼ Show 20 Lines | |||||
| int GHOST_XrSessionNeedsUpsideDownDrawing(const GHOST_XrContextHandle xr_contexthandle) | int GHOST_XrSessionNeedsUpsideDownDrawing(const GHOST_XrContextHandle xr_contexthandle) | ||||
| { | { | ||||
| GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle; | ||||
| GHOST_XR_CAPI_CALL_RET(xr_context->needsUpsideDownDrawing(), xr_context); | GHOST_XR_CAPI_CALL_RET(xr_context->needsUpsideDownDrawing(), xr_context); | ||||
| return 0; /* Only reached if exception is thrown. */ | return 0; /* Only reached if exception is thrown. */ | ||||
| } | } | ||||
| /*************************************************************************************** | |||||
| * Bitmap functionality | |||||
| ***************************************************************************************/ | |||||
| int GHOST_BitmapGetWidth(GHOST_BitmapHandle handle) | |||||
| { | |||||
| GHOST_Bitmap *bitmap = (GHOST_Bitmap *)handle; | |||||
| return bitmap->getWidth(); | |||||
| } | |||||
| int GHOST_BitmapGetHeight(GHOST_BitmapHandle handle) | |||||
| { | |||||
| GHOST_Bitmap *bitmap = (GHOST_Bitmap *)handle; | |||||
| return bitmap->getHeight(); | |||||
| } | |||||
| unsigned int *GHOST_BitmapGetBuffer(GHOST_BitmapHandle handle) | |||||
| { | |||||
| GHOST_Bitmap *bitmap = (GHOST_Bitmap *)handle; | |||||
| return bitmap->getBuffer(); | |||||
| } | |||||
| #endif | #endif | ||||