Toast Engine
Toggle main menu visibility
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>
14
#include <
toast/voxel/palette.hpp
>
15
#include <
toast/voxel/voxel_volume.hpp
>
16
17
namespace
physics {
18
19
struct
VoxelRenderRecord
{
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
}
voxel::Volume
Definition
voxel_volume.hpp:21
palette.hpp
shape.hpp
Shape identifiers, geometry, and runtime records.
physics::AABB
Definition
aabb.hpp:16
physics::BodyID
Definition
body.hpp:20
physics::ShapeID
Definition
shape.hpp:29
physics::VoxelRenderRecord
Definition
voxel_render.hpp:19
voxel::Palette
Entry 0 is the empty voxel and must stay all zero.
Definition
palette.hpp:59
voxel_volume.hpp
engine
src
toast
physics
voxel_render.hpp
Generated by
1.17.0