le2d v0.4.3
2D game engine framework
 
Loading...
Searching...
No Matches
le::drawable::Figure< Type > Class Template Reference

Base class for Figures using a single Render Instance. More...

#include <le2d/drawable/figure.hpp>

Inheritance diagram for le::drawable::Figure< Type >:
le::SingleDrawPrimitive< FigureBase< Type > > le::RenderInstance

Public Member Functions

auto bounding_rect () const -> kvf::Rect<>
 
- Public Member Functions inherited from le::SingleDrawPrimitive< FigureBase< Type > >
auto get_instances () const -> std::span< RenderInstance const > final
 

Additional Inherited Members

- Public Attributes inherited from le::RenderInstance
Transform transform {}
 
kvf::Color tint {kvf::white_v}
 

Detailed Description

template<std::derived_from< IGeometry > Type>
class le::drawable::Figure< Type >

Base class for Figures using a single Render Instance.

Member Function Documentation

◆ bounding_rect()

template<std::derived_from< IGeometry > Type>
auto le::drawable::Figure< Type >::bounding_rect ( ) const -> kvf::Rect<>
inline
Returns
Bounding rect of this figure in world space.

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