aboutsummaryrefslogtreecommitdiffstats
path: root/instructables/cube_pc/draw_3d.h
blob: 0f56033a279c50d80e044b3c8ba8f7fe540d5a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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