From 1a2213f39cba204a7d14c3853ba53ad280ab6b00 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 17 Sep 2010 16:47:43 +0000 Subject: [PATCH] added a test box with a partly transparent texture git-svn-id: svn://anubis/anaglym/trunk@315 99a6e188-d820-4881-8870-2d33a10e2619 --- tests/imagetest.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/imagetest.lua b/tests/imagetest.lua index 47804e5..18bf733 100644 --- a/tests/imagetest.lua +++ b/tests/imagetest.lua @@ -4,6 +4,9 @@ function init_event() image = ag.loadTexture("transparent.png") local crate = ag.loadModel("crate", {static = true}) ag.setCamera(5, -5, 5) + local box = ag.createBox(1, 1, 1, {enable_blending = true}) + box:setPosition(0, 0, 3) + box:setTexture(image) end function update_overlay_event(width, height)