Interface Parameter

  • All Known Implementing Classes:
    Parameter.CppProxy

    public interface Parameter
    Class, represent shader parameter.
    • Method Detail

      • getName

        @NonNull
        java.lang.String getName()
        Returns:
        parameter name (string)
      • setInteger

        void setInteger​(int value)
        set parameter integer value.
        Parameters:
        value - (int)
      • getInteger

        int getInteger()
        return parameter int value. Throw is type is not equal type, which was added earlier.
      • setReal

        void setReal​(float value)
        set parameter real value.
        Parameters:
        value - (float)
      • getReal

        float getReal()
        return parameter f32 value. Throw is type is not equal type, which was added earlier.
      • setX

        void setX​(float value)
        set x of vec3/vec4 value only.
        Parameters:
        value - (f32)
      • setY

        void setY​(float value)
        set y of vec3/vec4 value only.
        Parameters:
        value - (f32)
      • setZ

        void setZ​(float value)
        set z of vec3/vec4 value only.
        Parameters:
        value - (f32)
      • setW

        void setW​(float value)
        set w of vec4 value only.
        Parameters:
        value - (f32)
      • setVector3

        void setVector3​(@NonNull
                        Vec3 value)
        set parameter vec3 value.
        Parameters:
        value - (vec3)
      • getVector3

        @NonNull
        Vec3 getVector3()
        return parameter vec3 value. Throw is type is not equal type, which was added earlier.
      • setVector4

        void setVector4​(@NonNull
                        Vec4 value)
        set parameter vec4 value.
        Parameters:
        value - (vec4)
      • getVector4

        @NonNull
        Vec4 getVector4()
        return parameter vec4 value. Throw is type is not equal type, which was added earlier.
      • setMat2x4

        void setMat2x4​(@NonNull
                       Mat2x4 value)
        set parameter mat2x4 value.
        Parameters:
        value - (mat2x4)
      • getMat2x4

        @NonNull
        Mat2x4 getMat2x4()
        return parameter mat2x4 value. Throw is type is not equal type, which was added earlier.
      • setMat3x4

        void setMat3x4​(@NonNull
                       Mat3x4 value)
        set parameter mat3x4 value.
        Parameters:
        value - (mat3x4)
      • getMat3x4

        @NonNull
        Mat3x4 getMat3x4()
        return parameter mat3x4 value. Throw is type is not equal type, which was added earlier.
      • setMat4x4

        void setMat4x4​(@NonNull
                       Mat4x4 value)
        set parameter mat4x4 value.
        Parameters:
        value - (mat4x4)
      • getMat4x4

        @NonNull
        Mat4x4 getMat4x4()
        return parameter mat4x4 value. Throw is type is not equal type, which was added earlier.
      • create

        @Nullable
        static Parameter create​(@NonNull
                                java.lang.String name)
        Fabric method for parameter creating.
        Parameters:
        name - (string): parameter name.
        Returns:
        created parameter (parameter)