TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IShaderParameter in Tinman.AddOns.Rendering

Represents a parameter of a shader effect.

interface IShaderParameter base of ShaderParameter

See also:

IShaderEffect

Attributes

Count

Returns the number of array elements.

property Count { get }
type int32
value [>=1] The number of elements.

Name

The name of this shader parameter.

property Name { get }
type string
value [not-null] The parameter name.

Type

The type of this shader parameter.

property Type { get }
type ShaderParameterType
value The parameter type.

Methods

SetMatrix2

Sets the value of this shader effect parameter.

method SetMatrix2 (Mat2F value, bool transpose = false, int32 index = 0)
params value The parameter value.
  transpose Use transpose of value? Defaults to false.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Matrix2

SetMatrix3

Sets the value of this shader effect parameter.

method SetMatrix3 (Mat3F value, bool transpose = false, int32 index = 0)
params value The parameter value.
  transpose Use transpose of value? Defaults to false.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Matrix3

SetMatrix4

Sets the value of this shader effect parameter.

method SetMatrix4 (Mat4F value, bool transpose = false, int32 index = 0)
params value The parameter value.
  transpose Use transpose of value? Defaults to false.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Matrix4

SetScalar

Sets the value of this shader effect parameter.

method SetScalar (float32 value, int32 index = 0)
params value The parameter value.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Float

SetTexture

Sets the texture of this shader effect parameter.

method SetTexture (ITexture2D texture, int32 index = 0)
params texture The parameter texture.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Texture

Sets the texture of this shader effect parameter.

method SetTexture (ITextureCube texture, int32 index = 0)
params texture The parameter texture.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.TextureCube

SetTextureNull

Sets the texture of this shader effect parameter to null.

method SetTextureNull (int32 index = 0)
params index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Texture

SetVector2

Sets the value of this shader effect parameter.

method SetVector2 (Vec2F value, int32 index = 0)
params value The parameter value.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector2

SetVector3

Sets the value of this shader effect parameter.

method SetVector3 (Vec3F value, int32 index = 0)
params value The parameter value.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3

SetVector4

Sets the value of this shader effect parameter.

method SetVector4 (Vec4F value, int32 index = 0)
params value The parameter value.
  index [0..Count-1] Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector4

Extensions

GetTypeName

Returns a human-readable expression that describes the type of this shader parameter.

method GetTypeName ()
type string
returns [not-null] The parameter type description.

SetColor

Sets the value of this shader effect parameter.

method SetColor (int32 argb32, int32 index = 0)
params argb32 The parameter value (32-bit A8R8G8B8 compressed sRGB).
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3
ShaderParameterType.Vector4

Sets the value of this shader effect parameter.

method SetColor (int64 argb64, int32 index = 0)
params argb64 The parameter value (64-bit A16R16G16B16 linear sRGB).
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3
ShaderParameterType.Vector4

Sets the value of this shader effect parameter.

method SetColor (ColorF color, int32 index = 0)
params color The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3
ShaderParameterType.Vector4

SetMatrix2

Sets the value of this shader effect parameter.

method SetMatrix2 (Mat2D value, bool transpose = false, int32 index = 0)
params value The parameter value.
  transpose Use transpose of value? Defaults to false.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Matrix2

SetMatrix3

Sets the value of this shader effect parameter.

method SetMatrix3 (Mat3D value, bool transpose = false, int32 index = 0)
params value The parameter value.
  transpose Use transpose of value? Defaults to false.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Matrix3

SetMatrix4

Sets the value of this shader effect parameter.

method SetMatrix4 (Mat4D value, bool transpose = false, int32 index = 0)
params value The parameter value.
  transpose Use transpose of value? Defaults to false.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Matrix4

SetRange

Sets the value of this shader effect parameter.

method SetRange (RangeF value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

Remarks:

Start is mapped to x, End is mapped to y.

See also:

ShaderParameterType.Matrix4

Sets the value of this shader effect parameter.

method SetRange (RangeD value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

Remarks:

Start is mapped to x, End is mapped to y.

See also:

ShaderParameterType.Matrix4

SetTexture

Sets the texture of this shader effect parameter.

method SetTexture (ITexture texture, int32 index = 0)
params texture The parameter texture.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Texture
ShaderParameterType.TextureCube

SetVector2

Sets the value of this shader effect parameter.

method SetVector2 (Vec2D value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector2

Sets the value of this shader effect parameter.

method SetVector2 (float32 x, float32 y, int32 index = 0)
params x X-component of parameter value.
  y Y-component of parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector2

SetVector2Extra

Sets the value of this shader effect parameter.

method SetVector2Extra (Vec2D value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3
PositionPrecision.FloatDelta

SetVector3

Sets the value of this shader effect parameter.

method SetVector3 (Vec3D value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3

Sets the value of this shader effect parameter.

method SetVector3 (float32 x, float32 y, float32 z, int32 index = 0)
params x X-component of parameter value.
  y Y-component of parameter value.
  z Z-component of parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3

SetVector3Extra

Sets the value of this shader effect parameter.

method SetVector3Extra (Vec3D value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3
PositionPrecision.FloatDelta

SetVector4

Sets the value of this shader effect parameter.

method SetVector4 (Vec4D value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector4

Sets the value of this shader effect parameter.

method SetVector4 (float32 x, float32 y, float32 z, float32 w, int32 index = 0)
params x X-component of parameter value.
  y Y-component of parameter value.
  z Z-component of parameter value.
  w W-component of parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector4

SetVector4Extra

Sets the value of this shader effect parameter.

method SetVector4Extra (Vec4D value, int32 index = 0)
params value The parameter value.
  index Array element index. Defaults to 0.

See also:

ShaderParameterType.Vector3
PositionPrecision.FloatDelta