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

Base class for drawable Figure. More...

#include <le2d/drawable/figure.hpp>

Inheritance diagram for le::drawable::FigureBase< Type >:
le::drawable::IFigure le::IDrawPrimitive le::IDrawable

Public Member Functions

auto to_primitive () const -> Primitive final
 
- Public Member Functions inherited from le::IDrawPrimitive
virtual auto get_instances () const -> std::span< RenderInstance const >=0
 
void draw (IRenderer &renderer) const final
 

Public Attributes

ITextureBase const * texture {}
 

Detailed Description

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

Base class for drawable Figure.

Member Function Documentation

◆ to_primitive()

template<std::derived_from< IGeometry > Type>
auto le::drawable::FigureBase< Type >::to_primitive ( ) const -> Primitive
inlinefinalvirtual

Implements le::IDrawPrimitive.

Member Data Documentation

◆ texture

template<std::derived_from< IGeometry > Type>
ITextureBase const* le::drawable::FigureBase< Type >::texture {}

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