JOGL FeedBackBuffer

Hi,

I need some help. I’ve been trying to parse out JOGL’s feedback buffer to try to print out a PostScript document, but I can’t seem to get it to work. The buffer is indeed modified after I call my rendering method, but after I do a dump on it I really cannot find any of the tokens that are used to parse out the array (e.g. GL_LINE_TOKEN, GL_POLYGON_TOKEN). If anyone has done it before, or knows the format, or can just comment anything about this, I would really appreciate your help.

Are you sure the endianness is set correctly in your FloatBuffer? Did you allocate it using BufferUtils?

I thought about that but I could not see a pattern. No i did not allocated it using BufferUtils, I used ByteBuffer, is that a problem?

I fixed my code to use ByteBuffer, I think it is working now. Thank you so much, I owe you one.