From ecfd781f73e0ef78b4d6f8bd82b17a0348ce735a Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 15 Dec 2020 20:23:47 -0600 Subject: refactor textures and allow parameter setting --- demo/main.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'demo') diff --git a/demo/main.lua b/demo/main.lua index 6aa5775..b956d04 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -11,8 +11,7 @@ honey.input.key.bind(honey.input.key.escape, honey.exit) local buffer = false honey.input.key.bind(honey.input.key.f, function(action) if action == 1 then buffer = not buffer end end) -local tex = honey.texture.new() -tex:load('checkerboard.png', false) +local tex = honey.texture.load('checkerboard.png') local sceneRoot = Node.new() -- cgit v1.2.1