func CreateWindow(title string, width, height uint32, near, far, fov float32) {
	glfw.WindowHint(glfw.Resizable, glfw.False)
	glfw.WindowHint(glfw.ContextVersionMajor, 4)
	glfw.WindowHint(glfw.ContextVersionMinor, 5)
	glfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)
	glfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)
	window, err := glfw.CreateWindow(int(width), int(height), title, nil, nil)
	if err != nil {
		panic(err)
	}
	Window = w{width, height, near, far, fov, window}

	messagebus.RegisterType("key", handleEscape)
}
// CreateWindow instantiates and opens a new window with opengl. This is stored in the global package variable.
CreateWindow instantiates and opens a new window with opengl. This is stored in the global package variable.
// CreateWindow instantiates and opens a new window with opengl . This is stored in the global package variable .
func CreateWindow(title string, width, height uint32, near, far, fov float32) {
	glfw.WindowHint(glfw.Resizable, glfw.False)
	glfw.WindowHint(glfw.ContextVersionMajor, 4)
	glfw.WindowHint(glfw.ContextVersionMinor, 5)
	glfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)
	glfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)
	window, err := glfw.CreateWindow(int(width), int(height), title, nil, nil)
	if err != nil {
		panic(err)
	}
	Window = w{width, height, near, far, fov, window}
	messagebus.RegisterType("key", handleEscape)
}
func CreateWindow ( title string , width , height uint32 , near , far , fov float32 ) { glfw . WindowHint ( glfw . Resizable , glfw . False ) glfw . WindowHint ( glfw . ContextVersionMajor , 4 ) glfw . WindowHint ( glfw . ContextVersionMinor , 5 ) glfw . WindowHint ( glfw . OpenGLProfile , glfw . OpenGLCoreProfile ) glfw . WindowHint ( glfw . OpenGLForwardCompatible , glfw . True ) window , err := glfw . CreateWindow ( int ( width ) , int ( height ) , title , nil , nil ) if err != nil { panic ( err ) } Window = w { width , height , near , far , fov , window } messagebus . RegisterType ( " " , handleEscape ) }
CreateWindow instantiates and opens a new window with opengl.
CreateWindow instantiates and opens a new window with opengl .