[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [Tolua++] How to return an object?
- From: Jose Marin <jose_marin2@...>
- Date: Wed, 25 Oct 2006 17:22:12 +0000 (GMT)
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