Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_Types.h
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| typedef struct { | typedef struct { | ||||
| /** `RGBA` bytes. */ | /** `RGBA` bytes. */ | ||||
| const uint8_t *data; | const uint8_t *data; | ||||
| int data_size[2]; | int data_size[2]; | ||||
| int hot_spot[2]; | int hot_spot[2]; | ||||
| } GHOST_CursorBitmapRef; | } GHOST_CursorBitmapRef; | ||||
| typedef struct { | |||||
| int flags; | |||||
| } GHOST_GLSettings; | |||||
| typedef enum { | typedef enum { | ||||
| GHOST_glStereoVisual = (1 << 0), | GHOST_glStereoVisual = (1 << 0), | ||||
| GHOST_glDebugContext = (1 << 1), | GHOST_glDebugContext = (1 << 1), | ||||
| } GHOST_GLFlags; | } GHOST_GLFlags; | ||||
| typedef enum GHOST_DialogOptions { | typedef enum GHOST_DialogOptions { | ||||
| GHOST_DialogWarning = (1 << 0), | GHOST_DialogWarning = (1 << 0), | ||||
| GHOST_DialogError = (1 << 1), | GHOST_DialogError = (1 << 1), | ||||
| ▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
| typedef enum { GHOST_kWindowOrderTop = 0, GHOST_kWindowOrderBottom } GHOST_TWindowOrder; | typedef enum { GHOST_kWindowOrderTop = 0, GHOST_kWindowOrderBottom } GHOST_TWindowOrder; | ||||
| typedef enum { | typedef enum { | ||||
| GHOST_kDrawingContextTypeNone = 0, | GHOST_kDrawingContextTypeNone = 0, | ||||
| GHOST_kDrawingContextTypeOpenGL, | GHOST_kDrawingContextTypeOpenGL, | ||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| GHOST_kDrawingContextTypeD3D, | GHOST_kDrawingContextTypeD3D, | ||||
| #endif | #endif | ||||
| #ifdef __APPLE__ | |||||
| GHOST_kDrawingContextTypeMetal, | |||||
| #endif | |||||
| } GHOST_TDrawingContextType; | } GHOST_TDrawingContextType; | ||||
| typedef enum { | typedef enum { | ||||
| GHOST_kButtonMaskNone, | GHOST_kButtonMaskNone, | ||||
| GHOST_kButtonMaskLeft, | GHOST_kButtonMaskLeft, | ||||
| GHOST_kButtonMaskMiddle, | GHOST_kButtonMaskMiddle, | ||||
| GHOST_kButtonMaskRight, | GHOST_kButtonMaskRight, | ||||
| GHOST_kButtonMaskButton4, | GHOST_kButtonMaskButton4, | ||||
| ▲ Show 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | typedef struct { | ||||
| /** Number of lines. */ | /** Number of lines. */ | ||||
| uint32_t yPixels; | uint32_t yPixels; | ||||
| /** Number of bits per pixel. */ | /** Number of bits per pixel. */ | ||||
| uint32_t bpp; | uint32_t bpp; | ||||
| /** Refresh rate (in Hertz). */ | /** Refresh rate (in Hertz). */ | ||||
| uint32_t frequency; | uint32_t frequency; | ||||
| } GHOST_DisplaySetting; | } GHOST_DisplaySetting; | ||||
| typedef struct { | |||||
| int flags; | |||||
| GHOST_TDrawingContextType context_type; | |||||
| } GHOST_GLSettings; | |||||
| typedef enum { | typedef enum { | ||||
| /** Axis that cursor grab will wrap. */ | /** Axis that cursor grab will wrap. */ | ||||
| GHOST_kDebugDefault = (1 << 1), | GHOST_kDebugDefault = (1 << 1), | ||||
| GHOST_kDebugWintab = (1 << 2), | GHOST_kDebugWintab = (1 << 2), | ||||
| } GHOST_TDebugFlags; | } GHOST_TDebugFlags; | ||||
| typedef struct { | typedef struct { | ||||
| int flags; | int flags; | ||||
| ▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines | |||||