Line rectangle Geometry. (Quad outline.)
More...
#include <le2d/shape/quad.hpp>
|
| auto | get_indices () const -> std::span< std::uint32_t const > final |
| |
| auto | get_topology () const -> vk::PrimitiveTopology final |
| |
| auto | get_vertices () const -> std::span< Vertex const > final |
| |
| void | create (glm::vec2 const size=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 constexpr auto | indices_v = std::array{0u, 1u, 2u, 3u, 0u} |
| |
| static constexpr std::size_t | vertex_count_v {4} |
| |
| static constexpr auto | size_v = glm::vec2{200.0f} |
| |
Line rectangle Geometry. (Quad outline.)
◆ get_indices()
| auto le::shape::LineRect::get_indices |
( |
| ) |
const -> std::span<std::uint32_t const> |
|
inlinefinalvirtual |
◆ get_topology()
| auto le::shape::LineRect::get_topology |
( |
| ) |
const -> vk::PrimitiveTopology |
|
inlinefinalvirtual |
◆ indices_v
| constexpr auto le::shape::LineRect::indices_v = std::array{0u, 1u, 2u, 3u, 0u} |
|
staticconstexpr |
The documentation for this class was generated from the following file: