updated todo

git-svn-id: svn://anubis/anaglym/trunk@224 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2010-01-02 06:16:56 +00:00
parent 614b023a7a
commit 02f02f6500
4 changed files with 14 additions and 7 deletions

1
.todo
View File

@ -1,2 +1 @@
- rapid prototyping demo
- support reference objects

View File

@ -1414,6 +1414,7 @@ void Engine::Object::draw()
{
glPushAttrib(GL_TRANSFORM_BIT);
glEnable(GL_NORMALIZE);
glPushMatrix();
glScalef(m_scale, m_scale, m_scale);
}
@ -1422,7 +1423,10 @@ void Engine::Object::draw()
checkGLError();
if (m_is_scaled)
{
glPopMatrix();
glPopAttrib();
}
if (transform)
glPopMatrix();

View File

@ -13,3 +13,9 @@ function init_event()
checker = ag.loadTexture("checker.jpg")
createWorld()
end
function reinit_event()
ball = ag.createSphere(0.5)
ball:setColor(1, 1, 0)
ball:setPosition(3, 3, 4)
end

View File

@ -1,5 +1,7 @@
function init_event()
ag.import("std")
local rows = 5
local offset = 1
local pin = ag.loadModel("bowling_pin", 0.5)
@ -22,13 +24,9 @@ function init_event()
ball = ag.loadModel("checkerball", 0.5)
ball:setPosition(2*camx - cx, 2*camy - cy, 2*camz - cz)
ball:setMass(5)
--ball = ag.createSphere(0.4)
--ball:setColor(0.2, 0.2, 0.9)
-- local crate = ag.loadModel("crate")
-- crate:setPosition(0, 20, 10)
-- crate_texture = ag.loadTexture("crate.png")
smallPin = std.loadModelBounds("bowling_pin", 0, 0, 1)
smallPin:setPosition(0, -1, 1)
end
function mousebutton_down_event(button)