diff options
author | rodri <rgl@antares-labs.eu> | 2024-01-31 22:34:30 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-01-31 22:34:30 +0000 |
commit | 5a97a65584a9bdd97cd3399beff59c5ea5d9d4a9 (patch) | |
tree | 91f0fc718c0873e3fc874f183f2b63bc538da1f9 /camera.c | |
parent | feecec6c4d7f3798c2298cd6c68b06d77eab719d (diff) | |
download | libgraphics-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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: |