Android Guides | Samples

Android.Opengl.GLSurfaceView.IGLWrapper

An interface used to wrap a GL interface.

See Also: GLSurfaceView+IGLWrapper

Syntax

[Android.Runtime.Register("android/opengl/GLSurfaceView$GLWrapper", "", "Android.Opengl.GLSurfaceView/IGLWrapperInvoker")]
public interface GLSurfaceView.IGLWrapper : IJavaObject, IDisposable

Remarks

An interface used to wrap a GL interface.

Typically used for implementing debugging and tracing on top of the default GL interface. You would typically use this by creating your own class that implemented all the GL methods by delegating to another GL instance. Then you could add your own behavior before or after calling the delegate. All the GLWrapper would do was instantiate and return the wrapper GL instance:

java Example

 class MyGLWrapper implements GLWrapper {
     GL wrap(GL gl) {
         return new MyGLImplementation(gl);
     }
     static class MyGLImplementation implements GL,GL10,GL11,... {
         ...
     }
 }

See Also

[Android Documentation]

Requirements

Namespace: Android.Opengl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3

The members of Android.Opengl.GLSurfaceView.IGLWrapper are listed below.

Public Methods

Wrap(IGL) : IGL
Wraps a gl interface in another gl interface.