mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-11 20:35:08 +01:00
Fix includes
This commit is contained in:
parent
7319fa1c56
commit
a0026dbbeb
@ -1,7 +1,7 @@
|
||||
#ifndef CUBE_TABLES_H
|
||||
#define CUBE_TABLES_H
|
||||
|
||||
#include <vector3.h>
|
||||
#include <core/math/vector3.h>
|
||||
#include "vector3i.h"
|
||||
#include "voxel.h"
|
||||
|
||||
|
2
voxel.h
2
voxel.h
@ -1,7 +1,7 @@
|
||||
#ifndef VOXEL_TYPE_H
|
||||
#define VOXEL_TYPE_H
|
||||
|
||||
#include <resource.h>
|
||||
#include <core/resource.h>
|
||||
|
||||
class VoxelLibrary;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "voxel_buffer.h"
|
||||
#include <math_funcs.h>
|
||||
#include <core/math/math_funcs.h>
|
||||
#include <string.h>
|
||||
|
||||
VoxelBuffer::VoxelBuffer() {
|
||||
|
@ -2,8 +2,8 @@
|
||||
#define VOXEL_BUFFER_H
|
||||
|
||||
#include "vector3i.h"
|
||||
#include <reference.h>
|
||||
#include <vector.h>
|
||||
#include <core/reference.h>
|
||||
#include <core/vector.h>
|
||||
|
||||
// Dense voxels data storage.
|
||||
// Organized in 8-bit channels like images, all optional.
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define VOXEL_LIBRARY_H
|
||||
|
||||
#include "voxel.h"
|
||||
#include <resource.h>
|
||||
#include <core/resource.h>
|
||||
|
||||
class VoxelLibrary : public Resource {
|
||||
GDCLASS(VoxelLibrary, Resource)
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "voxel_buffer.h"
|
||||
#include "voxel_library.h"
|
||||
#include "zprofiling.h"
|
||||
#include <reference.h>
|
||||
#include <core/reference.h>
|
||||
#include <scene/resources/mesh.h>
|
||||
|
||||
// TODO Should be renamed VoxelMesherCubic or something like that
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
#include "voxel_mesher_smooth.h"
|
||||
#include "transvoxel_tables.cpp"
|
||||
#include <os/os.h>
|
||||
#include <core/os/os.h>
|
||||
|
||||
inline float tof(int8_t v) {
|
||||
return static_cast<float>(v) / 256.f;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef VOXEL_PROVIDER_H
|
||||
#define VOXEL_PROVIDER_H
|
||||
|
||||
#include <resource.h>
|
||||
#include <core/resource.h>
|
||||
#include "voxel_buffer.h"
|
||||
|
||||
class VoxelProvider : public Resource {
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "voxel_raycast.h"
|
||||
#include <math_funcs.h>
|
||||
#include <core/math/math_funcs.h>
|
||||
|
||||
bool voxel_raycast(
|
||||
Vector3 ray_origin,
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "vector3i.h"
|
||||
#include <vector3.h>
|
||||
#include <core/math/vector3.h>
|
||||
|
||||
// TODO that could be a template function
|
||||
// pos: voxel position
|
||||
|
@ -1,9 +1,9 @@
|
||||
#include "voxel_terrain.h"
|
||||
#include "voxel_raycast.h"
|
||||
#include "rect3i.h"
|
||||
#include <os/os.h>
|
||||
#include <core/os/os.h>
|
||||
#include <scene/3d/mesh_instance.h>
|
||||
#include <engine.h>
|
||||
#include <core/engine.h>
|
||||
|
||||
|
||||
VoxelTerrain::VoxelTerrain()
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "zprofiling.h"
|
||||
|
||||
#ifdef VOXEL_PROFILING
|
||||
#include <os/os.h>
|
||||
#include <core/os/os.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
class ZProfileVar {
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
#ifdef VOXEL_PROFILING
|
||||
|
||||
#include <dictionary.h>
|
||||
#include <hash_map.h>
|
||||
#include <ustring.h>
|
||||
#include <core/dictionary.h>
|
||||
#include <core/hash_map.h>
|
||||
#include <core/ustring.h>
|
||||
|
||||
#define VOXEL_PROFILE_BEGIN(_key) _zprofiler.begin(_key);
|
||||
#define VOXEL_PROFILE_END(_key) _zprofiler.end(_key);
|
||||
|
Loading…
Reference in New Issue
Block a user