wtc-gl
    Preparing search index...

    Class Uniform

    A uniform is just a basic container for simple uniform information.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    kind: Kind

    The uniform kind. Currently unused but useful in future for testing against supplied bind type.

    name: string

    The uniform name. Currently unused, but for future use in auto-parsing name

    The uniform value.

    Methods

    • Binds the uniform to the program.

      Parameters

      • program: Program

        The program to which to bind the uniform.

      • location: WebGLUniformLocation

        A flag representing the uniform's location in memory.

      • activeUniform: WTCGLActiveInfo

        Representes an extention of the standard Web GL active info for uniform.

      Returns void

    • Set the uniform in the stated program.

      Parameters

      • gl: WTCGLRenderingContext

        The WTCGL rendering context object.

      • type: number

        A GLEnum representing the passed uniform type.

      • location: WebGLUniformLocation

        The uniform location (just an address to a uniform in program space)

      • value: WTCGLUniformValue = ...

        The value of the uniform

      Returns void