Example usage for com.badlogic.gdx.graphics GL20 glVertexAttrib4f

List of usage examples for com.badlogic.gdx.graphics GL20 glVertexAttrib4f

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics GL20 glVertexAttrib4f.

Prototype

public void glVertexAttrib4f(int indx, float x, float y, float z, float w);

Source Link

Usage

From source file:net.mgsx.game.examples.gpu.utils.ShaderProgramEx.java

License:Apache License

/** Sets the given attribute
 * /*from  www  .  j  a  v  a  2s.  c o m*/
 * @param name the name of the attribute
 * @param value1 the first value
 * @param value2 the second value
 * @param value3 the third value
 * @param value4 the fourth value */
public void setAttributef(String name, float value1, float value2, float value3, float value4) {
    GL20 gl = Gdx.gl20;
    int location = fetchAttributeLocation(name);
    gl.glVertexAttrib4f(location, value1, value2, value3, value4);
}