My engine is using SDL2, and per platform, I'll need to do some OS specific tasks. Sometimes I'll be required to get the native handle to the OpenGL context directly, especially when it's necessary to access non-portable functionality. Example, for MacOSX (please don't troll) the accurate way to enumerate GPUs and their features is to use the low level APIs. For iOS, sometimes I need to do similar things.
So, is there a way to get a handle to the native OpenGL context for SDL 2.x? I tried googling, but I guess I haven't used the right keywords so far. Thanks.
Shogun.