local glfw = honey.glfw local gl = honey.gl local window = require 'honey.window' local hinit = {} setmetatable(hinit, {__index=_G}) setfenv(1, hinit) function init(width, height, title) local width = width or 640 local height = height or 480 local title = title or "honey3d" glfw.Init() local window = honey.Window(width, height, title) glfw.MakeContextCurrent(window.win) gl.InitGlad() return window end function terminate() glfw.Terminate() end return hinit