4#include <kvf/color.hpp>
25 [[nodiscard]]
auto get_indices() const -> std::span<std::uint32_t const> final {
return m_verts.
indices; }
26 [[nodiscard]]
auto get_topology() const -> vk::PrimitiveTopology final {
return vk::PrimitiveTopology::eTriangleFan; }
31 [[nodiscard]]
auto get_size() const -> glm::vec2 {
return m_size; }
Interface for drawable geometry.
Definition geometry.hpp:9
static constexpr auto default_length_v
Definition geometry.hpp:11
Super ellipse Geometry.
Definition super_ellipse.hpp:16
auto get_indices() const -> std::span< std::uint32_t const > final
Definition super_ellipse.hpp:25
auto get_topology() const -> vk::PrimitiveTopology final
Definition super_ellipse.hpp:26
auto get_vertex_array() const -> VertexArray const &
Definition super_ellipse.hpp:33
auto get_size() const -> glm::vec2
Definition super_ellipse.hpp:31
static constexpr auto default_size_v
Definition super_ellipse.hpp:20
auto get_params() const -> Params const &
Definition super_ellipse.hpp:30
void create(glm::vec2 size=default_size_v, Params const ¶ms={})
SuperEllipseParams Params
Definition super_ellipse.hpp:18
auto get_vertices() const -> std::span< Vertex const > final
Definition super_ellipse.hpp:24
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
Super Ellipse creation parameters.
Definition super_ellipse.hpp:9
kvf::Color color
Definition super_ellipse.hpp:10
float exponent
Definition super_ellipse.hpp:11
std::int32_t resolution
Definition super_ellipse.hpp:12