aboutsummaryrefslogtreecommitdiffstats
path: root/gl4java/utils/textures/TextureLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'gl4java/utils/textures/TextureLoader.java')
-rw-r--r--gl4java/utils/textures/TextureLoader.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/gl4java/utils/textures/TextureLoader.java b/gl4java/utils/textures/TextureLoader.java
new file mode 100644
index 0000000..36a8cfe
--- /dev/null
+++ b/gl4java/utils/textures/TextureLoader.java
@@ -0,0 +1,41 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+import gl4java.utils.glut.*;
+
+import java.awt.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+/**
+ * This abstract Class defines the interface
+ * for ALL texture loaders !
+ *
+ * @see TextureTool
+ * @see GLImageCanvas
+ */
+public abstract class TextureLoader
+extends TextureTool
+{
+ protected TextureLoader(GLFunc gl, GLUFunc glu)
+ { super(gl, glu); }
+
+ /**
+ * Loads an Texture
+ *
+ * @param fname The filename
+ */
+ public abstract boolean readTexture(String fname);
+
+ /**
+ * Loads an Texture
+ *
+ * @param base The base URL
+ * @param uri The additional uri for the base URL
+ */
+ public abstract boolean readTexture(URL base, String uri);
+}
+