#pragma once

#include "GameCore.h"
#include "SpriteStamp.h"

class TextImage
{
public:
	TextImage(void);
	void init( int textureId, int AlphabetWidth, int AlphabetHeight, int LettersPerRow, int LetterWidth, int LetterHeight );
	~TextImage(void);
	bool isLoaded();         // tell if alphabet is loaded
	int getLettersPerRow();  // return letters per row
	int getLetterWidth();    // return letter width
	int getLetterHeight();   // return letter height
	int getTextureId();      // return texture id of alphabet
    SpriteStamp* getSpriteStamp();

private:
	int alphabetWidth;      // The width of the Alphabet image
	int alphabetHeight;     // The height of the Alphabet image
	int letterWidth;        // The width of the letter
	int letterHeight;       // The height of the letter
	int lettersPerRow;      // The number of letters per row

	int textureId;          // the texture id

	// Has the alphabet bitmap been loaded yet?
	bool alphabetLoaded;

    SpriteStamp* textStamp; // the sprite stamp
};

