org.osm2world.core.target.common
Class TextureData

Object
  extended by TextureData

public class TextureData
extends Object

a texture with all information necessary for applying it to an object that has texture coordinates


Nested Class Summary
static class TextureData.Wrap
           
 
Field Summary
 boolean colorable
          whether the texture is modulated with the material color.
 File file
          path to the texture file
 double height
          height of a single tile of the texture
 double width
          width of a single tile of the texture
 TextureData.Wrap wrap
          wrap style of the texture
 
Constructor Summary
TextureData(File file, double width, double height, TextureData.Wrap wrap, boolean colorable)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

file

public final File file
path to the texture file


width

public final double width
width of a single tile of the texture


height

public final double height
height of a single tile of the texture


wrap

public final TextureData.Wrap wrap
wrap style of the texture


colorable

public final boolean colorable
whether the texture is modulated with the material color. Otherwise, a plain white base color is used, resulting in the texture's colors appearing unaltered (except for lighting)

Constructor Detail

TextureData

public TextureData(File file,
                   double width,
                   double height,
                   TextureData.Wrap wrap,
                   boolean colorable)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object