Location renderer: allow external shaders, move existing to glsl files, closes #317

This commit is contained in:
Emux
2017-03-04 19:13:06 +02:00
parent d1ce52ef52
commit f061e06d94
6 changed files with 143 additions and 120 deletions

View File

@@ -22,6 +22,7 @@ import android.os.Bundle;
import org.oscim.core.MapPosition;
import org.oscim.layers.LocationLayer;
import org.oscim.renderer.LocationRenderer;
public class LocationActivity extends SimpleMapActivity implements LocationListener {
private LocationLayer locationLayer;
@@ -35,6 +36,7 @@ public class LocationActivity extends SimpleMapActivity implements LocationListe
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationLayer = new LocationLayer(mMap);
locationLayer.locationRenderer.setShader("location_1_reverse");
locationLayer.setEnabled(false);
mMap.layers().add(locationLayer);
}