4#include <kvf/color.hpp>
26 [[nodiscard]]
auto get_indices() const -> std::span<std::uint32_t const> final {
return m_verts.
indices; }
27 [[nodiscard]]
auto get_topology() const -> vk::PrimitiveTopology final {
return vk::PrimitiveTopology::eTriangleFan; }
31 [[nodiscard]]
auto get_diameter() const ->
float {
return m_diameter; }
Interface for drawable geometry.
Definition geometry.hpp:9
virtual auto get_vertices() const -> std::span< Vertex const >=0
static constexpr auto default_length_v
Definition geometry.hpp:11
virtual auto get_indices() const -> std::span< std::uint32_t const >=0
virtual auto get_topology() const -> vk::PrimitiveTopology=0
Sector Geometry.
Definition sector.hpp:17
SectorParams Params
Definition sector.hpp:19
static constexpr auto default_diameter_v
Definition sector.hpp:21
SectorParams const & params
Definition sector.hpp:23
auto get_size() const -> glm::vec2
Definition sector.hpp:32
auto get_diameter() const -> float
Definition sector.hpp:31
auto get_vertex_array() const -> VertexArray const &
Definition sector.hpp:34
Drawable vertex array.
Definition vertex_array.hpp:9
std::vector< Vertex > vertices
Definition vertex_array.hpp:10
std::vector< std::uint32_t > indices
Definition vertex_array.hpp:11
Drawable vertex.
Definition vertex.hpp:7
Sector creation parameters.
Definition sector.hpp:9
kvf::Color color
Definition sector.hpp:10
float degrees_begin
Definition sector.hpp:12
float degrees_end
Definition sector.hpp:13
std::int32_t resolution
Definition sector.hpp:11