diff options
Diffstat (limited to 'chapter31/src/main/c/simple_graphics.h')
| -rw-r--r-- | chapter31/src/main/c/simple_graphics.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chapter31/src/main/c/simple_graphics.h b/chapter31/src/main/c/simple_graphics.h index 370256be..d19cac46 100644 --- a/chapter31/src/main/c/simple_graphics.h +++ b/chapter31/src/main/c/simple_graphics.h @@ -15,6 +15,9 @@ struct simple_graphics_api { int32_t (*key)(int32_t); void (*close)(void); int32_t (*wait)(int64_t); + uint32_t (*width)(void); + uint32_t (*height)(void); + int32_t (*present_size)(const uint32_t *, uint32_t, uint32_t, uint32_t); }; -#define SIMPLE_GRAPHICS_VERSION 2 +#define SIMPLE_GRAPHICS_VERSION 3 #endif |
