Click or drag to resize
AB4D logo

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.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
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

SharedDXResourceWrapperShaderResourceView
ShaderResourceView wrapped by SharedDXResourceWrapper
See Also