import java.awt.BorderLayout; import java.awt.Frame; import java.io.File; import java.io.IOException; import javax.media.opengl.GLCanvas; import com.sun.opengl.util.texture.TextureIO; public class Mipmap { public static void main(String[] args) throws IllegalArgumentException, IOException { System.setProperty("jogl.texture.nonpot", "true"); // System.setProperty("jogl.glu.nojava", "true"); GLCanvas canvas = new GLCanvas(); Frame frame = new Frame(); frame.add(canvas, BorderLayout.CENTER); frame.addNotify(); canvas.getContext().makeCurrent(); TextureIO.newTexture(new File("tick_hor_major.png"), true); canvas.getContext().release(); frame.dispose(); } }