20 #ifndef ANTKEEPER_GAME_TERRAIN_SYSTEM_HPP
21 #define ANTKEEPER_GAME_TERRAIN_SYSTEM_HPP
43 virtual void update(
float t,
float dt);
62 [[nodiscard]] std::unique_ptr<render::model> generate_terrain_model(
const geom::brep_mesh& mesh, std::shared_ptr<render::material> material,
const math::uvec2& quad_dimensions)
const;
Boundary representation (B-rep) of a mesh.
Generates terrain patches and performs terrain patch LOD selection.
terrain_system(entity::registry ®istry)
entity::id generate(std::shared_ptr< gl::image_2d > heightmap, const math::uvec2 &subdivisions, const math::transform< float > &transform, std::shared_ptr< render::material > material)
Generates terrain entities from a heightmap.
virtual void update(float t, float dt)
Perform's a system's update() function.
Abstract base class for updatable systems.
entity::registry & registry
Registry on which the system operate.
entt::registry registry
Component registry type.
entt::entity id
Entity ID type.