List of usage examples for com.badlogic.gdx.graphics GL20 glUniform1i
public void glUniform1i(int location, int x);
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 v a2 s .co m*/ * @param name the name of the uniform * @param value the value */ public void setUniformi(String name, int value) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform1i(location, value); }
From source file:net.mgsx.game.examples.gpu.utils.ShaderProgramEx.java
License:Apache License
public void setUniformi(int location, int value) { GL20 gl = Gdx.gl20; checkManaged();/*from w w w .ja v a2s . c om*/ gl.glUniform1i(location, value); }