summaryrefslogtreecommitdiff
path: root/donut.h
diff options
context:
space:
mode:
authorleo <leo@azuminha.com>2024-02-15 02:22:09 -0300
committerleo <leo@azuminha.com>2024-02-15 02:22:09 -0300
commitb96e1de0bd5e00d7bd3c74cf5319a6fb76439c24 (patch)
tree255455571ed26aa825c336d1ab27b5119c933ba3 /donut.h
parent282c24f7f940b3b7e0caf76bd6e20d2993bf42b6 (diff)
acho que tem sombras, porem tem que arrumar a ordem de renderizacao
Diffstat (limited to 'donut.h')
-rw-r--r--donut.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/donut.h b/donut.h
index 568ae80..e4e0519 100644
--- a/donut.h
+++ b/donut.h
@@ -5,6 +5,8 @@
#include <stdio.h>
#include <math.h>
+#define MAX(a,b) ((a)>(b)?(a):(b))
+
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 640
@@ -26,4 +28,4 @@ point3d rotate_x(point3d p, double a);
point3d rotate_y(point3d p, double a);
point3d rotate_z(point3d p, double a);
-#endif \ No newline at end of file
+#endif