From a0026dbbeba59b70ebb6046b8fccf38c98c442b0 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Wed, 19 Sep 2018 20:25:04 +0100 Subject: [PATCH] Fix includes --- cube_tables.h | 2 +- voxel.h | 2 +- voxel_buffer.cpp | 2 +- voxel_buffer.h | 4 ++-- voxel_library.h | 2 +- voxel_mesher.h | 2 +- voxel_mesher_smooth.cpp | 2 +- voxel_provider.h | 2 +- voxel_raycast.cpp | 2 +- voxel_raycast.h | 2 +- voxel_terrain.cpp | 4 ++-- zprofiling.cpp | 2 +- zprofiling.h | 6 +++--- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/cube_tables.h b/cube_tables.h index a7abc5c..904ee99 100644 --- a/cube_tables.h +++ b/cube_tables.h @@ -1,7 +1,7 @@ #ifndef CUBE_TABLES_H #define CUBE_TABLES_H -#include +#include #include "vector3i.h" #include "voxel.h" diff --git a/voxel.h b/voxel.h index 99151ac..5d807f0 100644 --- a/voxel.h +++ b/voxel.h @@ -1,7 +1,7 @@ #ifndef VOXEL_TYPE_H #define VOXEL_TYPE_H -#include +#include class VoxelLibrary; diff --git a/voxel_buffer.cpp b/voxel_buffer.cpp index 6637151..0dcf154 100644 --- a/voxel_buffer.cpp +++ b/voxel_buffer.cpp @@ -1,5 +1,5 @@ #include "voxel_buffer.h" -#include +#include #include VoxelBuffer::VoxelBuffer() { diff --git a/voxel_buffer.h b/voxel_buffer.h index e0b76c4..8790f0d 100644 --- a/voxel_buffer.h +++ b/voxel_buffer.h @@ -2,8 +2,8 @@ #define VOXEL_BUFFER_H #include "vector3i.h" -#include -#include +#include +#include // Dense voxels data storage. // Organized in 8-bit channels like images, all optional. diff --git a/voxel_library.h b/voxel_library.h index a579c09..4bd62cf 100644 --- a/voxel_library.h +++ b/voxel_library.h @@ -2,7 +2,7 @@ #define VOXEL_LIBRARY_H #include "voxel.h" -#include +#include class VoxelLibrary : public Resource { GDCLASS(VoxelLibrary, Resource) diff --git a/voxel_mesher.h b/voxel_mesher.h index 0e6b832..1fcffd0 100644 --- a/voxel_mesher.h +++ b/voxel_mesher.h @@ -5,7 +5,7 @@ #include "voxel_buffer.h" #include "voxel_library.h" #include "zprofiling.h" -#include +#include #include // TODO Should be renamed VoxelMesherCubic or something like that diff --git a/voxel_mesher_smooth.cpp b/voxel_mesher_smooth.cpp index 51d20bc..f75be0f 100644 --- a/voxel_mesher_smooth.cpp +++ b/voxel_mesher_smooth.cpp @@ -1,7 +1,7 @@ #include "voxel_mesher_smooth.h" #include "transvoxel_tables.cpp" -#include +#include inline float tof(int8_t v) { return static_cast(v) / 256.f; diff --git a/voxel_provider.h b/voxel_provider.h index 58a7aae..cf2db1f 100644 --- a/voxel_provider.h +++ b/voxel_provider.h @@ -1,7 +1,7 @@ #ifndef VOXEL_PROVIDER_H #define VOXEL_PROVIDER_H -#include +#include #include "voxel_buffer.h" class VoxelProvider : public Resource { diff --git a/voxel_raycast.cpp b/voxel_raycast.cpp index b4bdb00..eca06b8 100644 --- a/voxel_raycast.cpp +++ b/voxel_raycast.cpp @@ -1,5 +1,5 @@ #include "voxel_raycast.h" -#include +#include bool voxel_raycast( Vector3 ray_origin, diff --git a/voxel_raycast.h b/voxel_raycast.h index 1370cae..a827aab 100644 --- a/voxel_raycast.h +++ b/voxel_raycast.h @@ -1,5 +1,5 @@ #include "vector3i.h" -#include +#include // TODO that could be a template function // pos: voxel position diff --git a/voxel_terrain.cpp b/voxel_terrain.cpp index b70e0f1..110051d 100644 --- a/voxel_terrain.cpp +++ b/voxel_terrain.cpp @@ -1,9 +1,9 @@ #include "voxel_terrain.h" #include "voxel_raycast.h" #include "rect3i.h" -#include +#include #include -#include +#include VoxelTerrain::VoxelTerrain() diff --git a/zprofiling.cpp b/zprofiling.cpp index 4a81cc1..175a0cc 100644 --- a/zprofiling.cpp +++ b/zprofiling.cpp @@ -1,7 +1,7 @@ #include "zprofiling.h" #ifdef VOXEL_PROFILING -#include +#include //----------------------------------------------------------------------------- class ZProfileVar { diff --git a/zprofiling.h b/zprofiling.h index b8fadce..4f8267b 100644 --- a/zprofiling.h +++ b/zprofiling.h @@ -5,9 +5,9 @@ #ifdef VOXEL_PROFILING -#include -#include -#include +#include +#include +#include #define VOXEL_PROFILE_BEGIN(_key) _zprofiler.begin(_key); #define VOXEL_PROFILE_END(_key) _zprofiler.end(_key);