android - OpenGL ES Error to String -
is there standard getting error string glgeterror()
(android , ios) , eglgeterror()
(android) in opengl es 1.1 or 2.0?
i'm using this:
#define assertgl(x) { x; glenum __gle = glgeterror(); assert(__gle == gl_no_error); }
would nice enhance provide text debugger rather having glenum manually of returned value stored in __gle
.
try on android: http://developer.android.com/reference/android/opengl/glu.html#gluerrorstring(int) , on ios: https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/man3/gluerrorstring.3.html
if don't work you, can create own mapping integer error value corresponding string - should easy since there's handful of error values. error values gl2.h
, gl.h
headers (they start 0x05).
Comments
Post a Comment