I would like display more than one texture in screen. I’m working in opengl JAVA. How is it accomplished? Example:
gl.glEnable(GL2.GL_TEXTURE_2D); //carga texturas:`
File in = new File("mariosprite1.png");
InputStream stream = getClass().getResourceAsStream("mariosprite1.png");
TextureData data = TextureIO.newTextureData(gl.getGLProfile(),in, GL2.GL_RGBA16, GL2.GL_RGBA, false, "png");
t = TextureIO.newTexture(data);
}catch(IOException e) {
e.printStackTrace();
System.exit(1);
}
try {
gl.glEnable(GL2.GL_TEXTURE_2D);