Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/check/CheckActivity.java | ||
---|---|---|
44 | 44 |
super.onCreate(icicle); |
45 | 45 |
setContentView(R.layout.check1layout); |
46 | 46 |
|
47 |
mVPicker = (NumberPicker)findViewById(R.id.check1NumberPickerVertex);
|
|
48 |
mFPicker = (NumberPicker)findViewById(R.id.check1NumberPickerFragment);
|
|
47 |
mVPicker = findViewById(R.id.check1NumberPickerVertex); |
|
48 |
mFPicker = findViewById(R.id.check1NumberPickerFragment); |
|
49 | 49 |
|
50 | 50 |
mVPicker.setMaxValue(1000); |
51 | 51 |
mVPicker.setMinValue( 0); |
... | ... | |
76 | 76 |
@Override |
77 | 77 |
protected void onPause() |
78 | 78 |
{ |
79 |
GLSurfaceView mView = (GLSurfaceView) this.findViewById(R.id.checkSurfaceView);
|
|
79 |
GLSurfaceView mView = findViewById(R.id.checkSurfaceView); |
|
80 | 80 |
if( mView!=null ) mView.onPause(); |
81 | 81 |
|
82 | 82 |
Distorted.onPause(); |
... | ... | |
90 | 90 |
{ |
91 | 91 |
super.onResume(); |
92 | 92 |
|
93 |
GLSurfaceView mView = (GLSurfaceView) this.findViewById(R.id.checkSurfaceView);
|
|
93 |
GLSurfaceView mView = findViewById(R.id.checkSurfaceView); |
|
94 | 94 |
if( mView!=null ) mView.onResume(); |
95 | 95 |
} |
96 | 96 |
|
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).