result = cache.createSimpleClone(); if (result.getTextureKey() == null) { result.setTextureKey(tkey); result.setTextureKey(tkey); result.setImage(img); result.setMinificationFilter(tkey.getMinificationFilter());
result = cache.createSimpleClone(); if (result.getTextureKey() == null) { result.setTextureKey(tkey); result.setTextureKey(tkey); result.setImage(img); result.setMinificationFilter(tkey.getMinificationFilter());
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
/** * Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared) * * @return Texture */ public Texture createSimpleClone(final Texture rVal) { rVal.setAnisotropicFilterPercent(_anisotropicFilterPercent); rVal.setBorderColor(_borderColor); rVal.setDepthCompareFunc(_depthCompareFunc); rVal.setDepthCompareMode(_depthCompareMode); rVal.setHasBorder(_hasBorder); rVal.setTextureStoreFormat(_storeFormat); rVal.setRenderedTexturePixelDataType(_rttPixelDataType); rVal.setImage(_image); // NOT CLONED. rVal.setLodBias(_lodBias); rVal.setMinificationFilter(_minificationFilter); rVal.setMagnificationFilter(_magnificationFilter); rVal.setStoreImage(_storeImage); if (getTextureKey() != null) { rVal.setTextureKey(getTextureKey()); } return rVal; }
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
tex.setTextureKey(TextureKey.getRTTKey(tex.getMinificationFilter())); } else if (tex.getTextureIdForContext(context.getGlContextRep()) != 0) { throw new Ardor3dException("Texture is already setup and has id.");
rVal.setTextureMatrix(_texMatrix); if (getTextureKey() != null) { rVal.setTextureKey(getTextureKey());