summaryrefslogtreecommitdiffstats
path: root/game/shared/world/ray_dda.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-12 16:16:06 +0500
committeruntodesu <kirill@untode.su>2025-09-12 16:16:06 +0500
commitfc80fa024fc93dac6ea89461ef36f455c5e468a2 (patch)
tree7c4ea8f03b6778572d59784dc28b600e3f8f2268 /game/shared/world/ray_dda.hh
parent12947aafcc6a6eb362cc454e2149796ec9265743 (diff)
parent522a7514012da86f7b9643179f0763746f3b232e (diff)
downloadvoxelius-fc80fa024fc93dac6ea89461ef36f455c5e468a2.tar.bz2
voxelius-fc80fa024fc93dac6ea89461ef36f455c5e468a2.zip
Merge pull request #15 from untodesu/metavoxels
Metavoxels
Diffstat (limited to 'game/shared/world/ray_dda.hh')
-rw-r--r--game/shared/world/ray_dda.hh7
1 files changed, 2 insertions, 5 deletions
diff --git a/game/shared/world/ray_dda.hh b/game/shared/world/ray_dda.hh
index 54bd48a..110e3d4 100644
--- a/game/shared/world/ray_dda.hh
+++ b/game/shared/world/ray_dda.hh
@@ -1,5 +1,3 @@
-#ifndef SHARED_RAY_DDA
-#define SHARED_RAY_DDA 1
#pragma once
#include "shared/types.hh"
@@ -7,6 +5,7 @@
namespace world
{
class Dimension;
+class Voxel;
} // namespace world
namespace world
@@ -20,7 +19,7 @@ public:
void reset(const Dimension* dimension, const chunk_pos& start_chunk, const glm::fvec3& start_fpos, const glm::fvec3& direction);
void reset(const Dimension& dimension, const chunk_pos& start_chunk, const glm::fvec3& start_fpos, const glm::fvec3& direction);
- voxel_id step(void);
+ const Voxel* step(void);
public:
const Dimension* dimension;
@@ -37,5 +36,3 @@ public:
voxel_pos vpos;
};
} // namespace world
-
-#endif // SHARED_RAY_DDA