ST_engine  0.3-ALPHA
Public Member Functions | Public Attributes | List of all members
ST::text Struct Reference

This struct represents text objects in the game. More...

#include <text.hpp>

Public Member Functions

 text (int32_t x, int32_t y, SDL_Color color, const std::string &text_string, uint16_t font)
 

Public Attributes

std::string text_string
 
int32_t x
 
int32_t y
 
SDL_Color color {}
 
uint16_t font
 
bool is_visible = true
 
uint8_t padding {}
 

Detailed Description

This struct represents text objects in the game.

It is used for any user-defined or game-specific text. (So not the fps counter, console text, etc.).

Definition at line 23 of file text.hpp.

Constructor & Destructor Documentation

◆ text()

ST::text::text ( int32_t  x,
int32_t  y,
SDL_Color  color,
const std::string &  text_string,
uint16_t  font 
)

Constructor for the text objects.

Parameters
xThe X position.
yThe Y position.
colorThe color of the text (RGBA).
text_stringThe text itself.
fontThe font to use (Must be already loaded).

Definition at line 20 of file text.cpp.


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