A 3d fps game made in OpenGL
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.
 
 
 
 
Symmetry/src/libsymmetry/camera.h

21 lines
616 B

#ifndef CAMERA_H
#define CAMERA_H
#include "../common/num_types.h"
struct Entity;
void camera_destroy(struct Entity* entity);
void camera_create(struct Entity* entity, int width, int height);
void camera_update_view_proj(struct Entity* entity);
void camera_update_view(struct Entity* entity);
void camera_update_proj(struct Entity* entity);
void camera_attach_fbo(struct Entity* entity,
int width,
int height,
bool has_depth,
bool has_color,
bool resizeable);
/* void camera_resize_all(int width, int height); */
#endif