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

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

Introduction

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

Prototype

public void glUniform3i(int location, int x, int y, int z);

Source Link

Usage

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

License:Apache License

/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work.
 * /* www .j  a va 2  s . c  o m*/
 * @param name the name of the uniform
 * @param value1 the first value
 * @param value2 the second value
 * @param value3 the third value */
public void setUniformi(String name, int value1, int value2, int value3) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchUniformLocation(name);
    gl.glUniform3i(location, value1, value2, value3);
}

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

License:Apache License

public void setUniformi(int location, int value1, int value2, int value3) {
    GL20 gl = Gdx.gl20;
    checkManaged();/*  www .j  a  v  a  2s.  c  o  m*/
    gl.glUniform3i(location, value1, value2, value3);
}