List of usage examples for com.badlogic.gdx.graphics GL20 glDisableVertexAttribArray
public void glDisableVertexAttribArray(int index);
From source file:net.mgsx.game.examples.gpu.utils.ShaderProgramEx.java
License:Apache License
/** Disables the vertex attribute with the given name * //from ww w. j a va 2s .c o m * @param name the vertex attribute name */ public void disableVertexAttribute(String name) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchAttributeLocation(name); if (location == -1) return; gl.glDisableVertexAttribArray(location); }
From source file:net.mgsx.game.examples.gpu.utils.ShaderProgramEx.java
License:Apache License
public void disableVertexAttribute(int location) { GL20 gl = Gdx.gl20; checkManaged(); gl.glDisableVertexAttribArray(location); }