From c322c17a69fc756b494124d4deab6909ee9134cb Mon Sep 17 00:00:00 2001 From: realtradam Date: Thu, 22 Jun 2023 20:30:29 -0400 Subject: implement 2d camera system --- include/rodeo/gfx_t.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/rodeo/gfx_t.h') 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 @@ -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; + -- cgit v1.2.3