class LwoTexture extends ParserObject
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
blue |
(package private) Color3f |
color |
(package private) Color3f |
diffuseColor |
(package private) Color3f |
emissiveColor |
(package private) int |
flags |
(package private) int |
green |
(package private) java.lang.String |
imageFile |
(package private) static java.util.Hashtable |
imageTable |
(package private) java.lang.String |
mappingType |
(package private) java.lang.String |
nextToken |
(package private) int |
red |
(package private) Color3f |
specularColor |
(package private) int |
textureAxis |
(package private) Vector3f |
textureCenter |
(package private) Vector3f |
textureSize |
(package private) static java.util.Hashtable |
textureTable |
(package private) java.awt.Image |
theImage |
(package private) LWOBFileReader |
theReader |
(package private) java.lang.String |
type |
debugPrinter, EXCEPTION, LINE_TRACE, MISC, NONE, TIME, TRACE, VALUES, WARNING| Constructor and Description |
|---|
LwoTexture(LWOBFileReader reader,
int length,
java.lang.String typename,
int debugVals)
Constructor: calls readTexture() to parse the file and retrieve
texture parameters
|
| Modifier and Type | Method and Description |
|---|---|
(package private) Color3f |
getColor() |
(package private) java.awt.Image |
getImage() |
(package private) java.lang.String |
getMappingType() |
(package private) java.lang.String |
getNextToken() |
(package private) Texture |
getTexture()
Return the actual Texture object associated with the current image.
|
(package private) int |
getTextureAxis() |
(package private) Vector3f |
getTextureCenter() |
(package private) Vector3f |
getTextureSize() |
(package private) java.lang.String |
getType() |
(package private) boolean |
isHandled()
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)
|
(package private) void |
readTexture(int length)
Parse the binary file to retrieve all texture parameters for this
surface.
|
debugOutput, debugOutputLnLWOBFileReader theReader
int red
int green
int blue
Color3f color
Color3f diffuseColor
Color3f specularColor
Color3f emissiveColor
java.awt.Image theImage
java.lang.String imageFile
Vector3f textureSize
Vector3f textureCenter
int textureAxis
int flags
java.lang.String type
java.lang.String mappingType
java.lang.String nextToken
static java.util.Hashtable imageTable
static java.util.Hashtable textureTable
LwoTexture(LWOBFileReader reader, int length, java.lang.String typename, int debugVals) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionjava.lang.String getNextToken()
boolean isHandled()
Texture getTexture()
java.lang.String getType()
Color3f getColor()
java.awt.Image getImage()
Vector3f getTextureSize()
int getTextureAxis()
Vector3f getTextureCenter()
java.lang.String getMappingType()
void readTexture(int length)
throws java.io.FileNotFoundException,
ParsingErrorException
java.io.FileNotFoundExceptionParsingErrorExceptionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.