diff options
Diffstat (limited to 'src/demos/texture')
-rwxr-xr-x | src/demos/texture/TestTexture.java | 4 | ||||
-rwxr-xr-x | src/demos/texture/TextureConvert.java | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/demos/texture/TestTexture.java b/src/demos/texture/TestTexture.java index 923fbd6..e6fcde2 100755 --- a/src/demos/texture/TestTexture.java +++ b/src/demos/texture/TestTexture.java @@ -46,7 +46,7 @@ import javax.swing.*; import javax.media.opengl.*; import javax.media.opengl.glu.*; -import com.sun.opengl.utils.*; +import com.sun.opengl.util.texture.*; /** Demonstrates simple use of the TextureIO texture loader. */ @@ -106,7 +106,7 @@ public class TestTexture implements GLEventListener { menuBar.add(menu); canvas.addGLEventListener(this); - frame.add(canvas); + frame.getContentPane().add(canvas); frame.setJMenuBar(menuBar); frame.setSize(800, 600); frame.show(); diff --git a/src/demos/texture/TextureConvert.java b/src/demos/texture/TextureConvert.java index b0c6bbd..f4af495 100755 --- a/src/demos/texture/TextureConvert.java +++ b/src/demos/texture/TextureConvert.java @@ -43,7 +43,8 @@ import java.io.*; import javax.media.opengl.*; import javax.media.opengl.glu.*; -import com.sun.opengl.utils.*; +import com.sun.opengl.util.*; +import com.sun.opengl.util.texture.*; /** Demonstrates how the TextureIO subsystem may be used to convert textures between multiple file formats, including texture @@ -72,7 +73,7 @@ public class TextureConvert { GL gl = pbuffer.getGL(); boolean attemptCompression = false; - if (TextureIO.DDS.equals(TextureIO.getFileSuffix(outputFile))) { + if (TextureIO.DDS.equals(FileUtil.getFileSuffix(outputFile))) { if (gl.isExtensionAvailable("GL_EXT_texture_compression_s3tc") || gl.isExtensionAvailable("GL_NV_texture_compression_vtc")) { attemptCompression = true; |