Project

General

Profile

« Previous | Next » 

Revision a6da86cc

Added by Leszek Koltunski almost 8 years ago

improve Postprocessing; new icon; minor things.

View differences:

src/main/java/org/distorted/examples/blur/BlurActivity.java
91 91

  
92 92
      switch (bar.getId()) 
93 93
        {
94
        case R.id.blurSeek: view.getRenderer().setBlur(progress);
95
                            textBlur.setText(getString(R.string.blur_placeholder,progress));
94
        case R.id.blurSeek: int level = view.getRenderer().setBlur(progress);
95
                            textBlur.setText(getString(R.string.blur_placeholder,level));
96 96
                            break;
97 97
        }
98 98
      }
src/main/java/org/distorted/examples/blur/BlurRenderer.java
71 71

  
72 72
///////////////////////////////////////////////////////////////////////////////////////////////////
73 73

  
74
   void setBlur(int blur)
75
     {      
76
     mRadiusSta.set(blur);
74
   int setBlur(int blur)
75
     {
76
     int radius = blur/10;
77
     mRadiusSta.set(radius);
78
     return radius;
77 79
     }
78 80

  
79 81
///////////////////////////////////////////////////////////////////////////////////////////////////
......
116 118
      {
117 119
      GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
118 120

  
119
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.girl);
121
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.dog);
120 122
      Bitmap bitmap;
121 123
        
122 124
      try 

Also available in: Unified diff