charcoal/OpenGLEngine/ImageFont.h

20 lines
412 B
C++

#pragma once
#include <map>
#include "ImageLoader.h"
#include "Rect.h"
#include "Font.h"
namespace charcoal
{
class ImageFont : public Font
{
public:
ImageFont(const image_loader::ImageRGBA& image, std::map<char, Rectangle<int>> character_locations);
protected:
const image_loader::ImageRGBA& get_character(char character);
private:
std::map<char, image_loader::ImageRGBA> m_character_images;
};
}