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

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

Introduction

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

Prototype

public void glDisableVertexAttribArray(int index);

Source Link

Usage

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);
}