aboutsummaryrefslogtreecommitdiffstats
path: root/gl4java/utils/textures/TextureLoader.java
blob: 36a8cfe63d30be27ad8f65edfb70109a1842234f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);
}