I'm trying to use this class with JOGL. It references BufferUtil, which I can't find anywhere. I found documentation, but no actual code. Eclipse doesn't suggest to import it from anywhere. What do I have to do to be able to use this code?
A:
I think they pulled BufferUtil
a while back (it looks like it never did anything super useful anyway) but since the code just allocates a new ByteBuffer
, you don't need it. Just do a ByteBuffer unpackedPixels = ByteBuffer.allocate(packedPixels.length * bytesPerPixel);
instead.
There's also a newer JOGL class that does something similar called com.jogamp.opengl.util.texture.TextureIO
with a few newTexture(...)
methods.
j flemm
2010-09-20 12:47:13
TextureIO absolutely replaces exactly what this class is trying to do. Just ignore this class and use the built-in TextureIO.
Ricket
2010-09-23 20:30:50
A:
Hi
JOGL doc is rather there: http://jogamp.org/deployment/jogl-next/javadoc_public/
Use GLBuffers instead if BufferUtil: com.jogamp.opengl.util.GLBuffers
TextureIO has been moved into the package com.jogamp.opengl.util.texture.TextureIO in JOGL 2. It is not a new class, it was already in JOGL 1.1.0.
gouessej
2010-09-25 13:24:13