summaryrefslogtreecommitdiff
path: root/demo/main.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-12-18 20:20:26 -0600
committersanine-a <sanine.not@pm.me>2020-12-18 20:20:26 -0600
commit91b914bc0eb97a76f2c3a1caa64fdfde29ca16a1 (patch)
treebf038b561eb80461c4b902ff350b813e4b48699d /demo/main.lua
parent1b7a7a0d83353c9d4e67387d864011b1556330eb (diff)
add draw filtering and alpha to SpatialShader output
Diffstat (limited to 'demo/main.lua')
-rw-r--r--demo/main.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/demo/main.lua b/demo/main.lua
index f60c345..f28510c 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -19,14 +19,15 @@ end)
local tex = honey.texture.load('lowres.png',
{minFilter='nearest', magFilter='nearest'})
-local cairo = honey.cairo()
+local cairo = honey.cairo({minFilter='nearest', magFilter='nearest'})
cairo:setColor(1, 1, 1)
cairo:moveTo(1024,0)
cairo:lineTo(0,1024)
cairo:stroke()
-cairo:setLineWidth(20);
-cairo:arc(512, 512, 256);
+cairo:setLineWidth(20)
+cairo:setColor(0,0,0)
+cairo:arc(512, 512, 256)
cairo:stroke()
cairo:updateTexture()
@@ -82,7 +83,6 @@ function honey.update(dt)
sceneRoot:updateCascade(dt)
if total_time > 1 then
print('FPS: '..tostring(total_frames/total_time))
- print(cairo)
total_time = 0
total_frames = 0
end