Results 1 to 2 of 2

Thread: SDL1.3 in a thread and OpenGL context in another.

  1. #1

    SDL1.3 in a thread and OpenGL context in another.

    Does anyone have an example? I know SDL input has to be only in its "main" thread but I find trouble to give input properly to another thread with an SDL window (which got context with Makecurrent from a window made on main).

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    458

    Re: SDL1.3 in a thread and OpenGL context in another.

    You need to share context. I don't know how to do it with SDL, but it's quite easy with glx, wgl. Have a look at the SDL documentation.

Similar Threads

  1. copy data from non OpenGL context thread
    By Ido_Ilan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-07-2013, 05:21 AM
  2. Shared context for background thread loading
    By digi123 in forum OpenGL ES
    Replies: 1
    Last Post: 01-03-2013, 02:02 AM
  3. Multiple context for one window in single thread
    By kend in forum OpenGL: macOS
    Replies: 1
    Last Post: 05-11-2012, 10:04 AM
  4. Replies: 2
    Last Post: 04-26-2010, 09:38 PM
  5. creating a rendering context for another thread
    By Super13 in forum OpenGL: Windows
    Replies: 0
    Last Post: 01-10-2004, 04:08 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