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

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

Introduction

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

Prototype

public void glEnableVertexAttribArray(int index);

Source Link

Usage

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

License:Apache License

/** Enables the vertex attribute with the given name
 * /*from   www.ja va  2s.  c o m*/
 * @param name the vertex attribute name */
public void enableVertexAttribute(String name) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchAttributeLocation(name);
    if (location == -1)
        return;
    gl.glEnableVertexAttribArray(location);
}

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

License:Apache License

public void enableVertexAttribute(int location) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    gl.glEnableVertexAttribArray(location);
}