GLWrapper

interface 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 : GLWrapper {
fun wrap(gl: GL): GL {
return MyGLImplementation(gl)
}

class MyGLImplementation : GL, GL10, GL11, ... {
...
}
}

See also

Functions

Link copied to clipboard
abstract fun wrap(gl: GL?): GL?

Wraps a gl interface in another gl interface.