Revision febb61ba
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/multiblur/MultiblurActivity.java | ||
---|---|---|
22 | 22 |
import android.app.Activity; |
23 | 23 |
import android.opengl.GLSurfaceView; |
24 | 24 |
import android.os.Bundle; |
25 |
import android.view.View; |
|
26 |
import android.widget.CheckBox; |
|
25 | 27 |
import android.widget.SeekBar; |
26 | 28 |
|
27 | 29 |
import org.distorted.examples.R; |
... | ... | |
101 | 103 |
public void onStopTrackingTouch(SeekBar bar) { } |
102 | 104 |
|
103 | 105 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
106 |
|
|
107 |
public void onClick(View view) |
|
108 |
{ |
|
109 |
CheckBox box = (CheckBox)view; |
|
110 |
int id = box.getId(); |
|
111 |
boolean checked = box.isChecked(); |
|
112 |
MultiblurSurfaceView sView = (MultiblurSurfaceView) this.findViewById(R.id.multiblurSurfaceView); |
|
113 |
|
|
114 |
switch(id) |
|
115 |
{ |
|
116 |
case R.id.multiblurCheckBox0 : sView.getRenderer().pressed(0,checked); break; |
|
117 |
case R.id.multiblurCheckBox1 : sView.getRenderer().pressed(1,checked); break; |
|
118 |
case R.id.multiblurCheckBox2 : sView.getRenderer().pressed(2,checked); break; |
|
119 |
case R.id.multiblurCheckBox3 : sView.getRenderer().pressed(3,checked); break; |
|
120 |
case R.id.multiblurCheckBox4 : sView.getRenderer().pressed(4,checked); break; |
|
121 |
case R.id.multiblurCheckBox5 : sView.getRenderer().pressed(5,checked); break; |
|
122 |
case R.id.multiblurCheckBox6 : sView.getRenderer().pressed(6,checked); break; |
|
123 |
case R.id.multiblurCheckBox7 : sView.getRenderer().pressed(7,checked); break; |
|
124 |
} |
|
125 |
} |
|
104 | 126 |
} |
Also available in: Unified diff
Still several problems, but the core of Multiblur works now.