diff options
Diffstat (limited to 'make/gl-impl-CustomJavaCode-gl2.java')
-rw-r--r-- | make/gl-impl-CustomJavaCode-gl2.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/make/gl-impl-CustomJavaCode-gl2.java b/make/gl-impl-CustomJavaCode-gl2.java index 43faac362..2efdfd94c 100644 --- a/make/gl-impl-CustomJavaCode-gl2.java +++ b/make/gl-impl-CustomJavaCode-gl2.java @@ -351,4 +351,21 @@ 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(); + } + |