예제 #1
0
    void TRenderCommand::Decode( uint64 nKey )
    {
        Key k;
        BaseKey base;
        k.nKey = nKey;
        base = k.nBase;

        // Get the depth
        m_fDepth = k.nBase.fDepth;

        // Now get the handles
        m_nTransparant  = DecodeTransparant( nKey );
        m_nTexture      = DecodeTexture( nKey );
        m_nSampler      = DecodeSampler( nKey );
        m_nMaterial     = DecodeMaterial( nKey );
        m_nMesh         = DecodeMesh( nKey );
    }
예제 #2
0
void xmlLeafLoad::DecodeTextures( TiXmlElement* root )
{
	//извлечь данные о текстурах

	//извлечение информации из узла XML
	TiXmlNode* node = root->FirstChild( m_LeafNames.m_sTextures.c_str() );

	if ( node )
	{
		TiXmlElement* pTextures = node->ToElement();

		//извлечь имя элемента
		const char *_name = pTextures->Value();
		std::string _sElem( _name );

		//извлечь данные о текстуре
		DecodeTexture( pTextures );
	}

}