|
|
@ -77,6 +77,7 @@ public class TextureKey extends AssetKey<Texture> { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public Object createClonedInstance(Object asset){ |
|
|
|
public Object createClonedInstance(Object asset){ |
|
|
|
Texture tex = (Texture) asset; |
|
|
|
Texture tex = (Texture) asset; |
|
|
|
return tex.createSimpleClone(); |
|
|
|
return tex.createSimpleClone(); |
|
|
@ -140,6 +141,14 @@ public class TextureKey extends AssetKey<Texture> { |
|
|
|
this.generateMips = generateMips; |
|
|
|
this.generateMips = generateMips; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean equals(Object other){ |
|
|
|
|
|
|
|
if (!(other instanceof TextureKey)){ |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return super.equals(other) && isFlipY() == ((TextureKey)other).isFlipY(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void write(JmeExporter ex) throws IOException{ |
|
|
|
public void write(JmeExporter ex) throws IOException{ |
|
|
|
super.write(ex); |
|
|
|
super.write(ex); |
|
|
|
OutputCapsule oc = ex.getCapsule(this); |
|
|
|
OutputCapsule oc = ex.getCapsule(this); |
|
|
|