-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
28 lines (24 loc) · 660 Bytes
/
Copy pathdebug.h
File metadata and controls
28 lines (24 loc) · 660 Bytes
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
27
28
#include "primitive.h"
#include <iostream>
void outputVert(Vert& vert) {
std::cout << "Vert pos: ";
for (int i = 0; i < 4; i++) {
std::cout << vert.pos[i] << ", ";
}
std::cout << std::endl;
std::cout << "Vert norm: ";
for (int i = 0; i < 3; i++) {
std::cout << vert.norm[i] << ", ";
}
std::cout << std::endl;
std::cout << "Vert tex: ";
for (int i = 0; i < 2; i++) {
std::cout << vert.tex[i] << ", ";
}
std::cout << std::endl;
std::cout << "Vert pos_view: ";
for (int i = 0; i < 3; i++) {
std::cout << vert.pos_view[i] << ", ";
}
std::cout << std::endl;
}