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

Base class for Draw Primitives using a single Render Instance. More...

#include <le2d/drawable/draw_primitive.hpp>

Inheritance diagram for le::SingleDrawPrimitive< Type >:
le::RenderInstance

Public Member Functions

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< IDrawPrimitive > Type>
class le::SingleDrawPrimitive< Type >

Base class for Draw Primitives using a single Render Instance.

Member Function Documentation

◆ get_instances()

template<std::derived_from< IDrawPrimitive > Type>
auto le::SingleDrawPrimitive< Type >::get_instances ( ) const -> std::span<RenderInstance const>
inlinefinal

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