import java.io.*; import javax.media.opengl.*; import com.sun.opengl.util.texture.*; public class TotsTest { public static class Listener implements GLEventListener { public void init(GLAutoDrawable drawable) { try { Texture texture = TextureIO.newTexture(new File("TotsLogo.gif"), true); } catch (IOException e) { e.printStackTrace(); } } public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { } public void display(GLAutoDrawable drawable) { } public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { } } public static void main(String[] args) { GLCapabilities caps = new GLCapabilities(); caps.setDoubleBuffered(false); GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps, null, 2, 2, null); pbuffer.addGLEventListener(new Listener()); pbuffer.display(); System.exit(0); } }