public void end( GL2ES3 gl ) { gl.glDisableVertexAttribArray( this.handles.inSt ); gl.glDisableVertexAttribArray( this.handles.inXy ); gl.glUseProgram( 0 ); gl.glBindVertexArray( 0 ); }
public void begin( GL2ES3 gl ) { if ( this.handles == null ) { this.handles = new CursorLabelProgramHandles( gl ); } gl.glBindVertexArray( defaultVertexAttributeArray( gl ) ); gl.glUseProgram( this.handles.program ); gl.glEnableVertexAttribArray( this.handles.inSt ); gl.glEnableVertexAttribArray( this.handles.inXy ); }
gl2es3.glGenVertexArrays(1, tmp, 0); defaultVAO = tmp[0]; gl2es3.glBindVertexArray(defaultVAO);
final int[] tmp = new int[] { defaultVAO }; final GL2ES3 gl2es3 = gl.getRootGL().getGL2ES3(); gl2es3.glBindVertexArray(0); gl2es3.glDeleteVertexArrays(1, tmp, 0); defaultVAO = 0;