Skip to content

Commit 757410f

Browse files
committed
Samll additions to the text renderer
1 parent c97346a commit 757410f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/GUI/TextRenderer.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ namespace zap
166166
i_scale_y = scale_y;
167167
}
168168

169+
void Text::EnableRequriedOpenGLSettings()
170+
{
171+
glEnable(GL_BLEND);
172+
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
173+
}
174+
169175
void Text::SetTextureFilter(zap::TextureFilters filter)
170176
{
171177
i_texture_filter = filter;

‎src/GUI/TextRenderer.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace zap
6565
void SetColor(float RED, float GREEN, float BLUE);
6666
void SetScale(float scale_x, float scale_y);
6767

68+
void EnableRequriedOpenGLSettings();
69+
6870
void SetTextureFilter(zap::TextureFilters filter);
6971
void SetMipmapSettings(zap::MipmapSettings setting);
7072

0 commit comments

Comments
 (0)