Allow the windows to be resizeable

This commit is contained in:
2018-12-30 23:19:21 +00:00
parent 73804519b0
commit 6f3ed56b99

View File

@@ -22,9 +22,10 @@ type Window struct {
// To invert things so 0,0 is the *top left*, apply the InvertY` matrix
func NewWindow(title string) (*Window, error) {
cfg := pixelgl.WindowConfig{
Title: title,
Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)),
VSync: true,
Title: title,
Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)),
VSync: true,
Resizable: true,
}
pixelWindow, err := pixelgl.NewWindow(cfg)