public void end(GL2ES2 gl) { gl.glDisableVertexAttribArray(this.handles.inXy); gl.glDisableVertexAttribArray(this.handles.inFlags); gl.glDisableVertexAttribArray(this.handles.inMileage); gl.glDisableVertexAttribArray(this.handles.inRgba); gl.glUseProgram(0); gl.getGL3().glBindVertexArray(0); }
public void begin(GL2ES2 gl) { if (this.handles == null) { this.handles = new LineProgramHandles(gl); } gl.getGL3().glBindVertexArray(GLUtils.defaultVertexAttributeArray(gl)); gl.glUseProgram(this.handles.program); gl.glEnableVertexAttribArray(this.handles.inXy); gl.glEnableVertexAttribArray(this.handles.inFlags); gl.glEnableVertexAttribArray(this.handles.inMileage); gl.glEnableVertexAttribArray(this.handles.inRgba); }