org.j3d.renderer.java3d.texture
Class AbstractTextureCache
java.lang.Object
org.j3d.renderer.java3d.texture.AbstractTextureCache
- All Implemented Interfaces:
- J3DTextureCache, TextureCache
- public abstract class AbstractTextureCache
- extends java.lang.Object
- implements J3DTextureCache
An abstract implementation of the cache with a collection of useful
utility methods for any cache implementation.
This class does not provide the storage structures for caching as each
implementation will have different requirements. It just provides utility
methods that most implementations will find useful.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
|
Method Summary |
protected javax.media.j3d.ImageComponent2D |
load2DImage(java.lang.String filename)
Load the image component from the given filename. |
protected javax.media.j3d.ImageComponent2D |
load2DImage(java.net.URL url)
Load the image component from the given url. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
texUtils
protected TextureCreateUtils texUtils
- Texture utilities class to help do the boring stuff
AbstractTextureCache
protected AbstractTextureCache()
- Construct a new instance of the empty cache. Empty implementation,
does nothing.
load2DImage
protected javax.media.j3d.ImageComponent2D load2DImage(java.lang.String filename)
throws java.io.IOException
- Load the image component from the given filename. All images are
loaded by-reference. This does not automatically register the component
with the internal datastructures. That is the responsibility of the
caller.
- Parameters:
filename - The name of the file to be loaded
- Returns:
- An ImageComponent instance with byRef true and yUp false
- Throws:
java.io.IOException - Some error reading the file
load2DImage
protected javax.media.j3d.ImageComponent2D load2DImage(java.net.URL url)
throws java.io.IOException
- Load the image component from the given url. All images are
loaded by-reference. This does not automatically register the component
with the internal datastructures. That is the responsibility of the
caller.
- Parameters:
url - The URL of the file to be loaded
- Returns:
- An ImageComponent instance with byRef true and yUp false
- Throws:
java.io.IOException - Some error reading the URL
Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org