public SetConstant ( int index, |
||
index | int | Index of the contant register. |
color | Structure containing 4 packed RGBA color values. | |
리턴 | 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 );
}
GpuProgramParameters::SetConstant ( int index, |
|
GpuProgramParameters::SetConstant ( int index, |
|
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 |
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]); } }