aboutsummaryrefslogtreecommitdiff
path: root/camera.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-01-31 22:34:30 +0000
committerrodri <rgl@antares-labs.eu>2024-01-31 22:34:30 +0000
commit5a97a65584a9bdd97cd3399beff59c5ea5d9d4a9 (patch)
tree91f0fc718c0873e3fc874f183f2b63bc538da1f9 /camera.c
parentfeecec6c4d7f3798c2298cd6c68b06d77eab719d (diff)
downloadlibgraphics-5a97a65584a9bdd97cd3399beff59c5ea5d9d4a9.tar.gz
libgraphics-5a97a65584a9bdd97cd3399beff59c5ea5d9d4a9.tar.bz2
libgraphics-5a97a65584a9bdd97cd3399beff59c5ea5d9d4a9.zip
improve coordinate transformations and fix projections.
also got rid of Deco. there's no point in having that, just deal with image(6) files.
Diffstat (limited to 'camera.c')
-rw-r--r--camera.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/camera.c b/camera.c
index d54f0dd..699b59c 100644
--- a/camera.c
+++ b/camera.c
@@ -66,15 +66,10 @@ reloadcamera(Camera *c)
verifycfg(c);
switch(c->projtype){
case ORTHOGRAPHIC:
- /*
r = Dx(c->vp->fbctl->fb[0]->r)/2;
t = Dy(c->vp->fbctl->fb[0]->r)/2;
l = -r;
b = -t;
- */
- l = t = 0;
- r = Dx(c->vp->fbctl->fb[0]->r);
- b = Dy(c->vp->fbctl->fb[0]->r);
orthographic(c->proj, l, r, b, t, c->clip.n, c->clip.f);
break;
case PERSPECTIVE: