le2d v0.4.6
2D game engine framework
 
Loading...
Searching...
No Matches
le::drawable::TextBase Class Reference

Base class for Text types. More...

#include <le2d/drawable/text.hpp>

Inheritance diagram for le::drawable::TextBase:
le::IDrawPrimitive le::IDrawable

Public Types

using Params = TextParams
 

Public Member Functions

auto to_primitive () const -> Primitive final
 
void set_string (IFont &font, std::string_view line, Params const &params={})
 
auto get_size () const -> glm::vec2
 
auto get_texture () const -> ITexture const *
 
- Public Member Functions inherited from le::IDrawPrimitive
virtual auto get_instances () const -> std::span< RenderInstance const >=0
 
void draw (IRenderer &renderer) const final
 

Detailed Description

Base class for Text types.

Member Typedef Documentation

◆ Params

Member Function Documentation

◆ get_size()

auto le::drawable::TextBase::get_size ( ) const -> glm::vec2
inline

◆ get_texture()

auto le::drawable::TextBase::get_texture ( ) const -> ITexture const*
inline

◆ set_string()

void le::drawable::TextBase::set_string ( IFont font,
std::string_view  line,
Params const &  params = {} 
)

◆ to_primitive()

auto le::drawable::TextBase::to_primitive ( ) const -> Primitive
finalvirtual

Implements le::IDrawPrimitive.


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