updated todo
git-svn-id: svn://anubis/anaglym/trunk@224 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
614b023a7a
commit
02f02f6500
1
.todo
1
.todo
@ -1,2 +1 @@
|
|||||||
- rapid prototyping demo
|
|
||||||
- support reference objects
|
- support reference objects
|
||||||
|
@ -1414,6 +1414,7 @@ void Engine::Object::draw()
|
|||||||
{
|
{
|
||||||
glPushAttrib(GL_TRANSFORM_BIT);
|
glPushAttrib(GL_TRANSFORM_BIT);
|
||||||
glEnable(GL_NORMALIZE);
|
glEnable(GL_NORMALIZE);
|
||||||
|
glPushMatrix();
|
||||||
glScalef(m_scale, m_scale, m_scale);
|
glScalef(m_scale, m_scale, m_scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1422,7 +1423,10 @@ void Engine::Object::draw()
|
|||||||
checkGLError();
|
checkGLError();
|
||||||
|
|
||||||
if (m_is_scaled)
|
if (m_is_scaled)
|
||||||
|
{
|
||||||
|
glPopMatrix();
|
||||||
glPopAttrib();
|
glPopAttrib();
|
||||||
|
}
|
||||||
|
|
||||||
if (transform)
|
if (transform)
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
@ -13,3 +13,9 @@ function init_event()
|
|||||||
checker = ag.loadTexture("checker.jpg")
|
checker = ag.loadTexture("checker.jpg")
|
||||||
createWorld()
|
createWorld()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function reinit_event()
|
||||||
|
ball = ag.createSphere(0.5)
|
||||||
|
ball:setColor(1, 1, 0)
|
||||||
|
ball:setPosition(3, 3, 4)
|
||||||
|
end
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
function init_event()
|
function init_event()
|
||||||
|
ag.import("std")
|
||||||
|
|
||||||
local rows = 5
|
local rows = 5
|
||||||
local offset = 1
|
local offset = 1
|
||||||
local pin = ag.loadModel("bowling_pin", 0.5)
|
local pin = ag.loadModel("bowling_pin", 0.5)
|
||||||
@ -22,13 +24,9 @@ function init_event()
|
|||||||
ball = ag.loadModel("checkerball", 0.5)
|
ball = ag.loadModel("checkerball", 0.5)
|
||||||
ball:setPosition(2*camx - cx, 2*camy - cy, 2*camz - cz)
|
ball:setPosition(2*camx - cx, 2*camy - cy, 2*camz - cz)
|
||||||
ball:setMass(5)
|
ball:setMass(5)
|
||||||
--ball = ag.createSphere(0.4)
|
|
||||||
--ball:setColor(0.2, 0.2, 0.9)
|
|
||||||
|
|
||||||
-- local crate = ag.loadModel("crate")
|
smallPin = std.loadModelBounds("bowling_pin", 0, 0, 1)
|
||||||
-- crate:setPosition(0, 20, 10)
|
smallPin:setPosition(0, -1, 1)
|
||||||
|
|
||||||
-- crate_texture = ag.loadTexture("crate.png")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function mousebutton_down_event(button)
|
function mousebutton_down_event(button)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user