I am trying to get this code to work, but having no luck...
http://www.sfml-dev.org/wiki/en/sources/loadimagesinthread.cpp
Not sure if this sample should be taken as a reference, it contains more synchronization than necessary, thus it's not very efficient. It may be a good start though.
but says it can't activate the window? IIRC....
Uh..?
I am not sure, but almost thinking it may be easier to have the thread load the data and when back in the main thread just upload the data to OpenGL then?
What's the purpose of the second thread if you want to do things in a sequential way ?
Reason for that thinking is I need one thread to load resources into OpenGL, and the main thread will still need to display things like GUI, splash screen ect... So is this even possible? As I recall you can only have one OpenGL RC active or available?
RC = ?
You can have one OpenGL context active per thread. Thus several active context at the same time in different threads. Plus, SFML enables sharing between these contexts, which means that what you load in one context is available in the other contexts too (with some constraints). If you use that sharing feature (rather than activating the main window's context as in your sample and needing useless synchronization), make sure to flush (glFlush) your thread's context. Otherwise the images you load in that thread may not immediately be available in the main thread's context.
And to answer your question, what you want to do IS possible.