finished textbox implementation and it does not work -- apparently blitting to an OpenGL surface does not work for any font type... i'll have to switch to FTGL or something else

git-svn-id: svn://anubis/anaglym/trunk@161 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-11-08 05:02:06 +00:00
1 parent 8746e81fe4
commit 8425807f99
6 files changed
+51 -1

No files matched your search

+9 -1
View File
@@ -1,6 +1,9 @@
t = ag.createSolidTextBox("Hi there", 0, 0, 1)
ag.println("t: ", t)
t2 = ag.createShadedTextBox("Hi there", 0, 1, 1, 0, 0, 0)
t3 = ag.createBlendedTextBox("Hi there", 1, 1, 1)
ag.setAutoEndFrame(false)
ag.setAutoDrawObjects(false)
function update_event()
ballx, bally, ballz = ball:getPosition()
@@ -8,6 +11,11 @@ function update_event()
if (ag.isKeyDown("m")) then
ball:setPosition(-7, 7.4, 12)
end
ag.drawObjects()
ag.endFrame()
t:draw(10, 10)
t2:draw(10, 40)
t3:draw(10, 90)
end
function key_down_event(key)