Results 1 to 5 of 5

Thread: multithreading in graphics??

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    starkville,MS,USA
    Posts
    3

    multithreading in graphics??

    Hi,
    Is there any mutlithreading in openGL??Can i run two openGL programs simultaneously and capture each of these images separately in two separate image arrays using glReadPixels() function??

    Thanks in advance.

    Rajesh

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: multithreading in graphics??

    You can do multithreading with opengl if the platform you are coding on support it.

    But for what you want to do, you'll have to have two RC. One for each image you want to render.

    In windows, you could create two child window, assign each of them an RC and then thread the rendering of the two window.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    starkville,MS,USA
    Posts
    3

    Re: multithreading in graphics??

    Originally posted by Gorg:
    You can do multithreading with opengl if the platform you are coding on support it.

    But for what you want to do, you'll have to have two RC. One for each image you want to render.

    In windows, you could create two child window, assign each of them an RC and then thread the rendering of the two window.

    Hi Gorg, thanks for replying. I couldn't understand what you meant by the word RC.and can i do this using the fork() function of C??I am working on Unix solaris version.

    Thank you

    Rajesh

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: multithreading in graphics??

    Sorry, RC stands for Rendering Context. But as how it works on unix, I have no clue.

    I guess you'll just have to test it.

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    chicoutimi canada (quebec)
    Posts
    10

    Re: multithreading in graphics??

    I don't know if it can help you but there is 2 tutorial on multithreading at www.flipcode.com in the tab developpement tutorial (left of screen)

Similar Threads

  1. Multithreading
    By exiled in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 07-02-2011, 02:54 AM
  2. Replies: 6
    Last Post: 11-01-2004, 08:26 PM
  3. When to go for multithreading
    By OgliX in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-13-2004, 10:42 PM
  4. multithreading and ogl
    By markun in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-06-2003, 11:07 AM
  5. Multithreading in MFC
    By reignofchaos in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 02-09-2003, 06:03 PM

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