[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Using callbacks functions in tolua
- From: Jose Marin <jose_marin2@...>
- Date: Fri, 11 Aug 2006 13:57:04 +0000 (GMT)
Hi.
I didn't find in the tolua documentation how to pass
functions as parameters, and call them later.
Like this:
function anima(self)
-- Do something with self...
end
local runner = CreateAnimation('runner.ani')
runner:setCallback(anima)
Then, the function anima will be called later, with a
pointer to 'runner'.
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/