6 #include "./triangle.h"
9 typedef struct camera_t camera_t;
11 camera_t *create_camera(point_t position);
12 void destroy_camera(camera_t *camera);
14 int camera_clear_background(const camera_t *camera,
18 int camera_fill_rect(const camera_t *camera,
23 int camera_draw_rect(const camera_t * camera,
28 int camera_draw_triangle(const camera_t *camera,
33 int camera_fill_triangle(const camera_t *camera,
38 void camera_center_at(camera_t *camera, point_t position);
40 void camera_toggle_debug_mode(camera_t *camera);
42 void camera_toggle_blackwhite_mode(camera_t *camera);
44 int camera_is_point_visible(const camera_t *camera, SDL_Renderer *renderer, point_t p);