Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cube.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 const float cube_positions[] = {
4 
5  //Back
6  -0.5f, -0.5f, -0.5f,
7  -0.5f, 0.5f, -0.5f,
8  0.5f, 0.5f, -0.5f,
9  0.5f, -0.5f, -0.5f,
10 
11  //Front
12  -0.5f, -0.5f, 0.5f,
13  0.5f, -0.5f, 0.5f,
14  0.5f, 0.5f, 0.5f,
15  -0.5f, 0.5f, 0.5f,
16 
17  //Top
18  0.5f, 0.5f, 0.5f,
19  0.5f, 0.5f, -0.5f,
20  -0.5f, 0.5f, -0.5f,
21  -0.5f, 0.5f, 0.5f,
22 
23  //Bottom
24  0.5f, -0.5f, 0.5f,
25  -0.5f, -0.5f, 0.5f,
26  -0.5f, -0.5f, -0.5f,
27  0.5f, -0.5f, -0.5f,
28 
29  //Right
30  0.5f, 0.5f, 0.5f,
31  0.5f, -0.5f, 0.5f,
32  0.5f, -0.5f, -0.5f,
33  0.5f, 0.5f, -0.5f,
34 
35  //Left
36  -0.5f, 0.5f, 0.5f,
37  -0.5f, 0.5f, -0.5f,
38  -0.5f, -0.5f, -0.5f,
39  -0.5f, -0.5f, 0.5f,
40  };
41 
42 const unsigned int cube_indices[] = {
43  0, 1, 2,
44  0, 2, 3,
45 
46  4, 5, 6,
47  4, 6, 7,
48 
49  8, 9, 10,
50  8, 10, 11,
51 
52  12, 13, 14,
53  12, 14, 15,
54 
55  16, 17, 18,
56  16, 18, 19,
57 
58  20, 21, 22,
59  20, 22, 23
60 };
61 
62 const float cube_normals[] = {
63  0.0f, 0.0f, -1.0f,
64  0.0f, 0.0f, -1.0f,
65  0.0f, 0.0f, -1.0f,
66  0.0f, 0.0f, -1.0f,
67 
68  0.0f, 0.0f, 1.0f,
69  0.0f, 0.0f, 1.0f,
70  0.0f, 0.0f, 1.0f,
71  0.0f, 0.0f, 1.0f,
72 
73  0.0f, 1.0f, 0.0f,
74  0.0f, 1.0f, 0.0f,
75  0.0f, 1.0f, 0.0f,
76  0.0f, 1.0f, 0.0f,
77 
78  0.0f, -1.0f, 0.0f,
79  0.0f, -1.0f, 0.0f,
80  0.0f, -1.0f, 0.0f,
81  0.0f, -1.0f, 0.0f,
82 
83  1.0f, 0.0f, 0.0f,
84  1.0f, 0.0f, 0.0f,
85  1.0f, 0.0f, 0.0f,
86  1.0f, 0.0f, 0.0f,
87 
88  -1.0f, 0.0f, 0.0f,
89  -1.0f, 0.0f, 0.0f,
90  -1.0f, 0.0f, 0.0f,
91  -1.0f, 0.0f, 0.0f
92 };
93 
94 const float cube_uvs[] = {
95  1.0f, 0.0f,
96  1.0f, 1.0f,
97  0.0f, 1.0f,
98  0.0f, 0.0f,
99 
100  0.0f, 0.0f,
101  1.0f, 0.0f,
102  1.0f, 1.0f,
103  0.0f, 1.0f,
104 
105  0.0f, 0.0f,
106  1.0f, 0.0f,
107  1.0f, 1.0f,
108  0.0f, 1.0f,
109 
110  0.0f, 0.0f,
111  1.0f, 0.0f,
112  1.0f, 1.0f,
113  0.0f, 1.0f,
114 
115  1.0f, 1.0f,
116  1.0f, 0.0f,
117  0.0f, 0.0f,
118  0.0f, 1.0f,
119 
120  0.0f, 1.0f,
121  1.0f, 1.0f,
122  1.0f, 0.0f,
123  0.0f, 0.0f
124 };
const float cube_positions[]
Definition: cube.hpp:3
const float cube_normals[]
Definition: cube.hpp:62
const float cube_uvs[]
Definition: cube.hpp:94
const unsigned int cube_indices[]
Definition: cube.hpp:42