This class serves as a factory for Texture and ImageComponent2D objects.
It creates these objects from image files (GIF or JPEG).
The files must be stored at the same location the as classfile for this class.
Examples:
If the TextureBuilder.class is in /home/j3d/TextureBuilder.class
and one calls buildTexture("test.gif"), the there must be a file
/home/j3d/test.gif.
To create a Texture, do something like:
TextureBuilder tb = new TextureBuilder(); Texture t = tb.buildTexture("a.gif");
Note: This class loads images using a polling mechanism. Bad style! I should
use MT and synchronization.
|