KaijuSaveEarth/src/ui/UIText.h

33 lines
690 B
C++

/*
* UIText.h
*
* Created on: May 21, 2020
* Author: ayoungblood
*/
#ifndef SRC_UITEXT_H_
#define SRC_UITEXT_H_
#include "SDL2/SDL.h"
#include <iostream>
class UIText
{
public:
std::string inputText;
int letterHeight;
int letterWidth;
int posX;
int posY;
std::string textureID;
UIText(std::string inputText, std::string texID, int x, int y, int letterW, int letterH, int lScale);
~UIText();
// void SetCharClips(SDL_Texture* fontTex, int x, int y, int letterW, int letterH);
void AddLetter(int xpos, int ypos, char crnt, std::string tag);
void ParseString(std::string inputText, int x, int y, int scale, std::string tag);
int scale;
};
#endif /* SRC_UITEXT_H_ */