lua-users home
lua-l archive

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


Hi!

It's possible to return an object using tolua++?

I have a class 'Camera', with some methods, but it
won't be 'created'. This code will explain:

camera = Engine:GetCamera()

camera:SetFOV(60)
...


I didn't use the usual 'Camera:new()', because the
camera was already created in C++.

And the camera object won't be garbage collected,
because the class 'Engine' will create and delete it.





		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale 
o discador agora! 
http://br.acesso.yahoo.com