I need some help with drawing text to the screen. At the moment I have a function that can draw one individual character, and it works very well.
I use this to draw one character:
Code: Select all
InternalDrawCharacter(Point position, int characterWidth, int characterArraySize, Color drawColor, int* character);
Let's just begin with:
Code: Select all
void DrawText(string text, Color colorText, Point position)
{
for(int i = 0; i < stringLength(text); i++)
{
DrawCharacterMethodIneed(position, color, text[i]);
}
}