Allow the windows to be resizeable
This commit is contained in:
@@ -22,9 +22,10 @@ type Window struct {
|
|||||||
// To invert things so 0,0 is the *top left*, apply the InvertY` matrix
|
// To invert things so 0,0 is the *top left*, apply the InvertY` matrix
|
||||||
func NewWindow(title string) (*Window, error) {
|
func NewWindow(title string) (*Window, error) {
|
||||||
cfg := pixelgl.WindowConfig{
|
cfg := pixelgl.WindowConfig{
|
||||||
Title: title,
|
Title: title,
|
||||||
Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)),
|
Bounds: pixel.R(0, 0, float64(*winX), float64(*winY)),
|
||||||
VSync: true,
|
VSync: true,
|
||||||
|
Resizable: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
pixelWindow, err := pixelgl.NewWindow(cfg)
|
pixelWindow, err := pixelgl.NewWindow(cfg)
|
||||||
|
Reference in New Issue
Block a user