working on class sections

This commit is contained in:
2021-04-17 23:46:14 +02:00
parent 2330820a15
commit e9ff516b1d
18 changed files with 329 additions and 6375 deletions

View File

@@ -2,21 +2,19 @@
#include "text2.h"
// Constructor
Text2::Text2()
Text2::Text2(LTexture *texture, SDL_Renderer *renderer) : Text(texture, renderer)
{
init(nullptr, nullptr, 0, 0);
}
// Destructor
Text2::~Text2()
{
init(nullptr, nullptr, 0, 0);
}
// Inicializador
void Text2::init(LTexture *texture, SDL_Renderer *renderer, Uint8 type, Uint8 size)
void Text2::init(Uint8 type, Uint8 size)
{
Text::init(texture, renderer, type, size);
Text::init(type, size);
mPosX = 0;
mPosY = 0;
mKerning = 0;