src/softbody2/FrameWork/DRGTexture.cpp
HRESULT CDRGTexture::CreateTexture( CImageLoader &TextureLoader, DWORD dwTextureStage, DWORD dwTextureFlags )
{
	Cleanup();

	//copy parameters into member vars
	m_pTextureLoader = &TextureLoader;
	m_pAlphaTextureLoader = NULL;	// No alpha in this case
    dwStage = dwTextureStage;
    dwFlags = dwTextureFlags;

    // Create a bitmap and load the texture file into it,
    if( FAILED( LoadTextureImage() ) )
	{
		m_pTextureLoader = NULL;
        return E_FAIL;
	}

	//
	// This may not be usable after returning from this function so set it to NULL
	//
	m_pTextureLoader = NULL;

    return S_OK;
}
//-----------------------------------------------------------------------------
// Name: D3DTextr_CreateTexture()
// Desc: Loads an image using the passed in CImageLoader and creates a texture from it.
//       The texture can not be used until it is restored, however.
//-----------------------------------------------------------------------------
D3DTextr_CreateTexture()
Desc: Loads an image using the passed in CImageLoader and creates a texture from it.
The texture can not be used until it is restored, however.
D3DTextr_CreateTexture () Desc : Loads an image using the passed in CImageLoader and creates a texture from it . The texture can not be used until it is restored however .
HRESULT CDRGTexture::CreateTexture( CImageLoader &TextureLoader, DWORD dwTextureStage, DWORD dwTextureFlags )
{
	Cleanup();
	m_pTextureLoader = &TextureLoader;
	m_pAlphaTextureLoader = NULL;	
    dwStage = dwTextureStage;
    dwFlags = dwTextureFlags;
    if( FAILED( LoadTextureImage() ) )
	{
		m_pTextureLoader = NULL;
        return E_FAIL;
	}
	 This may not be usable after returning from this function so set it to NULL
	m_pTextureLoader = NULL;
    return S_OK;
}
HRESULT CDRGTexture :: CreateTexture ( CImageLoader & TextureLoader , DWORD dwTextureStage , DWORD dwTextureFlags ) { Cleanup ( ) ; m_pTextureLoader = & TextureLoader ; m_pAlphaTextureLoader = NULL ; dwStage = dwTextureStage ; dwFlags = dwTextureFlags ; if ( FAILED ( LoadTextureImage ( ) ) ) { m_pTextureLoader = NULL ; return E_FAIL ; } m_pTextureLoader = NULL ; return S_OK ; }
Name: D3DTextr_CreateTexture()
Desc: Loads an image using the passed in CImageLoader and creates a texture from it.
Name : D3DTextr_CreateTexture () Desc : Loads an image using the passed in CImageLoader and creates a texture from it .
//copy parameters into member vars // No alpha in this case // Create a bitmap and load the texture file into it, // // This may not be usable after returning from this function so set it to NULL //