local glfw = honey.glfw local err = glfw.Init() print(err, glfw.TRUE) if err ~= glfw.TRUE then local err, desc = glfw.GetError() error("failed to initialize glfw: " .. tostring(err)) end local window = glfw.CreateWindow(640, 480, "Hello world c:", nil, nil) glfw.MakeContextCurrent(window) while (glfw.WindowShouldClose(window) ~= glfw.FALSE) do gl.Clear(gl.COLOR_BUFFER_BIT) glfw.SwapBUffers(window) glfw.PollEvents() end glfw.Terminate()