Fixed bug in text renderer, upgraded to GLFW 3.2, added fullscreen and FPS limitation.

This commit is contained in:
Marvin Blum
2016-08-08 21:35:01 +02:00
parent 3c1fb484b9
commit 092ad543e5
4 changed files with 49 additions and 19 deletions

View File

@@ -414,6 +414,10 @@ func (r *TextRenderer) GetName() string {
// Renders texts.
func (r *TextRenderer) Update(delta float64) {
if r.Font == nil {
return
}
r.Shader.Bind()
r.Shader.SendMat3(Default_shader_text_ortho, *MultMat3(r.Camera.CalcOrtho(), r.CalcModel()))
r.Shader.SendUniform1i(Default_shader_text_tex, 0)