A complete 3D game development suite written purely in Java.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
package com.jme3.gde.materials;
|
|
|
|
|
|
|
|
import com.jme3.material.MatParam;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author normenhansen
|
|
|
|
*/
|
|
|
|
public class MaterialProperty {
|
|
|
|
|
|
|
|
private String type;
|
|
|
|
private String name;
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
public MaterialProperty() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public MaterialProperty(String type, String name, String value) {
|
|
|
|
this.type = type;
|
|
|
|
this.name = name;
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public MaterialProperty(MatParam param) {
|
|
|
|
this.type = param.getVarType().name();
|
|
|
|
this.name = param.getName();
|
|
|
|
// param.getVarType().
|
|
|
|
//TODO: change to correct string
|
|
|
|
this.value = param.getValue().toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the type
|
|
|
|
*/
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param type the type to set
|
|
|
|
*/
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the name
|
|
|
|
*/
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param name the name to set
|
|
|
|
*/
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the value
|
|
|
|
*/
|
|
|
|
public String getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param value the value to set
|
|
|
|
*/
|
|
|
|
public void setValue(String value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
}
|