Exemplo n.º 1
0
 public MyBlendState(bool enabled, BlendingFactorSrc colorSource, BlendEquationMode colorEquation, BlendingFactorDest colorDest,
                     BlendingFactorSrc alphaSource, BlendEquationMode alphaEquation, BlendingFactorDest alphaDest)
 {
     this.enabled       = enabled;
     this.colorSource   = (global::OpenTK.Graphics.OpenGL.BlendingFactorSrc)colorSource;
     this.colorEquation = (global::OpenTK.Graphics.OpenGL.BlendEquationMode)colorEquation;
     this.colorDest     = (global::OpenTK.Graphics.OpenGL.BlendingFactorDest)colorDest;
     this.alphaSource   = (global::OpenTK.Graphics.OpenGL.BlendingFactorSrc)alphaSource;
     this.alphaEquation = (global::OpenTK.Graphics.OpenGL.BlendEquationMode)alphaEquation;
     this.alphaDest     = (global::OpenTK.Graphics.OpenGL.BlendingFactorDest)alphaDest;
 }
Exemplo n.º 2
0
		public CacheBlendState(bool enabled,
			global::OpenTK.Graphics.OpenGL.BlendingFactorSrc colorSource,
			global::OpenTK.Graphics.OpenGL.BlendEquationMode colorEquation,
			global::OpenTK.Graphics.OpenGL.BlendingFactorDest colorDest,
			global::OpenTK.Graphics.OpenGL.BlendingFactorSrc alphaSource,
			global::OpenTK.Graphics.OpenGL.BlendEquationMode alphaEquation,
			global::OpenTK.Graphics.OpenGL.BlendingFactorDest alphaDest)
		{
			this.Enabled = enabled;
			this.colorSource = (global::OpenTK.Graphics.OpenGL.BlendingFactorSrc)colorSource;
			this.colorEquation = (global::OpenTK.Graphics.OpenGL.BlendEquationMode)colorEquation;
			this.colorDest = (global::OpenTK.Graphics.OpenGL.BlendingFactorDest)colorDest;
			this.alphaSource = (global::OpenTK.Graphics.OpenGL.BlendingFactorSrc)alphaSource;
			this.alphaEquation = (global::OpenTK.Graphics.OpenGL.BlendEquationMode)alphaEquation;
			this.alphaDest = (global::OpenTK.Graphics.OpenGL.BlendingFactorDest)alphaDest;
		}