Revision ac4c7a1d
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/main/RubikSurfaceView.java | ||
---|---|---|
33 | 33 |
public class RubikSurfaceView extends GLSurfaceView |
34 | 34 |
{ |
35 | 35 |
private ObjectControl mObjectController; |
36 |
private RubikOSInterface mInterface; |
|
36 | 37 |
private RubikRenderer mRenderer; |
37 | 38 |
private int mScreenWidth, mScreenHeight; |
38 | 39 |
private boolean mCreated; |
... | ... | |
111 | 112 |
{ |
112 | 113 |
RubikActivity act = (RubikActivity)context; |
113 | 114 |
RubikObjectLibInterface ref = new RubikObjectLibInterface(act); |
114 |
mObjectController = new ObjectControl(ref); |
|
115 |
mInterface = new RubikOSInterface(act); |
|
116 |
mObjectController = new ObjectControl(ref,mInterface); |
|
115 | 117 |
mRenderer = new RubikRenderer(this); |
116 | 118 |
|
117 | 119 |
final ActivityManager activityManager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
Also available in: Unified diff
Separate a OSInterface from LibInterface