Skip to content

Most visited

Recently visited

added in API level 3


public static interface GLSurfaceView.GLWrapper


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,... {

See also:


Public methods

abstract GL wrap(GL gl)

Wraps a gl interface in another gl interface.

Public methods


added in API level 3
GL wrap (GL gl)

Wraps a gl interface in another gl interface.

gl GL: a GL interface that is to be wrapped.

GL either the input argument or another GL object that wraps the input argument.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)