gzz-dev
[Top][All Lists]
Advanced

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

Re: [Gzz] Asko 2002-10-29 (CullingCoordSys)


From: Tuomas Lukka
Subject: Re: [Gzz] Asko 2002-10-29 (CullingCoordSys)
Date: Wed, 30 Oct 2002 11:06:15 +0200
User-agent: Mutt/1.4i

On Wed, Oct 30, 2002 at 10:03:57AM +0200, Asko Soukka wrote:
> Tue, 29 Oct 2002, Tuomas Lukka kirjoitti:
> > >   * made finally only one coordsys which can be created both with the
> > >     distinct test coordsys or without: GLVobCoorder.cull(parent, clip) or
> > >     GLVobCoorder.cull(parent, test, clip)
> > How?
> 
> GLVobCoorder.java:
>     public int cull(int parent, int clip) {
>       return cull(parent, parent, clip);
>     }
> 
>     public int cull(int parent, int test, int clip);

Ahh, of course, implemented on Java side. Good.

> So, actually there is only CullingCoordSys with three parents, but when
> called only with two of them, it uses the "parent" also as "test".
> AFAIK in this case (called with only two parents)
> CoordSys::CullingCoordSys' super and testSuper will both be pointing
> to the same CoordSys and no resources are wasted (no third parent CoordSys
> is created)...

There are exactly 8 bytes wasted: another integer on the parents list,
and a pointer in the C++ structure.

But I guess that's ok ;)

(... (deep voice) but when I was young, we'd have been glad to HAVE 8 bytes...) 
;)

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]