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

Circle Geometry. More...

#include <le2d/shape/circle.hpp>

Inheritance diagram for le::shape::Circle:
le::IGeometry

Public Member Functions

auto get_vertices () const -> std::span< Vertex const > final
 
auto get_indices () const -> std::span< std::uint32_t const > final
 
auto get_topology () const -> vk::PrimitiveTopology final
 
void create (float diameter, kvf::Color color=kvf::white_v, std::int32_t resolution=128)
 
auto get_diameter () const -> float
 
auto get_size () const -> glm::vec2
 
auto get_vertex_array () const -> VertexArray const &
 

Detailed Description

Circle Geometry.

Member Function Documentation

◆ create()

void le::shape::Circle::create ( float  diameter,
kvf::Color  color = kvf::white_v,
std::int32_t  resolution = 128 
)

◆ get_diameter()

auto le::shape::Circle::get_diameter ( ) const -> float
inline

◆ get_indices()

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

Implements le::IGeometry.

◆ get_size()

auto le::shape::Circle::get_size ( ) const -> glm::vec2
inline

◆ get_topology()

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

Implements le::IGeometry.

◆ get_vertex_array()

auto le::shape::Circle::get_vertex_array ( ) const -> VertexArray const&
inline

◆ get_vertices()

auto le::shape::Circle::get_vertices ( ) const -> std::span<Vertex const>
inlinefinalvirtual

Implements le::IGeometry.


The documentation for this class was generated from the following file: