| java.lang.Object com.sun.j3d.loaders.lw3d.ParserObject com.sun.j3d.loaders.lw3d.LwoTexture
LwoTexture | class LwoTexture extends ParserObject (Code) | | This class is responsible for parsing the binary data in an Object file
that describes a texture for a particular surface and turning that data
into Java3D texture data. If the texture is coming from a file (which
is the only type of texture handled by the loader currently; other
types of texture definitions are ignored), then this class instantiates
a TargaReader object to read the data in that file. Once all of the
data has been read, the class creates a Java3D Texture object by first
scaling the image using the ImageScaler class (since all textures must
have width/height = power of 2; Note: this functionality is now built
into the TextureLoader class, so it could be removed from this loader)
and then creating a Texture with that image.
|
colordiffuseColorspecularColoremissiveColor | Color3f colordiffuseColorspecularColoremissiveColor(Code) | | |
redgreenblue | int redgreenblue(Code) | | |
textureAxis | int textureAxis(Code) | | |
textureCenter | Vector3f textureCenter(Code) | | |
textureSize | Vector3f textureSize(Code) | | |
getColor | Color3f getColor()(Code) | | |
getTexture | Texture getTexture()(Code) | | Return the actual Texture object associated with the current image.
If we've already created a texture for this image, return that;
otherwise create a new Texture
|
getTextureAxis | int getTextureAxis()(Code) | | |
getTextureCenter | Vector3f getTextureCenter()(Code) | | |
getTextureSize | Vector3f getTextureSize()(Code) | | |
isHandled | boolean isHandled()(Code) | | The loader currently only handles CTEX and DTEX texture types
(These either represent the surface color like a decal (CTEX)
or modify the diffuse color (DTEX)
|
readTexture | void readTexture(int length) throws FileNotFoundException, ParsingErrorException(Code) | | Parse the binary file to retrieve all texture parameters for this
surface. If/when we encounter a TIMG parameter, which contains the
filename of an image, then create a new TargaReader object to
read that image file
|
|
|