|
TextureCacheGetTextureFromObject Method |
Check cache and tries to find a texture that was created from the originalObject.
If texture is not found, null is returned.
The texture needs to be disposed when it is not used any more.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax public SharedDXResourceWrapper<ShaderResourceView> GetTextureFromObject(
Object originalObject,
out bool hasTransparency
)
Parameters
- originalObject Object
- object used to create the texture
- hasTransparency Boolean
- returns true if texture has transparent colors
Return Value
SharedDXResourceWrapperShaderResourceViewShaderResourceView wrapped by SharedDXResourceWrapper
See Also