mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 07:20:05 +00:00
Text alignment and point size
This commit is contained in:
parent
ee0f3b35bf
commit
89ca94eda8
4 changed files with 42 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue