materialsystem/shaderapidx9/shaderapidx8.cpp
inline IDirect3DBaseTexture* CShaderAPIDx8::GetD3DTexture( ShaderAPITextureHandle_t hTexture )
{
	if ( hTexture == INVALID_SHADERAPI_TEXTURE_HANDLE )
	{
		return NULL;
	}

	AssertValidTextureHandle( hTexture );

	Texture_t& tex = GetTexture( hTexture );
	if ( tex.m_NumCopies == 1 )
	{
		return tex.GetTexture();
	}
	else
	{
		return tex.GetTexture( tex.m_CurrentCopy );
	}
}
//-----------------------------------------------------------------------------
// Gets the texture associated with a texture state...
//-----------------------------------------------------------------------------
Gets the texture associated with a texture state
Gets the texture associated with a texture state
inline IDirect3DBaseTexture* CShaderAPIDx8::GetD3DTexture( ShaderAPITextureHandle_t hTexture )
{
	if ( hTexture == INVALID_SHADERAPI_TEXTURE_HANDLE )
	{
		return NULL;
	}
	AssertValidTextureHandle( hTexture );
	Texture_t& tex = GetTexture( hTexture );
	if ( tex.m_NumCopies == 1 )
	{
		return tex.GetTexture();
	}
	else
	{
		return tex.GetTexture( tex.m_CurrentCopy );
	}
}
inline IDirect3DBaseTexture * CShaderAPIDx8 :: GetD3DTexture ( ShaderAPITextureHandle_t hTexture ) { if ( hTexture == INVALID_SHADERAPI_TEXTURE_HANDLE ) { return NULL ; } AssertValidTextureHandle ( hTexture ) ; Texture_t & tex = GetTexture ( hTexture ) ; if ( tex . m_NumCopies == 1 ) { return tex . GetTexture ( ) ; } else { return tex . GetTexture ( tex . m_CurrentCopy ) ; } }
Gets the texture associated with a texture state...
Gets the texture associated with a texture state ...