Add camera module
This commit is contained in:
parent
9cc9626146
commit
87b3ca0efc
3 changed files with 70 additions and 0 deletions
31
src/camera.h
Normal file
31
src/camera.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* camera.h
|
||||
*
|
||||
* Camera type and related functions.
|
||||
*
|
||||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
#ifndef __CAMERA_H
|
||||
#define __CAMERA_H
|
||||
|
||||
#include "basics.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
CameraProjectionOrthographic = 1,
|
||||
} CameraProjection;
|
||||
|
||||
|
||||
typedef struct _Camera
|
||||
{
|
||||
CameraProjection projection;
|
||||
Vector3 location;
|
||||
Rect image_plane;
|
||||
} Camera;
|
||||
|
||||
|
||||
Camera *camera_init();
|
||||
void camera_destroy(Camera *camera);
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue