TextureSlot
Inheritance: java.lang.Object
public class TextureSlot
纹理槽位于 Material,可通过材质实例进行枚举。 示例:
var mat = new LambertMaterial();
var tex = new Texture();
tex.setFileName("diffuse.png");
mat.setTexture(Material.MAP_DIFFUSE, tex);
for(var slot : mat)
{
System.out.printf("Texture slot %s = %s", slot.getSlotName(), slot.getTexture());
}
方法
| 方法 | 描述 |
|---|---|
| equals(Object arg0) | |
| getClass() | |
| getSlotName() | 指示此纹理将绑定到何处的槽名称。 |
| getTexture() | 将绑定到材质的纹理。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getSlotName()
public String getSlotName()
指示此纹理将绑定到何处的槽名称。
Returns: java.lang.String - 指示此纹理将绑定到何处的槽名称。
getTexture()
public TextureBase getTexture()
将绑定到材质的纹理。
Returns: TextureBase - The texture that will be bounded to the material.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |