aboutsummaryrefslogtreecommitdiffstats
path: root/instructables/cube_pc/draw_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'instructables/cube_pc/draw_3d.h')
-rw-r--r--instructables/cube_pc/draw_3d.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/instructables/cube_pc/draw_3d.h b/instructables/cube_pc/draw_3d.h
new file mode 100644
index 0000000..0f56033
--- /dev/null
+++ b/instructables/cube_pc/draw_3d.h
@@ -0,0 +1,26 @@
+#include <stdlib.h>
+
+#ifndef DRAW3D_H
+#define DRAW3D_H
+
+
+typedef struct {
+ float x;
+ float y;
+ float z;
+} vertex;
+
+typedef struct {
+ int x;
+ int y;
+ int z;
+} intvertex;
+
+vertex point_rotate_around_point (vertex point, vertex center, float rotation_x, float rotation_y, float rotation_z);
+
+void rotate_cube_contents(float rx, float ry, float rz);
+
+void calculate_cube_corners (vertex points[8], vertex center, float size);
+
+
+#endif