aboutsummaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2020-03-04 21:03:21 +0000
committerrodri <rgl@antares-labs.eu>2020-03-04 21:03:21 +0000
commita435467f81a1d9d429109f3a34988c642bed6035 (patch)
treefe1d314e5c9981f4b087ce4990bbe1ea6c3082df /graphics.h
parent3e0fe77fe3832b4c4eb7abe9c16088d9ff08f7bc (diff)
download3dee-a435467f81a1d9d429109f3a34988c642bed6035.tar.gz
3dee-a435467f81a1d9d429109f3a34988c642bed6035.tar.bz2
3dee-a435467f81a1d9d429109f3a34988c642bed6035.zip
first steps towards a general rendering architecture.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/graphics.h b/graphics.h
index be3105d..57aa56e 100644
--- a/graphics.h
+++ b/graphics.h
@@ -4,7 +4,6 @@ typedef enum {
} Projection;
typedef struct Vertex Vertex;
-typedef struct Triangle Triangle;
typedef struct Viewport Viewport;
typedef struct Camera Camera;
@@ -14,10 +13,6 @@ struct Vertex {
//Image tx; /* (?) */
};
-struct Triangle {
- Point p0, p1, p2;
-};
-
struct Camera {
RFrame3; /* VCS */
Image *viewport;
@@ -29,12 +24,6 @@ struct Camera {
Projection ptype;
};
-/* Triangle */
-Triangle Trian(int, int, int, int, int, int);
-Triangle Trianpt(Point, Point, Point);
-void triangle(Image *, Triangle, int, Image *, Point);
-void filltriangle(Image *, Triangle, Image *, Point);
-
/* Camera */
void perspective(Matrix3, double, double, double, double);
void orthographic(Matrix3, double, double, double, double, double, double);