diff options
| author | realtradam <[email protected]> | 2023-06-22 20:30:29 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-06-22 20:30:29 -0400 |
| commit | c322c17a69fc756b494124d4deab6909ee9134cb (patch) | |
| tree | 21236c503cf01b018646e5562573b74f8727f8a3 /include/rodeo/gfx.h | |
| parent | a4aca2a3c3084882eb2a3912ef3f87e02153c74a (diff) | |
| download | RodeoKit-c322c17a69fc756b494124d4deab6909ee9134cb.tar.gz RodeoKit-c322c17a69fc756b494124d4deab6909ee9134cb.zip | |
implement 2d camera system
Diffstat (limited to 'include/rodeo/gfx.h')
| -rw-r--r-- | include/rodeo/gfx.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/rodeo/gfx.h b/include/rodeo/gfx.h index 15ce3ad..07d8430 100644 --- a/include/rodeo/gfx.h +++ b/include/rodeo/gfx.h @@ -147,6 +147,19 @@ rodeo_gfx_matrix_size(void); uint32_t rodeo_gfx_matrix_capacity(void); +void +rodeo_gfx_camera_2d_begin(rodeo_gfx_camera_2d_t camera); + +void +rodeo_gfx_camera_2d_end(void); + +#define \ +mrodeo_gfx_camera_do(camera) \ + mrodeo_defer_do( \ + rodeo_gfx_camera_2d_begin(camera), \ + rodeo_gfx_camera_2d_end() \ + ) + #define \ mrodeo_gfx_scissor_do(rectangle) \ mrodeo_defer_do( \ |
