Class GlUtil.Uniform

    • Field Detail

      • name

        public final String name
        The name of the uniform in the GLSL sources.
    • Constructor Detail

      • Uniform

        public Uniform​(String name,
                       int location,
                       int type)
        Creates a new uniform.
    • Method Detail

      • setSamplerTexId

        public void setSamplerTexId​(int texId,
                                    int unit)
        Configures bind() to use the specified texId for this sampler uniform.
        Parameters:
        texId - The GL texture identifier from which to sample.
        unit - The GL texture unit index.
      • setFloat

        public void setFloat​(float value)
        Configures bind() to use the specified float value for this uniform.
      • setFloats

        public void setFloats​(float[] value)
        Configures bind() to use the specified float[] value for this uniform.