le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::IDrawPrimitive Class Referenceabstract

Interface for drawable primitives. More...

#include <le2d/drawable/draw_primitive.hpp>

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

Public Member Functions

virtual auto get_instances () const -> std::span< RenderInstance const >=0
 
virtual auto to_primitive () const -> Primitive=0
 
void draw (IRenderer &renderer) const final
 

Detailed Description

Interface for drawable primitives.

Member Function Documentation

◆ draw()

void le::IDrawPrimitive::draw ( IRenderer renderer) const
inlinefinalvirtual

Implements le::IDrawable.

◆ get_instances()

virtual auto le::IDrawPrimitive::get_instances ( ) const -> std::span< RenderInstance const >
pure virtual

◆ to_primitive()

virtual auto le::IDrawPrimitive::to_primitive ( ) const -> Primitive
pure virtual

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