Project

General

Profile

« Previous | Next » 

Revision 5d8a1d51

Added by Leszek Koltunski about 5 years ago

Rubk App: changes in the UI

View differences:

src/main/java/org/distorted/examples/rubik/RubikRenderer.java
36 36

  
37 37
class RubikRenderer implements GLSurfaceView.Renderer, EffectListener
38 38
{
39
    private static final int NUM_CUBES = 4;
40 39
    private static final float CUBE_SCREEN_RATIO = 0.5f;
41 40
    private static final float CAMERA_DISTANCE   = 0.6f;  // 0.6 of the length of max(scrHeight,scrWidth)
42 41

  
......
73 72

  
74 73
      mCanRotate = true;
75 74

  
76
      mCube = new RubikCube(NUM_CUBES, mMove, mScale, mQuatCurrent, mQuatAccumulated);
75
      mCube = new RubikCube( RubikActivity.DEFAULT_CUBE_SIZE, mMove, mScale, mQuatCurrent, mQuatAccumulated);
77 76
      }
78 77

  
79 78
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff