Hi Allen,

On Sat, 2005-07-16 at 15:12 -0500, Allen Bierbaum wrote:
> Sorry if any of this sounds harsh, but why doesn't OpenSG use 
> glGenLists() to allocate it's display list ids?

We had that before. The main problem is that not every thread can call
it but only the rendering threads, and given that OpenGL allows you to
use your own ids, that seemed like an unnecessary indirection.

> Not being able to reliably call glGenLists() in my own OpenGL code makes 
> it very difficult to integrate standard OpenGL with OpenSG.  

Honestly, I never expected people to use OpenSG together with OpenGL,
and I'm surprised that it works as well as it does. ;)

> I know that 
> I can work around this by just manually allocating a large number of 
> display lists at the beginning of my application, but this really just 
> works around the problem.  It does not solve it.  Until OpenSG uses 
> glGenLists(), it will always be possible to write OpenGL code that will 
> not integrate with OpenSG.

Well, not all OpenGL code uses GenLists, so there will always be OpenGL
code that doesn't integrate well with anything.

And for your own code you can just ask OpenSG for ids:

UInt32 id = Window::registerGLObject
(osgTypedFunctionVoidFunctor2Ptr<Window,UInt32>(NULL), 1);
 
As long as you don't call validate() on them this will work just fine.

> On a related note, does OpenSG behave similarly for texture objects, 
> vbos, shader objects, etc?

They use the same mechanism, so yes. OpenSG only has a single unified
namespace, as there didn't seem to be any reasons for keeping them
separate.

Hope it helps

        Dirk




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to