le2d v0.4.6
2D game engine framework
 
Loading...
Searching...
No Matches
le::shape::LineRect Class Reference

Line rectangle Geometry. (Quad outline.) More...

#include <le2d/shape/quad.hpp>

Inheritance diagram for le::shape::LineRect:
le::shape::IQuad le::IGeometry

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
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 Public Attributes

static constexpr auto indices_v = std::array{0u, 1u, 2u, 3u, 0u}
 
- Static Public Attributes inherited from le::shape::IQuad
static constexpr std::size_t vertex_count_v {4}
 
static constexpr auto size_v = glm::vec2{200.0f}
 

Detailed Description

Line rectangle Geometry. (Quad outline.)

Member Function Documentation

◆ get_indices()

auto le::shape::LineRect::get_indices ( ) const -> std::span<std::uint32_t const>
inlinefinalvirtual

Implements le::IGeometry.

◆ get_topology()

auto le::shape::LineRect::get_topology ( ) const -> vk::PrimitiveTopology
inlinefinalvirtual

Implements le::IGeometry.

Member Data Documentation

◆ 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: