#ifndef BITMAPFONT_H
#define BITMAPFONT_H

#include <glm/glm.hpp>
#include <GL/glew.h>
#include <map>
#include <string>

#include "Shader.h"

struct Character {
	GLuint texID;
	glm::ivec2 size;
	glm::ivec2 bearing;
	GLuint advance;
};

class BitmapFont {
	public:
	BitmapFont(std::string fontLocation);
	void drawText(Shader &s, std::string text, GLfloat x, GLfloat y, GLfloat scale, glm::vec3 color);

	private:
	std::map<GLchar, Character> characters;
	GLuint VAO, VBO;
	glm::mat4 projection;
};

#endif
