Skip to content

Commit

Permalink
Add headers explicitely, some were missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Feb 4, 2024
1 parent 0f5d2e3 commit 78424fb
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 3 deletions.
10 changes: 10 additions & 0 deletions generators/graph/voxel_generator_graph.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
#ifndef VOXEL_GENERATOR_GRAPH_H
#define VOXEL_GENERATOR_GRAPH_H

#include "../../util/containers/fixed_array.h"
#include "../../util/containers/span.h"
#include "../../util/godot/core/dictionary.h"
#include "../../util/macros.h"
#include "../../util/math/vector2.h"
#include "../../util/math/vector3.h"
#include "../../util/math/vector3f.h"
#include "../../util/math/vector3i.h"
#include "../../util/thread/rw_lock.h"
#include "../voxel_generator.h"
#include "program_graph.h"
#include "voxel_graph_function.h"
#include "voxel_graph_runtime.h"

#include <memory>
#include <vector>

ZN_GODOT_FORWARD_DECLARE(class Image)

namespace zylann::voxel {

class VoxelBufferInternal;

// Uses an internal VoxelGraphFunction to generate voxel data.
class VoxelGeneratorGraph : public VoxelGenerator {
GDCLASS(VoxelGeneratorGraph, VoxelGenerator)
Expand Down
5 changes: 5 additions & 0 deletions generators/multipass/voxel_generator_multipass_cb.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@

#include "../../engine/ids.h"
#include "../../storage/voxel_buffer_gd.h"
#include "../../util/math/box3i.h"
#include "../../util/math/vector2i.h"
#include "../../util/memory.h"
#include "../../util/ref_count.h"
#include "../../util/thread/mutex.h"
#include "../voxel_generator.h"
#include "voxel_generator_multipass_cb_structs.h"
#include "voxel_tool_multipass_generator.h" // Must be included so we can define GDVIRTUAL methods

#if defined(ZN_GODOT)
Expand Down
3 changes: 3 additions & 0 deletions generators/simple/voxel_generator_flat.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef VOXEL_GENERATOR_FLAT_H
#define VOXEL_GENERATOR_FLAT_H

#include "../../constants/voxel_constants.h"
#include "../../storage/voxel_buffer_gd.h"
#include "../../storage/voxel_buffer_internal.h"
#include "../../util/thread/rw_lock.h"
#include "../voxel_generator.h"

namespace zylann::voxel {
Expand Down
7 changes: 7 additions & 0 deletions generators/simple/voxel_generator_heightmap.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#ifndef VOXEL_GENERATOR_HEIGHTMAP_H
#define VOXEL_GENERATOR_HEIGHTMAP_H

#include "../../constants/voxel_constants.h"
#include "../../storage/voxel_buffer_gd.h"
#include "../../storage/voxel_buffer_internal.h"
#include "../../util/containers/span.h"
#include "../../util/math/funcs.h"
#include "../../util/math/vector3f.h"
#include "../../util/math/vector3i.h"
#include "../../util/thread/rw_lock.h"
#include "../voxel_generator.h"

namespace zylann::voxel {
Expand Down
1 change: 1 addition & 0 deletions generators/simple/voxel_generator_image.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "voxel_generator_image.h"
#include "../../util/containers/fixed_array.h"
#include "../../util/containers/span.h"
#include "../../util/godot/classes/image.h"

namespace zylann::voxel {

Expand Down
5 changes: 4 additions & 1 deletion generators/simple/voxel_generator_image.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#ifndef HEADER_VOXEL_GENERATOR_IMAGE
#define HEADER_VOXEL_GENERATOR_IMAGE

#include "../../util/godot/classes/image.h"
#include "../../util/godot/macros.h"
#include "../../util/thread/rw_lock.h"
#include "voxel_generator_heightmap.h"

ZN_GODOT_FORWARD_DECLARE(class Image)

namespace zylann::voxel {

// Provides infinite tiling heightmap based on an image
Expand Down
6 changes: 5 additions & 1 deletion generators/simple/voxel_generator_noise.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
#define VOXEL_GENERATOR_NOISE_H

#include "../../storage/voxel_buffer_gd.h"
#include "../../util/godot/classes/noise.h"
#include "../../storage/voxel_buffer_internal.h"
#include "../../util/godot/macros.h"
#include "../../util/thread/rw_lock.h"
#include "../voxel_generator.h"

ZN_GODOT_FORWARD_DECLARE(class Noise)

namespace zylann::voxel {

class VoxelGeneratorNoise : public VoxelGenerator {
Expand Down
5 changes: 4 additions & 1 deletion generators/simple/voxel_generator_noise_2d.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef VOXEL_GENERATOR_NOISE_2D_H
#define VOXEL_GENERATOR_NOISE_2D_H

#include "../../util/macros.h"
#include "../../util/containers/span.h"
#include "../../util/godot/macros.h"
#include "../../util/math/vector3f.h"
#include "../../util/thread/rw_lock.h"
#include "voxel_generator_heightmap.h"

ZN_GODOT_FORWARD_DECLARE(class Curve)
Expand Down
2 changes: 2 additions & 0 deletions generators/simple/voxel_generator_waves.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef VOXEL_GENERATOR_WAVES_H
#define VOXEL_GENERATOR_WAVES_H

#include "../../util/math/vector2.h"
#include "../../util/thread/rw_lock.h"
#include "voxel_generator_heightmap.h"

namespace zylann::voxel {
Expand Down

0 comments on commit 78424fb

Please sign in to comment.