CoreAnimation.CAEAGLLayer Class
Layer used to render OpenGL content.

See Also: CAEAGLLayer Members

Syntax

[Foundation.Register("CAEAGLLayer", true)]
public class CAEAGLLayer : CALayer, OpenGLES.IEAGLDrawable, IDisposable

Remarks

When you want to use one of the CALayer subclasses as your UIView's backing layer, you need to add the following code snippet to your class:

C# Example

class MyView : UIView {
    //
    // This instructs the runtime that whenever a MyView is created
    // that it should instantiate a CAEAGLLayer and assign that to the
    // UIView.Layer property
    //
    [Export ("layerClass")]
    public static Class LayerClass () {
        return new Class (typeof (CAEAGLLayer));
    }
}
  

Related content

Requirements

Namespace: CoreAnimation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0