From dccc9bef56d51c5cad13c2568c5a3b97f637fd6e Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 10:45:52 -0500 Subject: refactor: move drawing code into separate file --- demo/honey.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'demo') diff --git a/demo/honey.lua b/demo/honey.lua index 0a4758a..fce264c 100644 --- a/demo/honey.lua +++ b/demo/honey.lua @@ -87,12 +87,12 @@ gl.bindBuffer(gl.bufferTarget.arrayBuffer, 0) if gl.getError() ~= gl.errorType.noError then error(gl.getError()) end while not window.shouldClose(w) do - gl.setClearColor(0.2, 0.3, 0.3, 1.0) - gl.clear(gl.bufferMask.colorBuffer); + gl.draw.setClearColor(0.2, 0.3, 0.3, 1.0) + gl.draw.clear(gl.draw.bufferMask.colorBuffer); gl.shader.use(shader) gl.bindVertexArray(vertexArray) - gl.drawArrays(gl.primitiveType.triangles, 0, 3) + gl.draw.drawArrays(gl.draw.primitiveType.triangles, 0, 3) window.swapBuffers(w) window.pollEvents() -- cgit v1.2.1