Project

General

Profile

« Previous | Next » 

Revision 1bafcba4

Added by Leszek Koltunski about 3 years ago

Simplifications

View differences:

src/main/java/org/distorted/main/RubikSurfaceView.java
31 31

  
32 32
import org.distorted.library.type.Static4D;
33 33

  
34
import org.distorted.objectlib.helpers.ObjectSurfaceView;
35 34
import org.distorted.objectlib.main.ObjectControl;
36 35
import org.distorted.objectlib.main.ObjectPreRender;
37 36

  
......
39 38

  
40 39
///////////////////////////////////////////////////////////////////////////////////////////////////
41 40

  
42
public class RubikSurfaceView extends GLSurfaceView implements ObjectSurfaceView
41
public class RubikSurfaceView extends GLSurfaceView
43 42
{
44 43
    private ObjectControl mObjectController;
45 44
    private RubikRenderer mRenderer;
......
87 86
        {
88 87
        RubikActivity act = (RubikActivity)context;
89 88
        mRenderer = new RubikRenderer(this);
90
        mObjectController = new ObjectControl(act,this,new RubikObjectStateActioner());
89
        mObjectController = new ObjectControl(act,new RubikObjectStateActioner());
91 90

  
92 91
        final ActivityManager activityManager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
93 92

  
src/main/java/org/distorted/tutorials/TutorialActivity.java
19 19

  
20 20
package org.distorted.tutorials;
21 21

  
22
import android.content.SharedPreferences;
23 22
import android.os.Build;
24 23
import android.os.Bundle;
25
import android.preference.PreferenceManager;
26 24
import android.util.DisplayMetrics;
27 25
import android.view.View;
28 26
import android.view.ViewGroup;
src/main/java/org/distorted/tutorials/TutorialSurfaceView.java
30 30
import com.google.firebase.crashlytics.FirebaseCrashlytics;
31 31

  
32 32
import org.distorted.objectlib.main.ObjectControl;
33
import org.distorted.objectlib.helpers.ObjectSurfaceView;
34 33
import org.distorted.objectlib.main.ObjectPreRender;
35 34

  
36 35
import static org.distorted.objectlib.main.ObjectControl.MODE_ROTATE;
37 36

  
38 37
///////////////////////////////////////////////////////////////////////////////////////////////////
39 38

  
40
public class TutorialSurfaceView extends GLSurfaceView implements ObjectSurfaceView
39
public class TutorialSurfaceView extends GLSurfaceView
41 40
{
42 41
    private ObjectControl mObjectController;
43 42
    private TutorialRenderer mRenderer;
......
85 84
        {
86 85
        TutorialActivity act = (TutorialActivity)context;
87 86
        mRenderer = new TutorialRenderer(this);
88
        mObjectController = new ObjectControl(act,this,new TutorialObjectStateActioner());
87
        mObjectController = new ObjectControl(act,new TutorialObjectStateActioner());
89 88

  
90 89
        final ActivityManager activityManager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
91 90

  

Also available in: Unified diff