GL.glGetError

Hi ;D

I search for some way to translate the Errorcode returned by int GL.glGetError() into someting like a String !

Does LWJGL had some method like this :

String errorString = null;
int error = GL.glGetError
errorString = GL.getErrorString(error);

System.out.println(""+errorstring);

  • Jens 8)

I think GLU has something like it, but I can’t really remember the name of it.

  • elias

Well theres gluErrorString(), but I’m not sure whether that’s in LWJGL or not.

It is.

Cas :slight_smile:

Jep,

i found it :slight_smile:

[quote]Does LWJGL had some method like this :

String errorString = null;
int error = GL.glGetError
errorString = GL.getErrorString(error);

System.out.println(""+errorstring);
[/quote]
I hope not too much like it… Why stick a zero length string to the front of errorString before printing it?
;D

Well,

this was mean as a Example/pseudo Code.
Dont take any code snipplet to serious, boy!

Also there is no problem at all, coz a null string take no
resource, it is only delcared and not null terminated!

Any more such questions ? <g**>

  • jens