mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-11 20:35:08 +01:00
38 lines
982 B
C++
38 lines
982 B
C++
#ifndef CUBE_TABLES_H
|
|
#define CUBE_TABLES_H
|
|
|
|
#include <core/math/vector3.h>
|
|
#include "vector3i.h"
|
|
#include "voxel.h"
|
|
|
|
namespace CubeTables {
|
|
|
|
const unsigned int CORNER_COUNT = 8;
|
|
const unsigned int EDGE_COUNT = 12;
|
|
const unsigned int MOORE_NEIGHBORING_3D_COUNT = 26;
|
|
|
|
extern const Vector3 g_corner_position[CORNER_COUNT];
|
|
|
|
extern const int g_side_quad_triangles[Voxel::SIDE_COUNT][6];
|
|
|
|
extern const unsigned int g_side_coord[Voxel::SIDE_COUNT];
|
|
extern const unsigned int g_side_sign[Voxel::SIDE_COUNT];
|
|
|
|
extern const Vector3i g_side_normals[Voxel::SIDE_COUNT];
|
|
|
|
extern const unsigned int g_side_corners[Voxel::SIDE_COUNT][4];
|
|
extern const unsigned int g_side_edges[Voxel::SIDE_COUNT][4];
|
|
|
|
extern const Vector3i g_corner_inormals[CORNER_COUNT];
|
|
|
|
extern const Vector3i g_edge_inormals[EDGE_COUNT];
|
|
|
|
extern const unsigned int g_edge_corners[EDGE_COUNT][2];
|
|
|
|
extern const Vector3i g_moore_neighboring_3d[MOORE_NEIGHBORING_3D_COUNT];
|
|
|
|
} // namespace CubeTables
|
|
|
|
|
|
#endif // CUBE_TABLES_H
|