lua-users home
lua-l archive

Using callbacks functions in tolua

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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/ 

AltStyle によって変換されたページ (->オリジナル) /