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

SetNamedConstant() public method

Sends 4 packed floating-point RGBA color values to the program.
public SetNamedConstant ( string name, ColorEx color ) : void
name string Name of the param.
color Axiom.Core.ColorEx Structure containing 4 packed RGBA color values.
return void
		public void SetNamedConstant( string name, ColorEx color )
		{
			int index = GetParamIndex( name );
			if ( index != -1 )
				SetConstant( GetParamIndex( name ), color.r, color.g, color.b, color.a );
		}

Same methods

GpuProgramParameters::SetNamedConstant ( string name, Matrix4 val ) : void
GpuProgramParameters::SetNamedConstant ( string name, Matrix4 matrices, int count ) : void
GpuProgramParameters::SetNamedConstant ( string name, Vector3 val ) : void
GpuProgramParameters::SetNamedConstant ( string name, Vector4 val ) : void
GpuProgramParameters::SetNamedConstant ( string name, float val ) : void
GpuProgramParameters::SetNamedConstant ( string name, int val ) : void

Usage Example

Ejemplo n.º 1
0
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry constant, GpuProgramParameters parameters)
 {
     parameters.SetNamedConstant(_scaleFactorName, ScaleFactor);
     parameters.SetNamedConstant(_fineBlockOriginName, FineBlockOrigin);
 }
All Usage Examples Of Axiom.Graphics.GpuProgramParameters::SetNamedConstant