aboutsummaryrefslogtreecommitdiff
path: root/graphics.h
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 /graphics.h
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 'graphics.h')
-rw-r--r--graphics.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/graphics.h b/graphics.h
index 55c378c..7eb284d 100644
--- a/graphics.h
+++ b/graphics.h
@@ -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);