Exemplo n.º 1
0
    bool DiInstanceManager::GetSetting( BatchSettingId id, const DiString &materialName ) const
    {
        DI_ASSERT( id < NUM_SETTINGS );

        BatchSettingsMap::const_iterator itor = mBatchSettings.find( materialName );
        if( itor != mBatchSettings.end() )
        {
            return itor->second.setting[id]; 
        }
        return BatchSettings().setting[id];
    }
Exemplo n.º 2
0
	//-----------------------------------------------------------------------
	bool InstanceManager::getSetting( BatchSettingId id, const String &materialName ) const
	{
		assert( id < NUM_SETTINGS );

		BatchSettingsMap::const_iterator itor = mBatchSettings.find( materialName );
		if( itor != mBatchSettings.end() )
			return itor->second.setting[id]; //Return current setting

		//Return default
		return BatchSettings().setting[id];
	}