OpenGL contexts are selected per-thread. NSOpenGLView will tell you which context should be used to draw in the view (ie. Which one has had context setView: view called on), but not which context is currently selected in the thread that's executing the code.It's a bit like selecting pen/brush to draw with in old Windows I understand that you want to know if you can draw in view.
To do that, check if current context is the one that NSOpenGLView returns, and if not, set it to be To get current OpenGL context for the thread: NSOpenGLContext* context = NSOpenGLContext currentContext To set one as current: context makeCurrentContext To clear current context (ie. Set no current context): NSOpenGLContext clearCurrentContext In general, see docs for NSOpenGLContext.
OpenGL contexts are selected per-thread. NSOpenGLView will tell you which context should be used to draw in the view (ie. Which one has had context setView: view called on), but not which context is currently selected in the thread that's executing the code.It's a bit like selecting pen/brush to draw with in old Windows.
I understand that you want to know if you can draw in view. To do that, check if current context is the one that NSOpenGLView returns, and if not, set it to be.To get current OpenGL context for the thread: NSOpenGLContext* context = NSOpenGLContext currentContext; To set one as current: context makeCurrentContext; To clear current context (ie. Set no current context): NSOpenGLContext clearCurrentContext; In general, see docs for NSOpenGLContext.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.