org.jzy3d.plot3d.pipelines
Class GLErrorReader

java.lang.Object
  extended by org.jzy3d.plot3d.pipelines.GLErrorReader

public class GLErrorReader
extends java.lang.Object

This utility allows checking the GL error bit after a call to a GL command. When an error is detected, a textual information is printed out in console.

Author:
Martin Pernollet

Constructor Summary
GLErrorReader()
           
 
Method Summary
static boolean getAndPrintError(javax.media.opengl.GL gl)
          If an error occured, print it.
static void getAndPrintError(javax.media.opengl.GL gl, java.lang.String info)
          If an error occured, print it and add an information string at the following line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLErrorReader

public GLErrorReader()
Method Detail

getAndPrintError

public static void getAndPrintError(javax.media.opengl.GL gl,
                                    java.lang.String info)
If an error occured, print it and add an information string at the following line.


getAndPrintError

public static boolean getAndPrintError(javax.media.opengl.GL gl)
If an error occured, print it.