Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/blur/BlurActivity.java | ||
---|---|---|
42 | 42 |
{ |
43 | 43 |
super.onCreate(icicle); |
44 | 44 |
setContentView(R.layout.blurlayout); |
45 |
textBlur = (TextView)findViewById(R.id.blurText);
|
|
46 |
SeekBar bar = (SeekBar)findViewById(R.id.blurSeek);
|
|
45 |
textBlur = findViewById(R.id.blurText); |
|
46 |
SeekBar bar = findViewById(R.id.blurSeek); |
|
47 | 47 |
bar.setOnSeekBarChangeListener(this); |
48 | 48 |
bar.setProgress(50); |
49 | 49 |
} |
... | ... | |
53 | 53 |
@Override |
54 | 54 |
protected void onPause() |
55 | 55 |
{ |
56 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.blurSurfaceView);
|
|
56 |
GLSurfaceView view = findViewById(R.id.blurSurfaceView); |
|
57 | 57 |
view.onPause(); |
58 | 58 |
Distorted.onPause(); |
59 | 59 |
super.onPause(); |
... | ... | |
65 | 65 |
protected void onResume() |
66 | 66 |
{ |
67 | 67 |
super.onResume(); |
68 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.blurSurfaceView);
|
|
68 |
GLSurfaceView view = findViewById(R.id.blurSurfaceView); |
|
69 | 69 |
view.onResume(); |
70 | 70 |
} |
71 | 71 |
|
... | ... | |
82 | 82 |
|
83 | 83 |
public void onProgressChanged(SeekBar bar, int progress, boolean fromUser) |
84 | 84 |
{ |
85 |
BlurSurfaceView view = (BlurSurfaceView) this.findViewById(R.id.blurSurfaceView);
|
|
85 |
BlurSurfaceView view = findViewById(R.id.blurSurfaceView); |
|
86 | 86 |
|
87 | 87 |
switch (bar.getId()) |
88 | 88 |
{ |
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).