Revision ed0ea1c5
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/tutorials/TutorialSurfaceView.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
import org.distorted.objectlib.main.ObjectControl; |
22 | 22 |
import org.distorted.objectlib.main.TwistyObjectNode; |
23 |
import org.distorted.os.OSInterface; |
|
23 | 24 |
|
24 | 25 |
import static org.distorted.objectlib.main.ObjectControl.MODE_ROTATE; |
25 | 26 |
import static org.distorted.objectlib.main.ObjectControl.MODE_DRAG; |
... | ... | |
29 | 30 |
public class TutorialSurfaceView extends GLSurfaceView |
30 | 31 |
{ |
31 | 32 |
private ObjectControl mObjectController; |
32 |
private TutorialOSInterface mInterface;
|
|
33 |
private OSInterface mInterface; |
|
33 | 34 |
private TutorialRenderer mRenderer; |
34 | 35 |
private int mScreenWidth, mScreenHeight; |
35 | 36 |
private boolean mCreated; |
... | ... | |
86 | 87 |
{ |
87 | 88 |
TutorialActivity act = (TutorialActivity)context; |
88 | 89 |
TutorialObjectLibInterface ref = new TutorialObjectLibInterface(act); |
89 |
mInterface = new TutorialOSInterface(act);
|
|
90 |
mInterface = new OSInterface(act); |
|
90 | 91 |
mObjectController = new ObjectControl(ref,mInterface); |
91 | 92 |
mRenderer = new TutorialRenderer(this); |
92 | 93 |
|
Also available in: Unified diff
Move the OSInterface to a separate module