5 #include "math/point.h"
7 #include "math/triangle.h"
9 typedef struct camera_t camera_t;
11 camera_t *create_camera_from_renderer(SDL_Renderer *renderer);
12 void destroy_camera(camera_t *camera);
14 int camera_clear_background(const camera_t *camera,
17 void camera_present(const camera_t *camera);
19 int camera_fill_rect(const camera_t *camera,
23 int camera_draw_rect(const camera_t * camera,
27 int camera_draw_triangle(const camera_t *camera,
31 int camera_fill_triangle(const camera_t *camera,
35 void camera_center_at(camera_t *camera, point_t position);
37 void camera_toggle_debug_mode(camera_t *camera);
38 void camera_disable_debug_mode(camera_t *camera);
40 void camera_toggle_blackwhite_mode(camera_t *camera);
42 int camera_is_point_visible(const camera_t *camera, point_t p);
44 rect_t camera_view_port(const camera_t *camera);