Extracting FontBuffer logic from Font

This commit is contained in:
Dan Paulat 2021-08-07 01:03:41 -05:00
parent f21523d88b
commit ee0f3b35bf
6 changed files with 232 additions and 177 deletions

View file

@ -1,12 +1,12 @@
#pragma once
#include <scwx/qt/util/font_buffer.hpp>
#include <scwx/qt/util/gl.hpp>
#include <memory>
#include <string>
#include <boost/gil.hpp>
#include <glm/glm.hpp>
namespace scwx
{
@ -15,8 +15,6 @@ namespace qt
namespace util
{
class FontBuffer;
class FontImpl;
class Font
@ -44,11 +42,6 @@ public:
static std::shared_ptr<Font> Create(const std::string& resource);
static std::shared_ptr<FontBuffer> CreateBuffer();
static void ClearBuffer(std::shared_ptr<FontBuffer> buffer);
static void RenderBuffer(OpenGLFunctions& gl,
std::shared_ptr<FontBuffer> buffer);
private:
std::unique_ptr<FontImpl> p;
};