md3.md3view
Class MD3GLTexture
java.lang.Object
|
+--md3.md3model.MD3Texture
|
+--md3.md3view.MD3GLTexture
- public class MD3GLTexture
- extends MD3Texture
This class extends MD3Texture objects with an OpenGL compatible texture binding.
- Author:
- Erwin Vervaet (erwin@cs.kuleuven.ac.be)
- See Also:
- Serialized Form
Field Summary |
int |
bind
OpenGL id the texture is bound to. |
Constructor Summary |
protected |
MD3GLTexture(java.lang.String name,
java.lang.String loadFilename)
Loads a MD3 texture from the specified file and generates an OpenGL compatible
binding. |
protected |
MD3GLTexture(java.lang.String name,
java.lang.String loadFilename,
java.io.InputStream in)
Loads a MD3 texture from the specified input stream and generates an OpenGL
compatible texture binding. |
Method Summary |
void |
refreshData(java.io.InputStream in)
Reload this texture's bitmap data from the given input stream. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
bind
public int bind
OpenGL id the texture is bound to. 0 if unbound.
MD3GLTexture
protected MD3GLTexture(java.lang.String name,
java.lang.String loadFilename)
throws java.io.IOException
Loads a MD3 texture from the specified file and generates an OpenGL compatible
binding.
- Parameters:
name
- Name of the texture as specified in .md3 or .skin file.loadFilename
- Full name of file from which texture data will be loaded.
MD3GLTexture
protected MD3GLTexture(java.lang.String name,
java.lang.String loadFilename,
java.io.InputStream in)
throws java.io.IOException
Loads a MD3 texture from the specified input stream and generates an OpenGL
compatible texture binding.
- Parameters:
name
- Name of the texture as specified in .md3 or .skin file.loadFilename
- Full name of file from which the texture data is (supposedly) loaded.in
- Stream from which to read data.
refreshData
public void refreshData(java.io.InputStream in)
throws java.io.IOException
Reload this texture's bitmap data from the given input stream.