add Window.DefaultShader

This commit is contained in:
faiface 2016-12-17 12:37:28 +01:00
parent 1c8297b7ab
commit 947cb02f8c
1 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,11 @@ func (w *Window) Update() {
})
}
// DefaultShader returns the default shader used by a window.
func (w *Window) DefaultShader() *pixelgl.Shader {
return w.defaultShader
}
// SetTitle changes the title of a window.
func (w *Window) SetTitle(title string) {
pixelgl.Do(func() {