PDA

View Full Version : Mac OS X - Working with OpenGL on a second thread



faiface
11-18-2016, 12:41 PM
Hello everyone!

I've been searching the internet and docs, but I didn't manage to fully understand this thing regarding the use of OpenGL on Mac OS X.

I have a second thread and I want to do all OpenGL specific stuff in that thread (initialization, even the creation of a window, everything). I'm using GLFW for window creation. The second thread is not the main thread, however, all the OpenGL work is being done from there, so I'm not doing OpenGL from multiple threads, just from this single thread.

Is this easily possible on Mac OS X? From some sources it seems like it is, but from others it doesn't, so I don't know. Also, I don't have a Mac available to me, so I can't try.

Thank you.

Michal Štrba