diff options
Diffstat (limited to 'cube_pc_test1/draw_3d.h')
-rw-r--r-- | cube_pc_test1/draw_3d.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cube_pc_test1/draw_3d.h b/cube_pc_test1/draw_3d.h new file mode 100644 index 0000000..0f56033 --- /dev/null +++ b/cube_pc_test1/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 |