GLDebugHelper.Wrap Method

Definition

Overloads

Wrap(IEGL, Int32, Writer)

Wrap an existing EGL interface in a new EGL interface that adds support for error checking and/or logging.

Wrap(IGL, Int32, Writer)

Wrap an existing GL interface in a new GL interface that adds support for error checking and/or logging.

Wrap(IEGL, Int32, Writer)

Wrap an existing EGL interface in a new EGL interface that adds support for error checking and/or logging.

[Android.Runtime.Register("wrap", "(Ljavax/microedition/khronos/egl/EGL;ILjava/io/Writer;)Ljavax/microedition/khronos/egl/EGL;", "")]
public static Javax.Microedition.Khronos.Egl.IEGL? Wrap (Javax.Microedition.Khronos.Egl.IEGL? egl, int configFlags, Java.IO.Writer? log);
[<Android.Runtime.Register("wrap", "(Ljavax/microedition/khronos/egl/EGL;ILjava/io/Writer;)Ljavax/microedition/khronos/egl/EGL;", "")>]
static member Wrap : Javax.Microedition.Khronos.Egl.IEGL * int * Java.IO.Writer -> Javax.Microedition.Khronos.Egl.IEGL

Parameters

egl
IEGL

the existing GL interface. Must implement EGL and EGL10. May optionally implement EGL11 as well.

configFlags
Int32

A bitmask of error checking flags.

log
Writer
  • null to disable logging, non-null to enable logging.

Returns

the wrapped EGL interface.

Attributes

Remarks

Wrap an existing EGL interface in a new EGL interface that adds support for error checking and/or logging.

Java documentation for android.opengl.GLDebugHelper.wrap(javax.microedition.khronos.egl.EGL, int, java.io.Writer).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Wrap(IGL, Int32, Writer)

Wrap an existing GL interface in a new GL interface that adds support for error checking and/or logging.

[Android.Runtime.Register("wrap", "(Ljavax/microedition/khronos/opengles/GL;ILjava/io/Writer;)Ljavax/microedition/khronos/opengles/GL;", "")]
public static Javax.Microedition.Khronos.Opengles.IGL? Wrap (Javax.Microedition.Khronos.Opengles.IGL? gl, int configFlags, Java.IO.Writer? log);
[<Android.Runtime.Register("wrap", "(Ljavax/microedition/khronos/opengles/GL;ILjava/io/Writer;)Ljavax/microedition/khronos/opengles/GL;", "")>]
static member Wrap : Javax.Microedition.Khronos.Opengles.IGL * int * Java.IO.Writer -> Javax.Microedition.Khronos.Opengles.IGL

Parameters

gl
IGL

the existing GL interface. Must implement GL and GL10. May optionally implement GL11 as well.

configFlags
Int32

A bitmask of error checking flags.

log
Writer
  • null to disable logging, non-null to enable logging.

Returns

IGL

the wrapped GL instance.

Attributes

Remarks

Wrap an existing GL interface in a new GL interface that adds support for error checking and/or logging.

Wrapping means that the GL instance that is passed in to this method is wrapped inside a new GL instance that optionally performs additional operations before and after calling the wrapped GL instance.

Error checking means that the wrapper will automatically call glError after each GL operation, and throw a GLException if an error occurs. (By design, calling glError itself will not cause an exception to be thrown.) Enabling error checking is an alternative to manually calling glError after every GL operation.

Logging means writing a text representation of each GL method call to a log.

Java documentation for android.opengl.GLDebugHelper.wrap(javax.microedition.khronos.opengles.GL, int, java.io.Writer).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to