Hello Aron,
Aron Bierbaum wrote:
> On Wed, Mar 4, 2009 at 5:00 PM, Carsten Neumann <[email protected]>
> wrote:
> I'm sorry I entered the wrong text, it should have been:
>
> if (whichField & DlistCacheFieldMask)
> {
>
> // Handle the change to the display list field.
> if (getDlistCache())
> {
> // Ensure that we have OpenGL objects for display lists.
> }
> else
> {
> // Delete old display lists.
> }
> }
>
> if (getDlistCache())
> {
> // If something changed in the geometry
> if(whichField & (TypesFieldMask | LengthsFieldMask | PropertiesFieldMask |
> PropIndicesFieldMask | ClassicGLIdFieldMask
> | AttGLIdFieldMask))
> {
> // Refresh the OpenGL objects.
> }
> }
>
> I think that it is worth asking, if we change the dlist mode do we
> need to refresh the OpenGL objects?
ah, yes, if you write it like the above, it should not be necessary
since if changing the mode it makes sure the lists are there.
> We shouldn't need to because they
> were either just created or removed so on the next render they will be
> validated. Right?
yes.
Cheers,
Carsten
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users