Revision f8eece7d
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/main/RubikActivity.java | ||
---|---|---|
41 | 41 |
import org.distorted.effects.BaseEffect; |
42 | 42 |
import org.distorted.library.main.DistortedLibrary; |
43 | 43 |
|
44 |
import org.distorted.library.main.DistortedScreen; |
|
44 | 45 |
import org.distorted.objects.TwistyObject; |
45 | 46 |
import org.distorted.network.RubikScores; |
46 | 47 |
import org.distorted.network.RubikNetwork; |
... | ... | |
383 | 384 |
return pre.getObject(); |
384 | 385 |
} |
385 | 386 |
|
387 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
388 |
|
|
389 |
public DistortedScreen getScreen() |
|
390 |
{ |
|
391 |
RubikSurfaceView view = findViewById(R.id.rubikSurfaceView); |
|
392 |
RubikRenderer renderer = view.getRenderer(); |
|
393 |
return renderer.getScreen(); |
|
394 |
} |
|
395 |
|
|
386 | 396 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
387 | 397 |
|
388 | 398 |
public int getScreenWidthInPixels() |
Also available in: Unified diff
Attach the control nodes directly to the screen, not to the Object Node.