added Engine::Quad::setColor() and ag::quad::setColor()

This commit is contained in:
Josh Holtrop committed 2010-12-19 00:11:37 -05:00
1 parent 8585f97e91
commit eb73749f69
5 files changed
+41 -1

No files matched your search

+3 -1
View File
@@ -58,8 +58,10 @@ function key_down_event(key)
elseif (key == "minus") then
ag.setCursorVisible(not ag.getCursorVisible())
elseif (key == "d") then
q = ag.createQuad(3, 3, 0, 1, 0, 0, 0, 1, 0)
q = ag.createQuad(0.5, 3, 0, 1, 0, 0, 0, 1, 0)
q:setColor(0, 0, 1, 0.6)
q:setOffset(1)
q:setBlending(true)
end
end