Beispiel #1
0
  @Override
  public boolean onTouchEvent(MotionEvent event) {
    renderer.touchAt(event);

    return true;
  }
Beispiel #2
0
 public void setFragmentShader(String src, float quality) {
   onPause();
   renderer.setFragmentShader(src, quality);
   onResume();
 }
Beispiel #3
0
  @Override
  public void onPause() {
    super.onPause();

    renderer.unregisterListeners();
  }
  private void updateWallpaper() {
    ShaderRenderer renderer = ShaderWallpaperService.renderer;

    if (renderer != null) renderer.fragmentShader = shaderEditor.getCleanText();

    ShaderListPreference.saveShader(getSharedPreferences(), shaderSpinner.getSelectedItemId());
  }