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 /graphics.h | |
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 'graphics.h')
-rw-r--r-- | graphics.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -129,9 +129,8 @@ void rmviewport(Viewport*); /* render */ Point3 world2vcs(Camera*, Point3); -Point3 vcs2ndc(Camera*, Point3); -Point3 world2ndc(Camera*, Point3); -Point3 ndc2viewport(Camera*, Point3); +Point3 vcs2clip(Camera*, Point3); +Point3 world2clip(Camera*, Point3); void perspective(Matrix3, double, double, double, double); void orthographic(Matrix3, double, double, double, double, double, double); @@ -139,8 +138,6 @@ void orthographic(Matrix3, double, double, double, double, double, double); double fmin(double, double); double fmax(double, double); Memimage *rgb(ulong); -Memimage *readtga(char*); -Memimage *readpng(char*); /* shadeop */ double step(double, double); |