diff options
author | sanine <sanine.not@pm.me> | 2022-08-22 10:45:52 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-22 10:45:52 -0500 |
commit | dccc9bef56d51c5cad13c2568c5a3b97f637fd6e (patch) | |
tree | c4c5aaf57e5f76c44fc1c6943c04a5dfd7638c96 /demo | |
parent | 65ad3a58adcfe21690f379ab894a104b3852e3e9 (diff) |
refactor: move drawing code into separate file
Diffstat (limited to 'demo')
-rw-r--r-- | demo/honey.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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() |