Text alignment and point size

This commit is contained in:
Dan Paulat 2021-08-07 08:12:14 -05:00
parent ee0f3b35bf
commit 89ca94eda8
4 changed files with 42 additions and 9 deletions

View file

@ -15,6 +15,13 @@ namespace qt
namespace gl
{
enum class TextAlign
{
Left,
Center,
Right
};
class TextShaderImpl;
class TextShader : public ShaderProgram
@ -37,7 +44,8 @@ public:
const glm::mat4& projection,
const boost::gil::rgba8_pixel_t& color,
std::shared_ptr<util::Font> font,
GLuint textureId);
GLuint textureId,
TextAlign align = TextAlign::Left);
void SetProjection(const glm::mat4& projection);
private: