#include <le2d/shape/quad.hpp>
Public Member Functions | |
| auto | get_indices () const -> std::span< std::uint32_t const > final |
| auto | get_topology () const -> vk::PrimitiveTopology final |
Public Member Functions inherited from le::shape::IQuad | |
| explicit (false) IQuad(glm | |
| auto | get_vertices () const -> std::span< Vertex const > final |
| void | create (glm::vec2 size=default_size_v) |
| void | create (kvf::Rect<> const &rect, kvf::UvRect const &uv=kvf::uv_rect_v, kvf::Color color=kvf::white_v) |
| auto | get_rect () const -> kvf::Rect<> |
| auto | get_uv () const -> kvf::UvRect |
| auto | get_size () const -> glm::vec2 |
| auto | get_origin () const -> glm::vec2 |
Static Public Attributes | |
| static constexpr auto | indices_v = std::array{0u, 1u, 2u, 2u, 3u, 0u} |
Static Public Attributes inherited from le::shape::IQuad | |
| static constexpr std::size_t | vertex_count_v {4} |
| static constexpr auto | default_size_v = glm::vec2{default_length_v} |
Static Public Attributes inherited from le::IGeometry | |
| static constexpr auto | default_length_v {200.0f} |
Quad Geometry.
|
inlinefinalvirtual |
Implements le::IGeometry.
|
inlinefinalvirtual |
Implements le::IGeometry.
|
staticconstexpr |