Results 1 to 5 of 5

Thread: glXCreateContext and VBOs

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2015
    Posts
    3

    glXCreateContext and VBOs

    Hi,

    I am new to the use of VBOs and I am trying to use them to render an object that was already rendered by another application. I mean, a first application displays the object in its window and then I would like to display that same object again in my own window.
    I read that it was possible to use glXCreateContext() to create a new rendering context that will share VBOs with a preexisting one but I saw that "all rendering contexts that share a single display-list space must themselves exist in the same address space". What does that mean exactly ?
    If I manage to get the GLXContext of the first application and use it to create a new glx rendering context with glXCreateContext, will I be able to use the VBOs that were created by the first application ?

    Thanks,

    Sophie

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    Posts
    896
    In practical terms sharing address space means that you are able to pass a pointer from application A to application B and B is then able to read the value that A has written there previously. Typically different applications run in different OS processes which do not share address space, they are isolated from each other by the OS. This is in contrast to threads of a single application, which all have access to the same shared address space.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2015
    Posts
    3
    Thank you for your answer, it's more clear now !
    In fact I call the first application inside the second one so I guess they share the same address space.

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    3,109
    Quote Originally Posted by SophieN View Post
    In fact I call the first application inside the second one so I guess they share the same address space.
    If the "applications" are distinct programs, they won't share the same address space.

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2015
    Posts
    3
    My question was kind of abstract : the first "application" is OpenSceneGraph, it's an API for 3D visualization, the second one is the software I usually use for 3D visualisation.
    I call OpenSceneGraph rendering functions inside the draw implementation of my software.

Similar Threads

  1. ES2 and VBOs
    By birdcage in forum OpenGL ES
    Replies: 2
    Last Post: 01-04-2011, 11:25 AM
  2. Two VBOs at once?
    By strattonbrazil in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 11-01-2010, 07:25 AM
  3. glxCreateContext sharing textures...
    By 147-2 in forum OpenGL: Linux
    Replies: 1
    Last Post: 05-21-2008, 06:49 AM
  4. Regarding VBOs
    By Howbizarre in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-29-2005, 02:05 AM
  5. glXCreateContext and sharing lists
    By pbertrand in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-15-2001, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean