diff options
Diffstat (limited to 'demo/honey.lua')
-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() |