Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2007
    Location
    Budapest
    Posts
    5

    Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3

    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

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3

    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...

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2007
    Location
    Budapest
    Posts
    5

    Re: Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3

    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

  4. #4
    Junior Member Regular Contributor
    Join Date
    Feb 2005
    Location
    South Tyrol, Italy
    Posts
    105

    Re: Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3

    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 | vector_math (3d math library) | software renderer ]

  5. #5
    Junior Member Newbie
    Join Date
    Nov 2007
    Location
    Budapest
    Posts
    5

    Re: Sharing Texture,FBO,VBO,GLSL objs in OGL 2 & OGL 3

    Trenki, tanks for the clarification, a part from the misleading name this makes much more sense

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •