Revision 338babe8
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/tutorials/TutorialActivity.java | ||
---|---|---|
255 | 255 |
return view.getObjectControl(); |
256 | 256 |
} |
257 | 257 |
|
258 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
259 |
|
|
260 |
public DistortedScreen getScreen() |
|
261 |
{ |
|
262 |
TutorialSurfaceView view = findViewById(R.id.tutorialSurfaceView); |
|
263 |
TutorialRenderer renderer = view.getRenderer(); |
|
264 |
return renderer.getScreen(); |
|
265 |
} |
|
266 |
|
|
267 | 258 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
268 | 259 |
|
269 | 260 |
public static int getDrawableSize() |
Also available in: Unified diff
Major change: separate the notion of a TwistyObject and its Node. Now,
1) the Node stays when we change objects (this makes transitions faster)
2) it's possible to just create an Object without adding it to the Screen (now app needs to explicitly create the Node and add it to its Screen itself)