summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-09 22:46:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-09 22:46:17 +0200
commita5d5ad64ff97201e2ccf83c1d79008190906ebcd (patch)
treeebde66821202c21d339d2164c14abc0518c8e7f2 /src/chunk-scenery.hpp
parentc04906db429b7c626a753d49e2d64c51135c6039 (diff)
move scenery draw scratch buffers to central place
Diffstat (limited to 'src/chunk-scenery.hpp')
-rw-r--r--src/chunk-scenery.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/chunk-scenery.hpp b/src/chunk-scenery.hpp
index 1363479b..5657b536 100644
--- a/src/chunk-scenery.hpp
+++ b/src/chunk-scenery.hpp
@@ -19,6 +19,7 @@ struct chunk::topo_sort_data
bool intersects(const topo_sort_data& other) const;
};
+
struct chunk::entity_draw_order
{
entity *e;
@@ -26,10 +27,18 @@ struct chunk::entity_draw_order
float ord;
topo_sort_data data;
};
+
struct chunk::scenery_mesh_tuple {
GL::Mesh& mesh;
ArrayView<entity_draw_order> array;
size_t size;
};
+struct chunk::scenery_scratch_buffers
+{
+ Array<entity_draw_order>& array;
+ std::vector<std::array<vertex, 4>>& scenery_vertexes;
+ std::vector<std::array<UnsignedShort, 6>>& scenery_indexes;
+};
+
} // namespace floormat