Toast Engine
Loading...
Searching...
No Matches
voxel_render.hpp
Go to the documentation of this file.
1
7
8#pragma once
9
10#include "shape.hpp"
11
12#include <cstdint>
13#include <glm/mat4x4.hpp>
16
17namespace physics {
18
20 ShapeID shape;
21 BodyID body;
22 const voxel::Volume* volume = nullptr;
23 const voxel::Palette* palette = nullptr;
24 glm::mat4 transform {1.0f};
25 uint32_t revision = 0;
26
27 BodyID fragment_origin;
28 bool awake = true;
29 AABB world_bounds {};
30};
31
32}
Definition voxel_volume.hpp:21
Shape identifiers, geometry, and runtime records.
Definition aabb.hpp:16
Definition body.hpp:20
Definition shape.hpp:29
Definition voxel_render.hpp:19
Entry 0 is the empty voxel and must stay all zero.
Definition palette.hpp:59