Project

General

Profile

« Previous | Next » 

Revision e72c53e5

Added by Leszek Koltunski over 6 years ago

Reengineer DistortedScreen

View differences:

build.gradle
18 18
}
19 19

  
20 20
dependencies {
21
    compile project(':distorted-library')
21
    api project(':distorted-library')
22 22
    implementation 'com.android.support:support-v4:27.1.1'
23 23
}
src/main/java/org/distorted/examples/deform/DeformRenderer.java
134 134
      movingShearDynamic.add(vShear[0]);
135 135

  
136 136
      mScreen = new DistortedScreen();
137
      mScreen.setDebug(DistortedScreen.DEBUG_FPS);
137
      mScreen.showFPS();
138 138

  
139 139
      mMovingDistort   = new VertexEffectDistort(movingDistortDynamic, mTouchPoint, mRegion);
140 140
      mMovingDeform    = new VertexEffectDeform(movingDeformDynamic, mTouchPoint, mRegion);
src/main/java/org/distorted/examples/glow/GlowRenderer.java
82 82
      mScreen = new DistortedScreen();
83 83
      mScreen.attach(mLeaf, effects, new MeshFlat(1,1) );
84 84
      mScreen.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
85
      mScreen.setDebug(DistortedScreen.DEBUG_FPS);
85
      mScreen.showFPS();
86 86
      }
87 87

  
88 88
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/examples/multiblur/MultiblurRenderer.java
109 109
      mQuat2 = new Static4D(0,0,0,1);  // quaternions
110 110

  
111 111
      mScreen = new DistortedScreen();
112
      mScreen.setDebug(DistortedScreen.DEBUG_FPS);
112
      mScreen.showFPS();
113 113

  
114 114
      for(int i=0; i<NUM_OBJECTS; i++)
115 115
        {
src/main/java/org/distorted/examples/triblur/TriblurRenderer.java
88 88
      mQuat2 = new Static4D(0,0,0,1);  // quaternions
89 89

  
90 90
      mScreen = new DistortedScreen();
91
      mScreen.setDebug(DistortedScreen.DEBUG_FPS);
91
      mScreen.showFPS();
92 92

  
93 93
      mBlurStatus   = new boolean[NUM_OBJECTS];
94 94
      mBlurVector   = new Static1D[NUM_OBJECTS];

Also available in: Unified diff