working on new font engine

This commit is contained in:
2021-08-26 13:59:25 +02:00
parent 5768c1f7a2
commit e93aba2522
11 changed files with 160 additions and 176 deletions

View File

@@ -2,7 +2,7 @@
#include "text2.h"
// Constructor
Text2::Text2(LTexture *texture, SDL_Renderer *renderer) : Text(texture, renderer)
Text2::Text2(std::string file, LTexture *texture, SDL_Renderer *renderer) : Text(file, texture, renderer)
{
}
@@ -12,9 +12,9 @@ Text2::~Text2()
}
// Inicializador
void Text2::init(Uint8 type, Uint8 size)
void Text2::init()
{
Text::init(type, size);
Text::init();
mPosX = 0;
mPosY = 0;
mKerning = 0;