Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_C-api.h
| Show First 20 Lines • Show All 1,070 Lines • ▼ Show 20 Lines | |||||
| * Invoke handling of all OpenXR events for \a xr_context. Should be called on every main-loop | * Invoke handling of all OpenXR events for \a xr_context. Should be called on every main-loop | ||||
| * iteration and will early-exit if \a xr_context is NULL (so caller doesn't have to check). | * iteration and will early-exit if \a xr_context is NULL (so caller doesn't have to check). | ||||
| * | * | ||||
| * \returns GHOST_kSuccess if any event was handled, otherwise GHOST_kFailure. | * \returns GHOST_kSuccess if any event was handled, otherwise GHOST_kFailure. | ||||
| */ | */ | ||||
| GHOST_TSuccess GHOST_XrEventsHandle(GHOST_XrContextHandle xr_context); | GHOST_TSuccess GHOST_XrEventsHandle(GHOST_XrContextHandle xr_context); | ||||
| #endif | #endif | ||||
| /*************************************************************************************** | |||||
| * Bitmap functionality | |||||
| ***************************************************************************************/ | |||||
| /** | |||||
| * Get the width of the given bitmap handle. | |||||
| */ | |||||
| int GHOST_BitmapGetWidth(GHOST_BitmapHandle bitmap); | |||||
| /** | |||||
| * Get the height of the given bitmap handle. | |||||
| */ | |||||
| int GHOST_BitmapGetHeight(GHOST_BitmapHandle bitmap); | |||||
| /** | |||||
| * Get the buffer of the given bitmap handle. | |||||
| */ | |||||
| unsigned int *GHOST_BitmapGetBuffer(GHOST_BitmapHandle bitmap); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||