Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
editor_overlays.hpp
Go to the documentation of this file.
1
7
8
#pragma once
9
#include <cstdint>
10
#include <glm/glm.hpp>
11
#include <
toast/export.hpp
>
12
#include <
toast/uid.hpp
>
13
14
namespace
toast {
15
class
VoxelPiece
;
16
}
17
18
namespace
renderer {
19
20
struct
EditorOverlays
{
21
bool
surface_unit_grid
=
false
;
22
bool
surface_voxel_grid
=
false
;
23
bool
voxel_edges
=
false
;
24
bool
volume_edges
=
false
;
25
bool
projections
=
false
;
26
27
toast::UID
selected
;
28
29
toast::UID
cut_root
;
30
bool
cut_active =
false
;
31
glm::vec4
cut_plane
{0.0f};
32
33
bool
tool_box_active =
false
;
34
toast::UID
tool_root;
35
glm::ivec3 tool_box_min {0};
36
glm::ivec3 tool_box_max {0};
37
glm::vec4 tool_box_color {1.0f};
38
uint8_t
tool_box_kind
= 0;
39
toast::VoxelPiece
*
tool_piece
=
nullptr
;
40
42
bool
tool_box2_active
=
false
;
43
glm::ivec3 tool_box2_min {0};
44
glm::ivec3 tool_box2_max {0};
45
};
46
48
[[nodiscard]]
49
TOAST_API
auto
editorOverlays() ->
EditorOverlays
&;
50
51
}
toast::VoxelPiece
Definition
voxel_piece.hpp:41
export.hpp
renderer::EditorOverlays
Definition
editor_overlays.hpp:20
renderer::EditorOverlays::tool_box_kind
uint8_t tool_box_kind
0 fill, 1 carve, 2 paint, 3 outline only
Definition
editor_overlays.hpp:38
renderer::EditorOverlays::cut_plane
glm::vec4 cut_plane
red is where the normal points
Definition
editor_overlays.hpp:31
renderer::EditorOverlays::tool_box2_active
bool tool_box2_active
A second outline, Extrude shows both parts of the face it is splitting.
Definition
editor_overlays.hpp:42
renderer::EditorOverlays::tool_piece
toast::VoxelPiece * tool_piece
Draws the preview with the script new volumes get.
Definition
editor_overlays.hpp:39
renderer::EditorOverlays::selected
toast::UID selected
Focused node.
Definition
editor_overlays.hpp:27
renderer::EditorOverlays::voxel_edges
bool voxel_edges
Lines along the real edges of the voxels.
Definition
editor_overlays.hpp:23
renderer::EditorOverlays::surface_unit_grid
bool surface_unit_grid
1 m lines drawn on the voxel surface
Definition
editor_overlays.hpp:21
renderer::EditorOverlays::surface_voxel_grid
bool surface_voxel_grid
0.1m lines drawn on the voxel surface
Definition
editor_overlays.hpp:22
renderer::EditorOverlays::cut_root
toast::UID cut_root
The voxel the Split and Slice preview is on.
Definition
editor_overlays.hpp:29
renderer::EditorOverlays::volume_edges
bool volume_edges
Lines along the AABB volume for the voxels.
Definition
editor_overlays.hpp:24
renderer::EditorOverlays::projections
bool projections
2D diedrico projections peak dibujo tecnico
Definition
editor_overlays.hpp:25
toast::UID
Definition
uid.hpp:20
uid.hpp
Unique identifier for everything that exists in our engine.
engine
src
toast
renderer
editor_overlays.hpp
Generated by
1.17.0