Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Text Class Reference

Public Member Functions

 Text (const std::string &text, float x, float y, float scale, Color color, tenno::shared_ptr< Font > font)
 
void render (int width, int height) const
 

Data Fields

std::string text
 
float x
 
float y
 
float scale
 
Color color
 
tenno::shared_ptr< Fontfont
 

Detailed Description

Definition at line 19 of file text.hpp.

Constructor & Destructor Documentation

◆ Text()

brenta::Text::Text ( const std::string &  text,
float  x,
float  y,
float  scale,
Color  color,
tenno::shared_ptr< Font font 
)
inline

Definition at line 31 of file text.hpp.

Member Function Documentation

◆ render()

void Text::render ( int  width,
int  height 
) const

Definition at line 16 of file text.cpp.

Field Documentation

◆ color

Color brenta::Text::color

Definition at line 27 of file text.hpp.

◆ font

tenno::shared_ptr<Font> brenta::Text::font

Definition at line 28 of file text.hpp.

◆ scale

float brenta::Text::scale

Definition at line 26 of file text.hpp.

◆ text

std::string brenta::Text::text

Definition at line 23 of file text.hpp.

◆ x

float brenta::Text::x

Definition at line 24 of file text.hpp.

◆ y

float brenta::Text::y

Definition at line 25 of file text.hpp.


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