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_t.h | |
| parent | a4aca2a3c3084882eb2a3912ef3f87e02153c74a (diff) | |
| download | RodeoKit-c322c17a69fc756b494124d4deab6909ee9134cb.tar.gz RodeoKit-c322c17a69fc756b494124d4deab6909ee9134cb.zip | |
implement 2d camera system
Diffstat (limited to 'include/rodeo/gfx_t.h')
| -rw-r--r-- | include/rodeo/gfx_t.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/rodeo/gfx_t.h b/include/rodeo/gfx_t.h index 63811c5..3d206c2 100644 --- a/include/rodeo/gfx_t.h +++ b/include/rodeo/gfx_t.h @@ -3,6 +3,7 @@ // -- internal -- // public #include "rodeo_types.h" +#include "rodeo/math/vec2_t.h" // -- system -- #include <inttypes.h> @@ -67,3 +68,13 @@ rodeo_gfx_vertex_t; typedef uint16_t rodeo_gfx_index_t; +typedef +struct +{ + rodeo_math_vec2_t target; + float turns; + float zoom; + rodeo_math_vec2_t offset; +} +rodeo_gfx_camera_2d_t; + |
