mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
add debug/debug.hpp
This commit is contained in:
parent
a5b1259c5b
commit
e69490ca52
1 changed files with 17 additions and 0 deletions
17
src/debug/debug.hpp
Normal file
17
src/debug/debug.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
|
template<int N, typename T>
|
||||||
|
std::ostream& operator<<(std::ostream& out, const glm::vec<N, T>& vec) {
|
||||||
|
out << "{";
|
||||||
|
for (int i = 0; i < N; i++) {
|
||||||
|
if (i > 0) {
|
||||||
|
out << ", ";
|
||||||
|
}
|
||||||
|
out << vec[i];
|
||||||
|
}
|
||||||
|
out << "}";
|
||||||
|
return out;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue