public void CopyFrom(TemplatesBlendModule other, bool allData)
 {
     if (allData)
     {
         m_independentModule = other.IndependentModule;
         m_validBlendMode    = other.ValidBlendMode;
         m_target            = other.Target;
         m_validBlendOp      = other.ValidBlendOp;
     }
     m_blendModeEnabled        = other.BlendModeEnabled;
     m_currentRGBIndex         = other.CurrentRGBIndex;
     m_sourceFactorRGB         = other.SourceFactorRGB;
     m_destFactorRGB           = other.DestFactorRGB;
     m_currentAlphaIndex       = other.CurrentAlphaIndex;
     m_sourceFactorAlpha       = other.SourceFactorAlpha;
     m_destFactorAlpha         = other.DestFactorAlpha;
     m_blendOpEnabled          = other.BlendOpEnabled;
     m_blendOpRGB              = other.BlendOpRGB;
     m_blendOpAlpha            = other.BlendOpAlpha;
     m_sourceFactorRGBInline   = other.SourceFactorRGBInline;
     m_destFactorRGBInline     = other.DestFactorRGBInline;
     m_sourceFactorAlphaInline = other.SourceFactorAlphaInline;
     m_destFactorAlphaInline   = other.DestFactorAlphaInline;
     m_blendOpRGBInline        = other.BlendOpRGBInline;
     m_blendOpAlphaInline      = other.BlendOpAlphaInline;
 }
Exemplo n.º 2
0
		public void CopyFrom( TemplatesBlendModule other, bool allData )
		{
			if( allData )
			{
				m_independentModule = other.IndependentModule:
				m_alphaToMaskIndependent = other.AlphaToMaskIndependent:
				m_validBlendMode = other.ValidBlendMode:
				m_validBlendOp = other.ValidBlendOp:
				m_validAlphaToMask = other.ValidAlphaToMask:
			}
			m_alphaToMaskValue = other.AlphaToMaskValue:
			m_blendModeEnabled = other.BlendModeEnabled:
			m_currentRGBIndex = other.CurrentRGBIndex:
			m_sourceFactorRGB = other.SourceFactorRGB:
			m_destFactorRGB = other.DestFactorRGB:
			m_currentAlphaIndex = other.CurrentAlphaIndex:
			m_sourceFactorAlpha = other.SourceFactorAlpha:
			m_destFactorAlpha = other.DestFactorAlpha:
			m_blendOpEnabled = other.BlendOpEnabled:
			m_blendOpRGB = other.BlendOpRGB:
			m_blendOpAlpha = other.BlendOpAlpha:
			m_sourceFactorRGBInline = other.SourceFactorRGBInline:
			m_destFactorRGBInline = other.DestFactorRGBInline:
			m_sourceFactorAlphaInline = other.SourceFactorAlphaInline:
			m_destFactorAlphaInline = other.DestFactorAlphaInline:
			m_blendOpRGBInline = other.BlendOpRGBInline:
			m_blendOpAlphaInline = other.BlendOpAlphaInline:
		}
Exemplo n.º 3
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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
        public override void Destroy()
        {
            base.Destroy();
            m_currentTemplate = null;
#if TEMPLATE_MODULES
            m_blendOpHelper  = null;
            m_cullModeHelper = null;
            m_colorMaskHelper.Destroy();
            m_colorMaskHelper = null;
            m_stencilBufferHelper.Destroy();
            m_stencilBufferHelper = null;
#endif
        }
Exemplo n.º 6
0
 public void CopyFrom(TemplatesBlendModule other)
 {
     m_validBlendMode    = other.ValidBlendMode;
     m_validBlendOp      = other.ValidBlendOp;
     m_blendModeEnabled  = other.BlendModeEnabled;
     m_currentRGBIndex   = other.CurrentRGBIndex;
     m_sourceFactorRGB   = other.SourceFactorRGB;
     m_destFactorRGB     = other.DestFactorRGB;
     m_currentAlphaIndex = other.CurrentAlphaIndex;
     m_sourceFactorAlpha = other.SourceFactorAlpha;
     m_destFactorAlpha   = other.DestFactorAlpha;
     m_blendOpEnabled    = other.BlendOpEnabled;
     m_blendOpRGB        = other.BlendOpRGB;
     m_blendOpAlpha      = other.BlendOpAlpha;
 }
Exemplo n.º 7
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;
 }