158 glDisable(GL_DEPTH_TEST); |
158 glDisable(GL_DEPTH_TEST); |
159 glEnable(GL_BLEND); |
159 glEnable(GL_BLEND); |
160 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
160 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
161 // TODO: see if we can really always ignore the view matrix |
161 // TODO: see if we can really always ignore the view matrix |
162 // TODO: compute render order for alpha blending to work correctly |
162 // TODO: compute render order for alpha blending to work correctly |
163 glUseProgram(ASC_SHADER_FONT.base.id); |
163 glUseProgram(ASC_SHADER_SPRITE.base.id); |
164 glUniformMatrix4fv(ASC_SHADER_FONT.base.projection, 1, |
164 glUniformMatrix4fv(ASC_SHADER_SPRITE.base.projection, 1, |
165 GL_FALSE, camera->projection); |
165 GL_FALSE, camera->projection); |
166 asc_scene_draw_render_group(scene->rg_fonts); |
166 asc_scene_draw_render_group(scene->rg_fonts); |
167 } |
167 } |
168 } |
168 } |
169 |
169 |