aneury1 / DOEngine

Another Game Engine, by now only use SDL2 and its dependent family library but we planning to use other librarys like SFML or allegro5 to create Drawing Context (opengl ,Vulkan or metal).
0 stars 2 forks source link

Refactor TTFText class #19

Open victordmontero opened 7 months ago

victordmontero commented 7 months ago

Scope

As it is right now TTFText class is not completed. This class inherits and implement Font abstract class, though not all methods have implementations, like: init and destroy.

image

The goal of this issue is to implement TTFText::init and TTFText::destroy. Additionally, there is a method that's not implemented yet, named: void TTFText::drawText(const std::string&, int, int). This method should have the same implementation of TTFText::DrawText, which is a concrete method. So, let's replace TTFText::DrawText by moving its implementation to TTFText::drawText (note lower case 'd').

Any other idea is welcome, so feel free to further improve the implementation if it seems appropiate.

DOD