Toast Engine
Loading...
Searching...
No Matches
voxel_piece.hpp File Reference

Base of everything a ProceduralVoxel builds itself from. More...

#include "voxel.hpp"
#include <array>
#include <cstdint>
#include <future>
#include <memory>
#include <toast/assets/types.hpp>
#include <toast/voxel/voxel_edit.hpp>
#include <vector>
Include dependency graph for voxel_piece.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  toast::VoxelPiece
struct  toast::VoxelPiece::Grid

Enumerations

enum class  toast::PieceKind : uint8_t { fill , carve , paint }

Detailed Description

Base of everything a ProceduralVoxel builds itself from.

Author
Xein
Date
26 Sep 2026

Enumeration Type Documentation

◆ PieceKind

enum class toast::PieceKind : uint8_t
strong

How a piece lands on the shape

Enumerator
fill 

Adds its voxels with its write mode.

carve 

Empties every voxel it has.

paint 

Recolors voxels that are already solid.