dispose method

void dispose()

Implementation

void dispose() {
  reset();

  for ( final geometryId in bindingStates.keys ) {
    final programMap = bindingStates[ geometryId ];
    for ( final programId in programMap.keys ) {
      final stateMap = programMap[ programId ];
      for ( final wireframe in stateMap.keys) {
        deleteVertexArrayObject( stateMap[ wireframe ]['object'] );
      }
      stateMap.clear();
    }
    programMap.clear();
  }

  bindingStates.clear();
  attributes.dispose();
}