diff options
Diffstat (limited to 'make/gl-impl-CustomJavaCode-gl2es12.java')
-rw-r--r-- | make/gl-impl-CustomJavaCode-gl2es12.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/make/gl-impl-CustomJavaCode-gl2es12.java b/make/gl-impl-CustomJavaCode-gl2es12.java index 0fe69bccd..4f5dbae1c 100644 --- a/make/gl-impl-CustomJavaCode-gl2es12.java +++ b/make/gl-impl-CustomJavaCode-gl2es12.java @@ -323,4 +323,20 @@ native private long dispatch_glMapBuffer(int target, int access, long glProcAddr // nothing to do } + public final String toString() { + StringBuffer buf = new StringBuffer(); + buf.append("GL: "); + buf.append(getClass().getName()); + buf.append(" (GLContext: "); + GLContext context = getContext(); + buf.append(context.getClass().getName()); + buf.append(", GLDrawable: "); + GLDrawable drawable = context.getGLDrawable(); + buf.append(drawable.getClass().getName()); + buf.append(", Factory: "); + GLDrawableFactory factory = drawable.getFactory(); + buf.append(factory.getClass().getName()); + buf.append(")"); + return buf.toString(); + } |