From 282c24f7f940b3b7e0caf76bd6e20d2993bf42b6 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 14 Feb 2024 21:34:17 -0300 Subject: donut rodando, falta adicionar sombra --- donut.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 donut.h (limited to 'donut.h') diff --git a/donut.h b/donut.h new file mode 100644 index 0000000..568ae80 --- /dev/null +++ b/donut.h @@ -0,0 +1,29 @@ +#ifndef _DONUT +#define _DONUT + +#include +#include +#include + +#define SCREEN_WIDTH 640 +#define SCREEN_HEIGHT 640 + +typedef struct _Point3d{ + double x, y, z; +}point3d; + +typedef struct _Point2d{ + double x, y; +}point2d; + +void debug_printp2(point2d p); + +point2d map(point2d p); +point2d demap(point2d p); + +void draw_circle(point2d center, double radius); +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 -- cgit v1.2.3