You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
731 B
23 lines
731 B
#ifndef CAMERA_H
|
|
#define CAMERA_H
|
|
|
|
#include "../common/num_types.h"
|
|
#include "../common/linmath.h"
|
|
|
|
struct Camera;
|
|
|
|
void camera_reset(struct Camera* camera);
|
|
void camera_init(struct Camera* camera, int width, int height);
|
|
void camera_update_view_proj(struct Camera* camera);
|
|
void camera_update_view(struct Camera* camera);
|
|
void camera_update_proj(struct Camera* camera);
|
|
void camera_attach_fbo(struct Camera* camera,
|
|
int width,
|
|
int height,
|
|
bool has_depth,
|
|
bool has_color,
|
|
bool resizeable);
|
|
struct Ray camera_screen_coord_to_ray(struct Camera* camera, int mouse_x, int mouse_y);
|
|
/* void camera_resize_all(int width, int height); */
|
|
|
|
#endif
|
|
|