[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Tolua++] How to return an object?
- From: Jose Marin <jose_marin2@...>
- Date: Thu, 26 Oct 2006 16:22:17 +0000 (GMT)
--- Waldemar Celes <celes@inf.puc-rio.br> escreveu:
> Yes, it is possible. Just add the method to be
> parsed by tolua.
>
> class Engine {
> Camera* GetCamera ();
> ...
> };
>
>
> -- waldemar
>
>
>
>
> On Oct 25, 2006, at 3:22 PM, Jose Marin wrote:
>
> > 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
> >
>
>
_______________________________________________________
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
http://br.mobile.yahoo.com/mailalertas/