Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicActivity.java | ||
---|---|---|
43 | 43 |
{ |
44 | 44 |
super.onCreate(savedState); |
45 | 45 |
setContentView(R.layout.olimpiclayout); |
46 |
mText = (TextView)findViewById(R.id.olimpicText);
|
|
46 |
mText = findViewById(R.id.olimpicText); |
|
47 | 47 |
|
48 | 48 |
int num = OlimpicRenderer.NUM_LEAVES+1; |
49 | 49 |
|
... | ... | |
80 | 80 |
CheckBox box = (CheckBox)view; |
81 | 81 |
int id = box.getId(); |
82 | 82 |
boolean checked = box.isChecked(); |
83 |
OlimpicSurfaceView sView = (OlimpicSurfaceView) this.findViewById(R.id.olimpicSurfaceView);
|
|
83 |
OlimpicSurfaceView sView = findViewById(R.id.olimpicSurfaceView); |
|
84 | 84 |
|
85 | 85 |
switch(id) |
86 | 86 |
{ |
... | ... | |
141 | 141 |
@Override |
142 | 142 |
protected void onPause() |
143 | 143 |
{ |
144 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.olimpicSurfaceView);
|
|
144 |
GLSurfaceView view = findViewById(R.id.olimpicSurfaceView); |
|
145 | 145 |
view.onPause(); |
146 | 146 |
Distorted.onPause(); |
147 | 147 |
super.onPause(); |
... | ... | |
153 | 153 |
protected void onResume() |
154 | 154 |
{ |
155 | 155 |
super.onResume(); |
156 |
GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.olimpicSurfaceView);
|
|
156 |
GLSurfaceView view = findViewById(R.id.olimpicSurfaceView); |
|
157 | 157 |
view.onResume(); |
158 | 158 |
} |
159 | 159 |
|
... | ... | |
193 | 193 |
mYellow = savedInstanceState.getBooleanArray("yellow"); |
194 | 194 |
mGreen = savedInstanceState.getBooleanArray("green" ); |
195 | 195 |
|
196 |
OlimpicSurfaceView view = (OlimpicSurfaceView) this.findViewById(R.id.olimpicSurfaceView);
|
|
196 |
OlimpicSurfaceView view = findViewById(R.id.olimpicSurfaceView); |
|
197 | 197 |
OlimpicRenderer renderer = view.getRenderer(); |
198 | 198 |
|
199 | 199 |
int num = OlimpicRenderer.NUM_LEAVES + 1; |
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).