diff options
author | leo <leo@azuminha.com> | 2024-02-14 21:34:17 -0300 |
---|---|---|
committer | leo <leo@azuminha.com> | 2024-02-14 21:34:17 -0300 |
commit | 282c24f7f940b3b7e0caf76bd6e20d2993bf42b6 (patch) | |
tree | 6637a4cf3ae144cf7d172d8df6ca95fd6bb34368 /donut.h |
donut rodando, falta adicionar sombra
Diffstat (limited to 'donut.h')
-rw-r--r-- | donut.h | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +#ifndef _DONUT +#define _DONUT + +#include <raylib.h> +#include <stdio.h> +#include <math.h> + +#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 |