added initial documentation (in progress), renamed ag:: functions with "Static" in the middle to have "Static" at the end

git-svn-id: svn://anubis/anaglym/trunk@191 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-11-23 02:24:30 +00:00
1 parent 459b3704d6
commit 6b62b9d00f
10 files changed
+476 -87

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
function init()
arena = ag.loadStaticModel("boxarena")
arena = ag.loadModelStatic("boxarena")
ball = ag.loadModel("checkerball")
ball:setPosition(-7, 7.4, 12)
ball2 = ball:clone()
+1 -2
View File
@@ -13,7 +13,6 @@ function init()
end
end
--local ground = ag.loadStaticModel("crate", 10)
local ground = ag.createPlane(0, 0, 1, 0)
ground:setColor(0.8, 0.5, 0.0)
ground:setPosition(0, 0, -10)
@@ -29,7 +28,7 @@ function init()
-- local crate = ag.loadModel("crate")
-- crate:setPosition(0, 20, 10)
crate_texture = ag.loadTexture("crate.png")
-- crate_texture = ag.loadTexture("crate.png")
end
function mousebutton_down_event(button)
+1 -1
View File
@@ -12,7 +12,7 @@ function init()
end
end
local ground = ag.loadStaticModel("crate", 10)
local ground = ag.loadModelStatic("crate", 10)
ground:setPosition(0, 0, -10)
ag.setCamera(levels/2, -2*levels, levels, 0, 0, levels/2, 0, 0, 1)
camx, camy, camz, cx, cy, cz = ag.getCamera()
+1 -1
View File
@@ -18,7 +18,7 @@ function init()
end
end
ground = ag.loadStaticModel("crate", 10)
ground = ag.loadModelStatic("crate", 10)
ground:setPosition(0, 0, -10)
ag.setCamera(2, -12, 8, 0, 0, 2, 0, 0, 1)
end
+1 -1
View File
@@ -1,7 +1,7 @@
function init()
local crate_texture = ag.loadTexture("checker.jpg")
local ground = ag.createStaticPlane(0, 0, 1, 0)
local ground = ag.createPlaneStatic(0, 0, 1, 0)
ground:setColor(0.2, 1.0, 0.2)
ground:setTexture(crate_texture)
ag.setCamera(10, -10, 10, 0, 0, 0)