OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
landscape.h
Go to the documentation of this file.
1#pragma once
2
3#include <Tempest/Device>
4#include <Tempest/Matrix4x4>
5#include <Tempest/UniformBuffer>
6
9
10class PackedMesh;
11
12class Landscape final {
13 public:
14 Landscape(VisualObjects& visual, const PackedMesh& wmesh);
15
16 const Tempest::StorageBuffer& bvh() const { return bvhNodes; }
17
18 private:
20
21 struct Block {
22 Item mesh;
23 };
24
25 std::vector<Block> blocks;
26 StaticMesh mesh;
27 Tempest::StorageBuffer meshletDesc;
28
29 Tempest::StorageBuffer bvhNodes;
30 };
Definition item.h:14
const Tempest::StorageBuffer & bvh() const
Definition landscape.h:16