diff options
author | rodri <rgl@antares-labs.eu> | 2020-04-17 11:42:47 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2020-04-17 11:42:47 +0000 |
commit | 91d8cc8d9adfec7e9b5f415ebd7b7f740cde6e2d (patch) | |
tree | 66cdaa79197a65d9151c5952f7d2c803576e556f /doc/libgraphics.ms | |
download | libgraphics-91d8cc8d9adfec7e9b5f415ebd7b7f740cde6e2d.tar.gz libgraphics-91d8cc8d9adfec7e9b5f415ebd7b7f740cde6e2d.tar.bz2 libgraphics-91d8cc8d9adfec7e9b5f415ebd7b7f740cde6e2d.zip |
standalone version release.
Diffstat (limited to 'doc/libgraphics.ms')
-rw-r--r-- | doc/libgraphics.ms | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/libgraphics.ms b/doc/libgraphics.ms new file mode 100644 index 0000000..87a23a7 --- /dev/null +++ b/doc/libgraphics.ms @@ -0,0 +1,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. |