Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
paint_volume.hpp
Go to the documentation of this file.
1
7
8
#pragma once
9
#include "
voxel_volume.hpp
"
10
11
namespace
toast {
12
14
class
[[ToastNode, Icon(
"Blend"
)]] TOAST_API
PaintVolume
:
public
VoxelVolume
{
15
public
:
16
[[nodiscard]]
17
auto
kind()
const
noexcept
->
PieceKind
override
{
18
return
PieceKind::paint
;
19
}
20
21
[[nodiscard]]
22
auto
writeMode()
const
noexcept
->
voxel::WriteMode
override
{
23
return
voxel::WriteMode::solid_only
;
24
}
25
};
26
27
}
toast::PaintVolume
Definition
paint_volume.hpp:14
toast::VoxelVolume
Definition
voxel_volume.hpp:17
voxel_volume.hpp
A box of voxels inside a ProceduralVoxel.
voxel::WriteMode
WriteMode
Which voxels we should override.
Definition
voxel_edit.hpp:26
voxel::WriteMode::solid_only
@ solid_only
Only non-empty space.
Definition
voxel_edit.hpp:29
toast::PieceKind
PieceKind
Definition
voxel_piece.hpp:26
toast::PieceKind::paint
@ paint
Recolors voxels that are already solid.
Definition
voxel_piece.hpp:29
engine
src
toast
voxel
nodes
paint_volume.hpp
Generated by
1.17.0