updated Engine::drawText() - and broke something with drawing text on the way...
git-svn-id: svn://anubis/anaglym/trunk@186 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
1 parent
5de4ed348b
commit
2472e9ee4d
2 files changed
+14
-12
No files matched your search
+6
-6
@@ -57,10 +57,10 @@ end
|
||||
function update_overlay_event(width, height)
|
||||
local tw, th = ag.getTextSize("Hi there", 18)
|
||||
ag.drawText("Hi there", 1, 1, 1, 18, width - tw - 4, height - th - 4)
|
||||
ag.drawLine(1, 0, 0.3, 10, 10, 40, 60)
|
||||
ag.drawLine(1, 0.7, 1, 50, 10, 100, 60, 5)
|
||||
ag.drawRect(0, 1, 0, 40, 40, width / 2, height / 2)
|
||||
ag.fillRect(0, 0, 1, 20, 30, width / 2, height / 2)
|
||||
local rot = ag.elapsedTime() / 10
|
||||
ag.drawImage(50, 50, 80, 160, crate_texture, rot)
|
||||
-- ag.drawLine(1, 0, 0.3, 10, 10, 40, 60)
|
||||
-- ag.drawLine(1, 0.7, 1, 50, 10, 100, 60, 5)
|
||||
-- ag.drawRect(0, 1, 0, 40, 40, width / 2, height / 2)
|
||||
-- ag.fillRect(0, 0, 1, 20, 30, width / 2, height / 2)
|
||||
-- local rot = ag.elapsedTime() / 10
|
||||
-- ag.drawImage(50, 50, 80, 160, crate_texture, rot)
|
||||
end
|
||||
Reference in new issue
Block a user