Examples of glUniform3f()


Examples of com.badlogic.gdx.graphics.GL20.glUniform3f()

   * @param value3 the third value */
  public void setUniformf (String name, float value1, float value2, float value3) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchUniformLocation(name);
    gl.glUniform3f(location, value1, value2, value3);
  }

  public void setUniformf (int location, float value1, float value2, float value3) {
    GL20 gl = Gdx.gl20;
    checkManaged();
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glUniform3f()

  }

  public void setUniformf (int location, float value1, float value2, float value3) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    gl.glUniform3f(location, value1, value2, value3);
  }

  /** Sets the uniform with the given name. Throws an IllegalArgumentException in case it is not called in between a
   * {@link #begin()}/{@link #end()} block.
   *
 
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glUniform3f()

   * @param value3 the third value */
  public void setUniformf (String name, float value1, float value2, float value3) {
    GL20 gl = Gdx.graphics.getGL20();
    checkManaged();
    int location = fetchUniformLocation(name);
    gl.glUniform3f(location, value1, value2, value3);
  }

  /** Sets the uniform with the given name. Throws an IllegalArgumentException in case it is not called in between a
   * {@link #begin()}/{@link #end()} block.
   *
 
View Full Code Here

Examples of net.rim.device.api.opengles.GL20.glUniform3f()

        // Set uniform values
        gl.glUniform1i(_textureLoc, 0);

        // Light direction (normalized)
        gl.glUniform3f(_lightDirectionLoc, 0.0f, 0.0f, -1.0f);

        // Ambient light color
        gl.glUniform3f(_lightAmbientLoc, 0.2f, 0.2f, 0.2f);

        // Diffuse light color
View Full Code Here

Examples of net.rim.device.api.opengles.GL20.glUniform3f()

        // Light direction (normalized)
        gl.glUniform3f(_lightDirectionLoc, 0.0f, 0.0f, -1.0f);

        // Ambient light color
        gl.glUniform3f(_lightAmbientLoc, 0.2f, 0.2f, 0.2f);

        // Diffuse light color
        gl.glUniform3f(_lightDiffuseLoc, 1.0f, 1.0f, 1.0f);

        // Load texture
View Full Code Here

Examples of net.rim.device.api.opengles.GL20.glUniform3f()

        // Ambient light color
        gl.glUniform3f(_lightAmbientLoc, 0.2f, 0.2f, 0.2f);

        // Diffuse light color
        gl.glUniform3f(_lightDiffuseLoc, 1.0f, 1.0f, 1.0f);

        // Load texture
        gl.glActiveTexture(GL20.GL_TEXTURE0);
        final EncodedImage encodedImage =
                EncodedImage.getEncodedImageResource("BlackBerry.png");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.