cocoaopenglopenglcontextnsopengl

NSOpenGLContext for non-drawing purposes


How to create a system-independent NSOpenGLContext in Cocoa, not for drawing, but for retrieving OpenGL information like vendor, version etc. ???


Solution

  • You create one the same way you would "for drawing," but after creating it, you get the information you want and then destroy it.