Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 3
public static interface

GLSurfaceView.GLWrapper

android.opengl.GLSurfaceView.GLWrapper

Class Overview

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:

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

Summary

Public Methods
abstract GL wrap ( GL gl)
Wraps a gl interface in another gl interface.

Public Methods

public abstract GL wrap ( GL gl)

Added in API level 3

Wraps a gl interface in another gl interface.

Parameters
gl a GL interface that is to be wrapped.
Returns
  • either the input argument or another GL object that wraps the input argument.