diff options
| author | realtradam <[email protected]> | 2023-06-07 00:50:58 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-06-07 00:50:58 -0400 |
| commit | f1d321f054b1da072e9c965c20f45399c00af1c0 (patch) | |
| tree | b3e287403213207a5c5ced4dd8b7c16d30564856 /include | |
| parent | d518023bb61dec8dd776e5cf7b2b23e66b2cdfdb (diff) | |
| download | RodeoKit-f1d321f054b1da072e9c965c20f45399c00af1c0.tar.gz RodeoKit-f1d321f054b1da072e9c965c20f45399c00af1c0.zip | |
add letterboxing matrix
Diffstat (limited to 'include')
| -rw-r--r-- | include/rodeo/gfx.h | 24 | ||||
| -rw-r--r-- | include/rodeo/window.h | 4 |
2 files changed, 15 insertions, 13 deletions
diff --git a/include/rodeo/gfx.h b/include/rodeo/gfx.h index a10e901..151bdda 100644 --- a/include/rodeo/gfx.h +++ b/include/rodeo/gfx.h @@ -8,7 +8,7 @@ #include "stc/cstr.h" void -rodeo_gfx_init(void); +rodeo_gfx_init(float width, float height); void rodeo_gfx_deinit(void); @@ -79,19 +79,21 @@ rodeo_gfx_frame_limit_set(uint32_t limit); uint32_t rodeo_gfx_frame_limit_get(void); -#define \ -mrodeo_gfx_do( \ -) \ - mrodeo_defer_do( \ - rodeo_gfx_init(), \ - rodeo_gfx_deinit() \ - ) - - #define \ -mrodeo_gfx_frame_do( \ +mrodeo_gfx_do( \ + width, \ + height \ ) \ mrodeo_defer_do( \ + rodeo_gfx_init(width, height), \ + rodeo_gfx_deinit() \ + ) + + +#define \ +mrodeo_gfx_frame_do( \ +) \ + mrodeo_defer_do( \ rodeo_gfx_frame_begin(), \ rodeo_gfx_frame_end() \ ) diff --git a/include/rodeo/window.h b/include/rodeo/window.h index dd505f2..5674174 100644 --- a/include/rodeo/window.h +++ b/include/rodeo/window.h @@ -21,10 +21,10 @@ rodeo_window_init( void rodeo_window_deinit(void); -uint16_t +uint32_t rodeo_window_screen_width_get(void); -uint16_t +uint32_t rodeo_window_screen_height_get(void); bool |
