summaryrefslogtreecommitdiff
path: root/doc/libgraphics.ms
blob: 87a23a7fd3fd1a17c57952628e1e47ab2a99093b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.TL
libgraphics
.AU
Rodrigo G. López
.sp
rgl@antares-labs.eu
.AI
Antares Telecom Laboratories
Albatera, Alicante
.FS
ACHTUNG! this is a
.B "WORK IN PROGRESS"
.FE
.NH 1
Data Structures
.NH 2
Camera
.P1
struct Camera {
	RFrame3;		/* VCS */
	Image *viewport;
	double fov;		/* vertical FOV */
	struct {
		double n, f;	/* near and far clipping planes */
	} clip;
	Projection ptype;
	Matrix3 proj;		/* VCS to viewport xform */
};
.P2
.PP
A camera is an image capturing entity, analog to the real world device
we all know, that allows us to see the virtual 3-D world by projecting
it into a viewport we can attach to a screen or window for real-time
visualization or write out into a file.