2D_Game_Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TextComponent Class Reference

#include <entity.hpp>

Public Member Functions

 TextComponent ()
 
 TextComponent (uint32_t uid)
 
 TextComponent (std::shared_ptr< TextRenderer > textRenderer, const std::string &text, Vec2 offset, Vec3 color, float scale, uint32_t uid)
 
 TextComponent (const std::string &path, float glyph_size, bool fixed, uint32_t uid)
 
 TextComponent (const std::string &path, float glyph_size, bool fixed, const std::string &text, Vec2 offset, Vec3 color, float scale, int layer, bool ignore_lighting, uint32_t uid)
 
 TextComponent (const TextComponent &other)
 
 TextComponent (TextComponent &&other)
 
TextComponentoperator= (const TextComponent &other)
 
TextComponentoperator= (TextComponent &&other)
 
void SetCentered (float width, float height)
 

Public Attributes

std::shared_ptr< TextRendererm_TextRenderer
 
std::string m_Text
 
Vec2 m_Offset
 
Vec3 m_Color
 
float m_Scale
 
int m_Layer
 
bool m_IgnoreLighting
 
uint32_t m_UID
 

Detailed Description

Definition at line 291 of file entity.hpp.

Constructor & Destructor Documentation

◆ TextComponent() [1/7]

TextComponent::TextComponent ( )
inline

Definition at line 293 of file entity.hpp.

◆ TextComponent() [2/7]

TextComponent::TextComponent ( uint32_t uid)
inline

Definition at line 294 of file entity.hpp.

◆ TextComponent() [3/7]

TextComponent::TextComponent ( std::shared_ptr< TextRenderer > textRenderer,
const std::string & text,
Vec2 offset,
Vec3 color,
float scale,
uint32_t uid )
inline

Definition at line 295 of file entity.hpp.

◆ TextComponent() [4/7]

TextComponent::TextComponent ( const std::string & path,
float glyph_size,
bool fixed,
uint32_t uid )
inline

Definition at line 299 of file entity.hpp.

◆ TextComponent() [5/7]

TextComponent::TextComponent ( const std::string & path,
float glyph_size,
bool fixed,
const std::string & text,
Vec2 offset,
Vec3 color,
float scale,
int layer,
bool ignore_lighting,
uint32_t uid )
inline

Definition at line 300 of file entity.hpp.

◆ TextComponent() [6/7]

TextComponent::TextComponent ( const TextComponent & other)

Definition at line 145 of file entity.cpp.

◆ TextComponent() [7/7]

TextComponent::TextComponent ( TextComponent && other)

Definition at line 156 of file entity.cpp.

Member Function Documentation

◆ operator=() [1/2]

TextComponent & TextComponent::operator= ( const TextComponent & other)

Definition at line 167 of file entity.cpp.

◆ operator=() [2/2]

TextComponent & TextComponent::operator= ( TextComponent && other)

Definition at line 179 of file entity.cpp.

◆ SetCentered()

void TextComponent::SetCentered ( float width,
float height )

Definition at line 191 of file entity.cpp.

Member Data Documentation

◆ m_Color

Vec3 TextComponent::m_Color

Definition at line 315 of file entity.hpp.

◆ m_IgnoreLighting

bool TextComponent::m_IgnoreLighting

Definition at line 318 of file entity.hpp.

◆ m_Layer

int TextComponent::m_Layer

Definition at line 317 of file entity.hpp.

◆ m_Offset

Vec2 TextComponent::m_Offset

Definition at line 314 of file entity.hpp.

◆ m_Scale

float TextComponent::m_Scale

Definition at line 316 of file entity.hpp.

◆ m_Text

std::string TextComponent::m_Text

Definition at line 313 of file entity.hpp.

◆ m_TextRenderer

std::shared_ptr<TextRenderer> TextComponent::m_TextRenderer

Definition at line 312 of file entity.hpp.

◆ m_UID

uint32_t TextComponent::m_UID

Definition at line 319 of file entity.hpp.


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