OpenGL: secondary thread for loading resources?

后端 未结 3 2116
谎友^
谎友^ 2020-12-09 05:55

Working with C and Win32, I would like to know how to implement a secondary OpenGL thread for loading resources(textures and VBOs).

From what I found, this should be

3条回答
  •  爱一瞬间的悲伤
    2020-12-09 06:18

    Load resources however you need to in your secondary thread and then pass ownership of them back to your primary for the GL calls.

    Sharing "lists" between GL contexts should work. Doing all your GL calls on your primary thread does work :)

提交回复
热议问题