I am trying to load 2 textures and map them to 2 seperate quads.
Texture1 = TextureIO.newTexture(cl.getResource(texturePath1), false, null);
Texture2 = TextureIO.newTexture(cl.getResource(texturePath2), false, null);
I also tried this:
BufferedImage image = ImageIO.read(getClass().getClassLoader().getResource(texturePath1));
Texture1 = AWTTextureIO.newTexture(GLProfile.getDefault(), image, false);
image = ImageIO.read(getClass().getClassLoader().getResource(texturePath2));
Texture2 = AWTTextureIO.newTexture(GLProfile.getDefault(), image, false);
But when I bind them with quads, Texture1 has the same texture as Texture2. Second one I loaded always overlap the first one. I made a research but it was useless because the lack of tutorials on JOGL.
This seems a simple problem so can anyone with JOGL knowledge help me?