5 #include "game/sprite_font.h"
6 #include "math/point.h"
8 #include "math/triangle.h"
10 typedef struct camera_t camera_t;
12 camera_t *create_camera(SDL_Renderer *renderer,
14 void destroy_camera(camera_t *camera);
16 int camera_clear_background(camera_t *camera,
19 int camera_fill_rect(camera_t *camera,
23 int camera_draw_rect(camera_t * camera,
27 int camera_draw_triangle(camera_t *camera,
31 int camera_fill_triangle(camera_t *camera,
35 int camera_render_text(camera_t *camera,
41 void camera_center_at(camera_t *camera, point_t position);
43 void camera_toggle_debug_mode(camera_t *camera);
44 void camera_disable_debug_mode(camera_t *camera);
46 void camera_toggle_blackwhite_mode(camera_t *camera);
48 int camera_is_point_visible(const camera_t *camera, point_t p);
49 int camera_is_text_visible(const camera_t *camera,
54 rect_t camera_view_port(const camera_t *camera);