updated documentation - added handler / callback prototype section, added key names section; added ag::drawArc() and ag::drawCircle() w/ documentation; added tests/transparent.png and tests/imagetest.lua; renamed init() event to init_event(); re-added missing drawImage Lua hook; changed images to draw transparent parts correctly through to background

git-svn-id: svn://anubis/anaglym/trunk@197 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-11-27 03:34:50 +00:00
1 parent 8ea89aea33
commit b546ea74dd
14 files changed
+493 -67

No files matched your search

+20
View File
@@ -43,3 +43,23 @@ std.createPlanePointNormal = function(x, y, z, nx, ny, nz)
-- invoke the ag routine to create a plane based on a, b, c, d parameters
return ag.createPlane(nx, ny, nz, nx * x, ny * y, nz * z)
end
-- Convert screen percent to pixel count along X axis
-- Input:
-- percent: percent (0.0 - 1.0) of the screen's X axis
-- Output:
-- Number of pixels corresponding to 'percent' percent of the X axis
std.pctx = function(percent)
local width = ag.getScreenSize()
return width * percent
end
-- Convert screen percent to pixel count along Y axis
-- Input:
-- percent: percent (0.0 - 1.0) of the screen's Y axis
-- Output:
-- Number of pixels corresponding to 'percent' percent of the Y axis
std.pcty = function(percent)
local width, height = ag.getScreenSize()
return height * percent
end