@Override public void unbind (ShaderProgram shader, int[] locations) { final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } isBound = false; }
@Override public void unbind (ShaderProgram shader, int[] locations) { final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } isBound = false; }
@Override public void unbind (final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }
@Override public void unbind (final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }
@Override public void unbind (final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }
@Override public void unbind (final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }
private void unbindAttributes (ShaderProgram shaderProgram) { if (cachedLocations == null) { return; } int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { int location = cachedLocations.get(i); if (location < 0) { continue; } shaderProgram.disableVertexAttribute(location); } }
private void unbindAttributes (ShaderProgram shaderProgram) { if (cachedLocations == null) { return; } int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { int location = cachedLocations.get(i); if (location < 0) { continue; } shaderProgram.disableVertexAttribute(location); } }
private void unbindAttributes (ShaderProgram shaderProgram) { if (cachedLocations.size == 0) { return; } int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { int location = cachedLocations.get(i); if (location < 0) { continue; } shaderProgram.disableVertexAttribute(location); } }
private void unbindAttributes (ShaderProgram shaderProgram) { if (cachedLocations.size == 0) { return; } int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { int location = cachedLocations.get(i); if (location < 0) { continue; } shaderProgram.disableVertexAttribute(location); } }
@Override public void unbind (ShaderProgram shader, int[] locations) { final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } isBound = false; }
@Override public void unbind (final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }
@Override public void unbind (final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) shader.disableVertexAttribute(location); } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }
private void unbindAttributes (ShaderProgram shaderProgram) { if (cachedLocations.size == 0) { return; } int numAttributes = attributes.size(); for (int i = 0; i < numAttributes; i++) { int location = cachedLocations.get(i); if (location < 0) { continue; } shaderProgram.disableVertexAttribute(location); } }
@Override public void unbind(final ShaderProgram shader, final int[] locations) { final GL20 gl = Gdx.gl20; final int numAttributes = attributes.size(); if (locations == null) { for (int i = 0; i < numAttributes; i++) { shader.disableVertexAttribute(attributes.get(i).alias); } } else { for (int i = 0; i < numAttributes; i++) { final int location = locations[i]; if (location >= 0) { shader.disableVertexAttribute(location); } } } gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0); isBound = false; }