Hello Johannes,

On 2017-03-15 05:45, Johannes Brunen wrote:
> I'm in the process of writing a Chunk based class that depends on core
> Transform. Nearly all chunks are sorted into System/State.  Transform is
> in System/Group that is dependent on State. Should I sort my chunk class
> into library Group though is belongs definitely into State?
>
> The problem is that my chunk is holding a beacon and does need to get
> informed when the beacons transform changes. Therefore I add a changed
> function entry into the Transform and beacon objects that allows me to
> take proper action in any cases.

can the beacon type be something derived from Transform instead? In that 
case perhaps split the functionality so that the Chunk only represents 
the state and the Transform derived type populates the Chunk with 
values. I think that would move the setup closer to how other parts of 
the system use Chunks, i.e. there is a user facing type that internally 
manages a chunk in order to communicate OpenGL state to the system.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to