getTexture: ((type: string, min: string, mag: string, wrap: string, width: number, height: number, channels: number) => texture)

A function hook to create or update a GL texture; via a GL api.

See

Returns

A GL texture, or an object serving that purpose.

Type declaration

    • (type, min, mag, wrap, width, height, channels): texture
    • Parameters

      • type: string

        Any texture data type value.

      • min: string

        Any texture minification filter value.

      • mag: string

        Any texture magnification filter value.

      • wrap: string

        Any texture wrap mode value.

      • width: number

        The width of the texture.

      • height: number

        The height of the texture.

      • channels: number

        The number of channels of the texture.

      Returns texture