mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 06:40:28 +00:00
Fixed bug in text renderer, upgraded to GLFW 3.2, added fullscreen and FPS limitation.
This commit is contained in:
4
text.go
4
text.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user