HPC_Voxel_Engine 0.2.0
High-Performance C++ Voxel Engine
Loading...
Searching...
No Matches
Classes | Enumerations | Variables
Chunk.h File Reference

Defines the Chunk class representing a localized 3D grid of voxels and its thermal data. More...

#include <FastNoiseLite.h>
#include <immintrin.h>
#include <cstdint>
#include <cstring>
#include <memory>
#include <vector>
#include "../core/MathUtils.h"
#include "../physics/AABB.h"
#include "../renderer/Buffer.h"
#include "../renderer/IndexBuffer.h"
#include "../renderer/ThermalVolume.h"
#include "../renderer/VertexArray.h"
Include dependency graph for Chunk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Chunk
 Manages voxel block data, procedural mesh generation, and memory-aligned thermal diffusion buffers. More...
 

Enumerations

enum  FaceDirection {
  FRONT , BACK , LEFT , RIGHT ,
  UP , DOWN
}
 
enum  Direction {
  NORTH = 0 , SOUTH , EAST , WEST ,
  ABOVE , BELOW
}
 
enum  BlockType { AIR = 0 , GRASS = 1 , DIRT = 2 , STONE = 3 }
 

Variables

constexpr int CHUNK_SIZE = 16
 
constexpr int CHUNK_HEIGHT = 16
 
constexpr int CHUNK_VOL = CHUNK_SIZE * CHUNK_HEIGHT * CHUNK_SIZE
 
constexpr int PADDED_CHUNK_SIZE = CHUNK_SIZE + 2
 
constexpr int PADDED_CHUNK_HEIGHT = CHUNK_HEIGHT + 2
 
constexpr int PADDED_CHUNK_VOL = PADDED_CHUNK_SIZE * PADDED_CHUNK_HEIGHT * PADDED_CHUNK_SIZE
 

Detailed Description

Defines the Chunk class representing a localized 3D grid of voxels and its thermal data.

Enumeration Type Documentation

◆ BlockType

enum BlockType
Enumerator
AIR 
GRASS 
DIRT 
STONE 

◆ Direction

enum Direction
Enumerator
NORTH 
SOUTH 
EAST 
WEST 
ABOVE 
BELOW 

◆ FaceDirection

Enumerator
FRONT 
BACK 
LEFT 
RIGHT 
UP 
DOWN 

Variable Documentation

◆ CHUNK_HEIGHT

constexpr int CHUNK_HEIGHT = 16
constexpr

◆ CHUNK_SIZE

constexpr int CHUNK_SIZE = 16
constexpr

◆ CHUNK_VOL

constexpr int CHUNK_VOL = CHUNK_SIZE * CHUNK_HEIGHT * CHUNK_SIZE
constexpr

◆ PADDED_CHUNK_HEIGHT

constexpr int PADDED_CHUNK_HEIGHT = CHUNK_HEIGHT + 2
constexpr

◆ PADDED_CHUNK_SIZE

constexpr int PADDED_CHUNK_SIZE = CHUNK_SIZE + 2
constexpr

◆ PADDED_CHUNK_VOL

constexpr int PADDED_CHUNK_VOL = PADDED_CHUNK_SIZE * PADDED_CHUNK_HEIGHT * PADDED_CHUNK_SIZE
constexpr