Engine/sdk/src/d3dutil.cpp
HRESULT D3DUtil_CreateTexture( LPDIRECT3DDEVICE8 pd3dDevice, TCHAR* strTexture,
                               LPDIRECT3DTEXTURE8* ppTexture, D3DFORMAT d3dFormat )
{
    // Get the path to the texture
    TCHAR strPath[MAX_PATH];
    // DXUtil_FindMediaFile( strPath, strTexture );

    // Create the texture using D3DX
    return D3DXCreateTextureFromFileEx( pd3dDevice, strPath, 
                D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, d3dFormat, 
                D3DPOOL_MANAGED, D3DX_FILTER_TRIANGLE|D3DX_FILTER_MIRROR, 
                D3DX_FILTER_TRIANGLE|D3DX_FILTER_MIRROR, 0, NULL, NULL, ppTexture );
}
//-----------------------------------------------------------------------------
// Name: D3DUtil_CreateTexture()
// Desc: Helper function to create a texture. It checks the root path first,
//       then tries the DXSDK media path (as specified in the system registry).
//-----------------------------------------------------------------------------
D3DUtil_CreateTexture()
Desc: Helper function to create a texture. It checks the root path first,
then tries the DXSDK media path (as specified in the system registry).
D3DUtil_CreateTexture () Desc : Helper function to create a texture . It checks the root path first then tries the DXSDK media path ( as specified in the system registry ) .
HRESULT D3DUtil_CreateTexture( LPDIRECT3DDEVICE8 pd3dDevice, TCHAR* strTexture,
                               LPDIRECT3DTEXTURE8* ppTexture, D3DFORMAT d3dFormat )
{
    TCHAR strPath[MAX_PATH];
    return D3DXCreateTextureFromFileEx( pd3dDevice, strPath, 
                D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, d3dFormat, 
                D3DPOOL_MANAGED, D3DX_FILTER_TRIANGLE|D3DX_FILTER_MIRROR, 
                D3DX_FILTER_TRIANGLE|D3DX_FILTER_MIRROR, 0, NULL, NULL, ppTexture );
}
HRESULT D3DUtil_CreateTexture ( LPDIRECT3DDEVICE8 pd3dDevice , TCHAR * strTexture , LPDIRECT3DTEXTURE8 * ppTexture , D3DFORMAT d3dFormat ) { TCHAR strPath [ MAX_PATH ] ; return D3DXCreateTextureFromFileEx ( pd3dDevice , strPath , D3DX_DEFAULT , D3DX_DEFAULT , D3DX_DEFAULT , 0 , d3dFormat , D3DPOOL_MANAGED , D3DX_FILTER_TRIANGLE | D3DX_FILTER_MIRROR , D3DX_FILTER_TRIANGLE | D3DX_FILTER_MIRROR , 0 , NULL , NULL , ppTexture ) ; }
Name: D3DUtil_CreateTexture()
Desc: Helper function to create a texture.
Name : D3DUtil_CreateTexture () Desc : Helper function to create a texture .
// Get the path to the texture // DXUtil_FindMediaFile( strPath, strTexture ); // Create the texture using D3DX