PDA

View Full Version : Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3



Bosi Michele
12-09-2007, 03:32 PM
Hello,
according to MSDN (http://msdn2.microsoft.com/en-us/library/ms537524.aspx) we can share display lists between two or more OpenGL rendering contexts, is there a way to share also other objects like Textures, FBOs, VBOs, GLSL objects etc. using the current OpenGL 2?

Does anyone knows anything about it with respect to OpenGL 3?
As far as we know from the OpenGL Pipeline, there will be an overall review of the so called "object model", hopefully they are making it easy/possible to reuse those objects across different OpenGL contexts especially for those that will contain texture and vertex data, which can take a large amount of memory.

Regards,
Michele

Zengar
12-09-2007, 03:42 PM
Yes, this objects are shared just like display lists in current GL (they all share the same name space). So if you share two lists, all objects (liek DL, textures etc.) will be visible to both.

AFAIK in GL3 it will be possible to share individual objects. But as we still got no spec... :(

Bosi Michele
12-09-2007, 04:13 PM
Thanks Zengar,
so if I got it right in OGL 2 I can only "share" those objects if they are called by shared DL? or it means that if I call wglShareLists() automatically all the Textures, VBOs etc. will be shared between the two contexts even if they are not referenced in any DL (in this case the function name is quite misleading)?

Thanks,
Michele

Trenki
12-10-2007, 04:09 AM
Yes, the function name is missleading but AFAIK textures and any other objects will be shared for the contexts not just display lists. The also don't have to be "called" by the display list to be shared.

[ www.trenki.net (http://www.trenki.net) | vector_math (3d math library) (http://www.trenki.net/content/view/16/36/) | software renderer (http://www.trenki.net/content/view/18/38/) ]

Bosi Michele
12-10-2007, 06:36 AM
Trenki, tanks for the clarification, a part from the misleading name this makes much more sense :)