Axiom.Graphics.GpuProgramParameters.SetConstant C# (CSharp) Method

SetConstant() public method

Sends 4 packed floating-point RGBA color values to the program.
public SetConstant ( int index, ColorEx color ) : void
index int Index of the contant register.
color Axiom.Core.ColorEx Structure containing 4 packed RGBA color values.
return void
		public void SetConstant( int index, ColorEx color )
		{
			if ( color != null )
				// verify order of color components
				SetConstant( index++, color.r, color.g, color.b, color.a );
		}

Same methods

GpuProgramParameters::SetConstant ( int index, Matrix4 val ) : void
GpuProgramParameters::SetConstant ( int index, Matrix4 matrices, int count ) : void
GpuProgramParameters::SetConstant ( int index, Vector3 val ) : void
GpuProgramParameters::SetConstant ( int index, Vector4 val ) : void
GpuProgramParameters::SetConstant ( int index, float value ) : void
GpuProgramParameters::SetConstant ( int index, float f0, float f1, float f2, float f3 ) : void
GpuProgramParameters::SetConstant ( int index, int ints ) : void

Usage Example

Beispiel #1
0
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry entry, GpuProgramParameters gpuParams)
 {
     if (this.customParams.Count > entry.Data && this.customParams[entry.Data] != null)
     {
         gpuParams.SetConstant(entry.PhysicalIndex, (Vector4)this.customParams[entry.Data]);
     }
 }
All Usage Examples Of Axiom.Graphics.GpuProgramParameters::SetConstant