Toast Engine
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
14namespace toast {
15class VoxelPiece;
16}
17
18namespace renderer {
19
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
28
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;
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]]
49TOAST_API auto editorOverlays() -> EditorOverlays&;
50
51}
Definition voxel_piece.hpp:41
Definition editor_overlays.hpp:20
uint8_t tool_box_kind
0 fill, 1 carve, 2 paint, 3 outline only
Definition editor_overlays.hpp:38
glm::vec4 cut_plane
red is where the normal points
Definition editor_overlays.hpp:31
bool tool_box2_active
A second outline, Extrude shows both parts of the face it is splitting.
Definition editor_overlays.hpp:42
toast::VoxelPiece * tool_piece
Draws the preview with the script new volumes get.
Definition editor_overlays.hpp:39
toast::UID selected
Focused node.
Definition editor_overlays.hpp:27
bool voxel_edges
Lines along the real edges of the voxels.
Definition editor_overlays.hpp:23
bool surface_unit_grid
1 m lines drawn on the voxel surface
Definition editor_overlays.hpp:21
bool surface_voxel_grid
0.1m lines drawn on the voxel surface
Definition editor_overlays.hpp:22
toast::UID cut_root
The voxel the Split and Slice preview is on.
Definition editor_overlays.hpp:29
bool volume_edges
Lines along the AABB volume for the voxels.
Definition editor_overlays.hpp:24
bool projections
2D diedrico projections peak dibujo tecnico
Definition editor_overlays.hpp:25
Definition uid.hpp:20
Unique identifier for everything that exists in our engine.