See Also: iPhoneOSGraphicsContext Members
Instances of this class are implicitly created by OpenTK.Graphics.GraphicsContext. This type cannot be directly created by the developer.
The primary purpose for this type is to obtain access to the wrapped OpenGLES.EAGLContext instance, which may need to be used in certain circumstances. If you have a OpenTK.Graphics.GraphicsContext instance as returned by OpenTK.Platform.Utilities.CreateGraphicsContext(OpenGLES.EAGLRenderingAPI), you can obtain the wrapped OpenGLES.EAGLContext instance by doing:
C# Example
var context = ...
// e.g. Utilities.CreateGraphicsContext(EAGLRenderingAPI.OpenGLES1);
var internalGC = context as IGraphicsContextInternal;
iPhoneOSGraphicsContext iPhoneGC = internalGC.Implementation as iPhoneOSGraphicsContext;
if (iPhoneGC != null) {
EAGLContext eaglContext = iPhoneGC.Context;
}Alternatively, use OpenTK.Platform.iPhoneOS.iPhoneOSGameView as your base type, and use iPhoneOSGameView.EAGLContext to obtain the wrapped OpenGLES.EAGLContext.