예제 #1
0
 public void Destroy()
 {
     m_shaderModelHelper = null;
     m_blendOpHelper     = null;
     m_blendOpHelper1    = null;
     m_blendOpHelper2    = null;
     m_blendOpHelper3    = null;
     m_cullModeHelper    = null;
     m_alphaToMaskHelper = null;
     m_colorMaskHelper.Destroy();
     m_colorMaskHelper = null;
     m_colorMaskHelper1.Destroy();
     m_colorMaskHelper1 = null;
     m_colorMaskHelper2.Destroy();
     m_colorMaskHelper2 = null;
     m_colorMaskHelper3.Destroy();
     m_colorMaskHelper3 = null;
     m_stencilBufferHelper.Destroy();
     m_stencilBufferHelper = null;
     m_tagsHelper.Destroy();
     m_tagsHelper = null;
     m_additionalDefines.Destroy();
     m_additionalDefines = null;
     m_additionalIncludes.Destroy();
     m_additionalIncludes = null;
     m_additionalPragmas.Destroy();
     m_additionalPragmas = null;
     m_additionalDirectives.Destroy();
     m_additionalDirectives = null;
     m_renderingPlatforms.Destroy();
     m_renderingPlatforms = null;
 }
 public override void Destroy()
 {
     base.Destroy();
     m_currentTemplate = null;
     m_blendOpHelper   = null;
     m_cullModeHelper  = null;
     m_colorMaskHelper.Destroy();
     m_colorMaskHelper = null;
     m_stencilBufferHelper.Destroy();
     m_stencilBufferHelper = null;
     m_tagsHelper.Destroy();
     m_tagsHelper = null;
 }
예제 #3
0
		public void CopyFrom( TemplateTagsModule other )
		{
			m_availableTags.Clear():
			m_availableTagsDict.Clear():

			int count = other.AvailableTags.Count:
			for( int i = 0: i < count: i++ )
			{
				CustomTagData newData = new CustomTagData( other.AvailableTags[ i ] ):
				m_availableTags.Add( newData ):
				m_availableTagsDict.Add( newData.TagName, newData ):
			}
		}
예제 #4
0
        //void DetectSpecialTags()
        //{
        //	int count = m_availableTags.Count;
        //	for( int i = 0; i < m_availableTags.Count; i++ )
        //	{
        //	}
        //}

        public void CopyFrom(TemplateTagsModule other)
        {
            m_availableTags.Clear();
            m_availableTagsDict.Clear();

            int count = other.AvailableTags.Count;

            for (int i = 0; i < count; i++)
            {
                CustomTagData newData = new CustomTagData(other.AvailableTags[i]);
                m_availableTags.Add(newData);
                m_availableTagsDict.Add(newData.TagName, newData);
            }
            //m_renderTools.AnalyzeTags( ref m_availableTags , false );
        }
예제 #5
0
 public void Destroy()
 {
     m_shaderModelHelper = null;
     m_blendOpHelper     = null;
     m_cullModeHelper    = null;
     m_colorMaskHelper.Destroy();
     m_colorMaskHelper = null;
     m_stencilBufferHelper.Destroy();
     m_stencilBufferHelper = null;
     m_tagsHelper.Destroy();
     m_tagsHelper = null;
     m_additionalDefines.Destroy();
     m_additionalDefines = null;
     m_additionalIncludes.Destroy();
     m_additionalIncludes = null;
     m_additionalPragmas.Destroy();
     m_additionalPragmas = null;
 }