Revision 76c9dd1d
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/mirror/MirrorActivity.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
public class MirrorActivity extends Activity implements OnSeekBarChangeListener |
34 | 34 |
{ |
35 |
public static final int INIT_POSITION = 100; |
|
36 |
|
|
37 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
38 |
|
|
35 | 39 |
@Override |
36 | 40 |
protected void onCreate(Bundle icicle) |
37 | 41 |
{ |
... | ... | |
40 | 44 |
|
41 | 45 |
SeekBar bar = (SeekBar)findViewById(R.id.mirrorSeek); |
42 | 46 |
bar.setOnSeekBarChangeListener(this); |
43 |
bar.setProgress(100);
|
|
47 |
bar.setProgress(INIT_POSITION);
|
|
44 | 48 |
} |
45 | 49 |
|
46 | 50 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/examples/mirror/MirrorRenderer.java | ||
---|---|---|
76 | 76 |
mEffectsOffscreen2= new DistortedEffects(); |
77 | 77 |
mEffectsNull = new DistortedEffects(); |
78 | 78 |
|
79 |
mX = 100;
|
|
79 |
mX = MirrorActivity.INIT_POSITION;
|
|
80 | 80 |
|
81 | 81 |
mGirlPosition = new Static3D(0,0,0); |
82 | 82 |
mGirlDyn = new Dynamic3D(); |
Also available in: Unified diff
Slight improvement for the Mirror app.