com.microcrowd.loader.java3d.max3ds
Class DefaultTextureImageLoader

java.lang.Object
  extended by com.microcrowd.loader.java3d.max3ds.DefaultTextureImageLoader
All Implemented Interfaces:
TextureImageLoader

public class DefaultTextureImageLoader
extends java.lang.Object
implements TextureImageLoader

General purpose implementation of TextureImageLoader. Gets the base path from loader and prepends it to the file name to load an image.


Constructor Summary
DefaultTextureImageLoader(Loader3DS loader)
          Constructs an image loader that will resolve image locations to the base path of the loader provided.
 
Method Summary
 java.awt.Image getTextureImage(java.lang.String imageName)
          Gets the image to be loaded as a texture.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTextureImageLoader

public DefaultTextureImageLoader(Loader3DS loader)
Constructs an image loader that will resolve image locations to the base path of the loader provided.

Parameters:
the - loader that will specify the base path used to retrieve images.
Method Detail

getTextureImage

public java.awt.Image getTextureImage(java.lang.String imageName)
Gets the image to be loaded as a texture.

Specified by:
getTextureImage in interface TextureImageLoader
Parameters:
imageName - the name of the image to load.
Returns:
image to be used.


Copyright © 2000-2011 Microcrowd. All Rights Reserved.