API reference
Preparing search index…

Glsl.Ivec4

GLSL ivec4 with four signed 32-bit integer components.

Type hierarchy

Hierarchy

  • Vector4<"i32">
    • Ivec4
Source & inheritance
Member directory9

Constructors

Properties

Accessors

Constructors

  • Creates a zero vector, specifies four components, or copies a vector; construction from Color preserves RGBA values from 0 to 255.

    Parameters

    ...args
    NumericArguments

    Returns

    Source & inheritance

Accessors

  • get scalarType(): T

    Storage type of components: i32 or f32.

    Returns

    T
    Source & inheritance
  • get w(): number

    W component.

    Returns

    number
    Source & inheritance
  • set w(value: number): void

    Sets the W component, converting to the storage type.

    Parameters

    value
    number

    Returns

    void
    Source & inheritance
  • get x(): number

    X component.

    Returns

    number
    Source & inheritance
  • set x(value: number): void

    Sets the X component, converting to the storage type.

    Parameters

    value
    number

    Returns

    void
    Source & inheritance
  • get y(): number

    Y component.

    Returns

    number
    Source & inheritance
  • set y(value: number): void

    Sets the Y component, converting to the storage type.

    Parameters

    value
    number

    Returns

    void
    Source & inheritance
  • get z(): number

    Z component.

    Returns

    number
    Source & inheritance
  • set z(value: number): void

    Sets the Z component, converting to the storage type.

    Parameters

    value
    number

    Returns

    void
    Source & inheritance

Symbol members

"[mutableValue]": true
Source & inheritance
  • get "[glslNative]"(): NativeValueHandle<K>

    Returns

    NativeValueHandle<K>
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0