first commit
This commit is contained in:
32
src/ui/UIText.h
Normal file
32
src/ui/UIText.h
Normal 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_ */
|
Reference in New Issue
Block a user