summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/gl-window0
-rw-r--r--demo/honey.lua6
2 files changed, 6 insertions, 0 deletions
diff --git a/demo/gl-window b/demo/gl-window
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/demo/gl-window
diff --git a/demo/honey.lua b/demo/honey.lua
index b0b3ec4..3388b52 100644
--- a/demo/honey.lua
+++ b/demo/honey.lua
@@ -121,6 +121,12 @@ gl.EnableVertexAttribArray(2)
local texture = gl.GenTextures()
gl.BindTexture(gl.TEXTURE_2D, texture)
+gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT)
+gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT)
+
+gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR)
+gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR)
+
local image, width, height = honey.image.load('container.jpg', 3)
gl.TexImage2D(
gl.TEXTURE_2D, 0,