Sector Geometry.
More...
#include <le2d/shape/sector.hpp>
◆ Params
◆ explicit()
| le::shape::Sector::explicit |
( |
false |
| ) |
const |
|
default |
◆ get_diameter()
| auto le::shape::Sector::get_diameter |
( |
| ) |
const -> float |
|
inline |
◆ get_size()
| auto le::shape::Sector::get_size |
( |
| ) |
const -> glm::vec2 |
|
inline |
◆ get_vertex_array()
| auto le::shape::Sector::get_vertex_array |
( |
| ) |
const -> VertexArray const& |
|
inline |
◆ default_diameter_v
◆ params
Initial value:= {}) { create(diameter,
params); }
auto get_indices() const -> std::span<std::uint32_t const> final {
return m_verts.
indices; }
auto get_topology() const -> vk::PrimitiveTopology final {
return vk::PrimitiveTopology::eTriangleFan; }
virtual auto get_vertices() const -> std::span< Vertex const >=0
virtual auto get_indices() const -> std::span< std::uint32_t const >=0
virtual auto get_topology() const -> vk::PrimitiveTopology=0
SectorParams Params
Definition sector.hpp:19
static constexpr auto default_diameter_v
Definition sector.hpp:21
SectorParams const & params
Definition sector.hpp:23
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
The documentation for this class was generated from the following file: