List of usage examples for com.badlogic.gdx.graphics GL20 glEnableVertexAttribArray
public void glEnableVertexAttribArray(int index);
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); }