Im a beginner, so plz bare with me!
I have been strugling to learn jogl for the last few days and Im learning from the NeHe tutorials.
I enjoy them alot but I have a problem: I cant seem to figure out how to load more than 1 texture at once.
What is wrong here:
texture1 = genTexture(gl);
texture2 = genTexture(gl);
gl.glBindTexture(GL.GL_TEXTURE_2D, texture1);
BufferedImage img1 = readPNGImage("data/ja.JPG");
makeRGBTexture(gl, gLDrawable.getGLU(), img1, GL.GL_TEXTURE_2D, false);
gl.glBindTexture(GL.GL_TEXTURE_2D, texture2);
BufferedImage img2 = readPNGImage("data/NeHe.png");
makeRGBTexture(gl, gLDrawable.getGLU(), img2, GL.GL_TEXTURE_2D, false);
I realize that the problem must be related to my attempt to try to bind different textures (names) to GL.GL_TEXTURE_2D. Or is it?