From 3275ae4948fd2c1bb8da780214cbb741dc3178be Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 12 May 2023 01:16:46 -0500 Subject: begin refactor --- honey/std.lua | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'honey/std.lua') diff --git a/honey/std.lua b/honey/std.lua index d609844..222798c 100644 --- a/honey/std.lua +++ b/honey/std.lua @@ -4,24 +4,15 @@ honey.init = init.init honey.loop = init.loop honey.terminate = init.terminate -nvg = honey.nvg -ode = honey.ode -gl = honey.gl -glfw = honey.glfw +honey.asset = {} +honey.asset.image = require 'honey.asset.image' +honey.asset.mesh = require 'honey.asset.mesh' +honey.asset.shader = require 'honey.asset.shader' honey.ecs = require 'honey.ecs' -honey.mesh = require 'honey.mesh' -honey.shader = require 'honey.shader' -honey.Window = require 'honey.window' - - --- image -local image = require 'honey.image' -for k, v in pairs(image) do - honey.image[k] = v -end +-- glm is so frequently used that we load it globally, not locally local glm = require 'honey.glm' Vec3 = glm.Vec3 Mat4 = glm.Mat4 -- cgit v1.2.1