~zjm/Moon3D

ref: 0e81b821a0782674dbed435a58ad682e7aef0282 Moon3D/src/3d/image/camera.h -rw-r--r-- 429 bytes
0e81b821Zack Michener wrap rendering objects in a RenderingContext struct 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "../abstract.h"

typedef struct Camera {
	Vector position;
	Vector direction;
	Vector up;
	Transform transform;
} Camera;

void SetCamera(Vector position);
Camera *GetCamera(void);
Vector CameraPosition(void);
Vector CameraDirection(void);
void LookAt(Vector p);
void MoveCamera(Vector dv);
void RotateCamera(double rx, double ry, double rz);
void PlaceCamera(Vector p);
Transform AlignCameraToAxis(void);