summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-15 12:33:26 +0800
committerKeuin <[email protected]>2022-04-15 12:33:26 +0800
commit5879ee3f33d07e93b1cc475035c3aa9c8577eeb7 (patch)
tree05b88a810170b5d24a42cc558f6a9502ca0572d1
parent4193adbbff4a5b633f59f88367fe1b74aec7789b (diff)
Fix bad inclusion cause code not compiling.
-rw-r--r--ray.h1
-rw-r--r--vec.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/ray.h b/ray.h
index 4d5401c..51a3da1 100644
--- a/ray.h
+++ b/ray.h
@@ -6,6 +6,7 @@
#define RT_RAY_H
#include "vec.h"
+#include "bitmap.h"
// A ray is a half-line, starts from a 3d point, along the direction of a unit vector, to the infinity
template<typename T>
diff --git a/vec.h b/vec.h
index 64eaaca..c7669bf 100644
--- a/vec.h
+++ b/vec.h
@@ -7,6 +7,7 @@
#include <cmath>
#include <random>
+#include <ostream>
static inline bool eq(int a, int b) {
return a == b;