1 parent c97346a commit 757410fCopy full SHA for 757410f
2 files changed
src/GUI/TextRenderer.cpp
@@ -166,6 +166,12 @@ namespace zap
166
i_scale_y = scale_y;
167
}
168
169
+ void Text::EnableRequriedOpenGLSettings()
170
+ {
171
+ glEnable(GL_BLEND);
172
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
173
+ }
174
+
175
void Text::SetTextureFilter(zap::TextureFilters filter)
176
{
177
i_texture_filter = filter;
src/GUI/TextRenderer.h
@@ -65,6 +65,8 @@ namespace zap
65
void SetColor(float RED, float GREEN, float BLUE);
66
void SetScale(float scale_x, float scale_y);
67
68
+ void EnableRequriedOpenGLSettings();
69
70
void SetTextureFilter(zap::TextureFilters filter);
71
void SetMipmapSettings(zap::MipmapSettings setting);
72
0 commit comments