Hi Lionel.

On 23 January 2013 14:38, Lionel Lagarde <[email protected]> wrote:
> The entries of GLBufferObject can't be erased because the images
> (BufferData) use their index (_bufferIndex) to retrieve their offset in the 
> GL buffer.

I spotted this earlier, so the following is a more appropriate:

> A Boolean or a copied count in each buffer entry could do the job.
>
> It was the first solution I tried (hence the BufferData parameter of
> GLBufferObject::setBufferEntryUsed).
> I changed for a global counter (in GLBufferObject) because I didn't want to
> loop through
> the buffer entries to count the used/unused entries.

I think this would be a better approach, it's clearer what done, I
feel that Read is better than Used, as something that is Used sounds
like it's still being used and is still needed, while something that
has been read is something you are more likely to relate to being
something you can now discard.

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to