first commit

This commit is contained in:
2021-01-29 21:14:20 -05:00
commit b2acceb4b9
78 changed files with 6774 additions and 0 deletions

32
src/ui/UIText.h Normal file
View File

@ -0,0 +1,32 @@
/*
* 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:
const char* inputText;
int letterHeight;
int letterWidth;
int posX;
int posY;
std::string textureID;
UIText(const char* 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);
void ParseString(const char* inputText, int x, int y, int scale);
int scale;
};
#endif /* SRC_UITEXT_H_ */