I have several questions related to OpenGL rendering and the issues I encountered while making 3D enigne. Some of them were asked before, but the answers are old and possibly outdated or ambiguous.
1) Is there a way to make sure that an OpenGL context was initialized before creating a resource?
I know that SMFL executes a function that checks for the existence of an active context in a current thread and creates it if there wasn't one, yet that implies at least some, hopyfully inlined, functions every time such a resource is created. (static hell) There is also a method to enforce creation of OGL resources by context/window but at the same time forces you to pass reference around.
2) Is there a point of doing so? If we gonna throw exception anyway, I don't see one. There is also not-so powerful "don't do it" written in the docs.
3) Do I even have to take into consideration possibility of multiple windows/contexts? What about multithreading?
I've read a little about creating 2 threads, one for rendering, second for passing data. It seems to me that I would have to wait for the other thread to finish before letting another one permission to go.
Huge thanks in advance :)