com.jme3.material
Class MatParamTexture

java.lang.Object
  extended by com.jme3.material.MatParam
      extended by com.jme3.material.MatParamTexture
All Implemented Interfaces:
Savable, java.lang.Cloneable

public class MatParamTexture
extends MatParam


Field Summary
 
Fields inherited from class com.jme3.material.MatParam
ffBinding, name, prefixedName, type, value
 
Constructor Summary
MatParamTexture()
           
MatParamTexture(VarType type, java.lang.String name, Texture texture, int unit)
           
 
Method Summary
 void apply(Renderer r, Technique technique)
           
 Texture getTextureValue()
           
 int getUnit()
           
 void read(JmeImporter im)
           
 void setTextureValue(Texture value)
           
 void setUnit(int unit)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class com.jme3.material.MatParam
clone, equals, getFixedFuncBinding, getName, getPrefixedName, getValue, getValueAsString, getVarType, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatParamTexture

public MatParamTexture(VarType type,
                       java.lang.String name,
                       Texture texture,
                       int unit)

MatParamTexture

public MatParamTexture()
Method Detail

getTextureValue

public Texture getTextureValue()

setTextureValue

public void setTextureValue(Texture value)

setUnit

public void setUnit(int unit)

getUnit

public int getUnit()

apply

public void apply(Renderer r,
                  Technique technique)

write

public void write(JmeExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class MatParam
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class MatParam
Throws:
java.io.IOException