problem with "glu.gluBuild2DMipmaps"
Posted by tmthanhtri on Apr 19, 2012; 6:19pm
URL: https://forum.jogamp.org/problem-with-glu-gluBuild2DMipmaps-tp3923928.html
I using Texture from class import com.sun.opengl.util.texture.Texture;
How using glu.gluBuild2DMipmaps(..) for this Texture ?
Because last parameter of gluBuild2DMipmaps is data image.
So class Texture not have method get data image
example :
Texture mTex;
glu.gluBuild2DMipmaps(GL.GL_TEXTURE_2D, GL.GL_RGB,mTex.getWidth(), mTex.getHeight(), GL.GL_RGB, GL.GL_UNSIGNED_BYTE,
mTex.?? // Problem here
);
Please hlep me.