add Window.DefaultShader
This commit is contained in:
parent
1c8297b7ab
commit
947cb02f8c
|
@ -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.
|
// SetTitle changes the title of a window.
|
||||||
func (w *Window) SetTitle(title string) {
|
func (w *Window) SetTitle(title string) {
|
||||||
pixelgl.Do(func() {
|
pixelgl.Do(func() {
|
||||||
|
|
Loading…
Reference in New Issue