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

Base class for Draw Primitives using a vector of Render Instances. More...

#include <le2d/drawable/draw_primitive.hpp>

Inheritance diagram for le::InstancedDrawPrimitive< Type >:

Public Member Functions

auto get_instances () const -> std::span< RenderInstance const > final
 

Public Attributes

std::vector< RenderInstanceinstances {}
 

Detailed Description

template<std::derived_from< IDrawPrimitive > Type>
class le::InstancedDrawPrimitive< Type >

Base class for Draw Primitives using a vector of Render Instances.

Member Function Documentation

◆ get_instances()

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

Member Data Documentation

◆ instances

template<std::derived_from< IDrawPrimitive > Type>
std::vector<RenderInstance> le::InstancedDrawPrimitive< Type >::instances {}

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