Project

General

Profile

« Previous | Next » 

Revision 5d5ed376

Added by Leszek Koltunski about 2 years ago

On OpenGL ES 3.0, some drivers are veeeery slow linking a program which includes transform feedback - and such program is needed to apply vertex effects to meshes - which is needed to round corners of puzzle cubits.

Thus on 3.0 we switch off rounding corners of the meshes in the Creator mode, otherwise we'd need to wait about 24 seconds for the screen to appear!

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorView.java
61 61
        {
62 62
        BandagedCreatorActivity act = (BandagedCreatorActivity)context;
63 63
        mRenderer = new BandagedCreatorRenderer(this);
64
        BandagedCubit[] cubits = mRenderer.getCubits();
65 64
        DistortedScreen screen = mRenderer.getScreen();
66
        mTouchControl = new BandagedCreatorTouchControl(cubits, BandagedCreatorRenderer.SCREEN_RATIO, screen.getFOV() );
65
        mTouchControl = new BandagedCreatorTouchControl(BandagedCreatorRenderer.SCREEN_RATIO, screen.getFOV() );
67 66

  
68 67
        final ActivityManager activityManager= (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
69 68

  
......
107 106
      return mRenderer;
108 107
      }
109 108

  
109
///////////////////////////////////////////////////////////////////////////////////////////////////
110

  
111
    public void setCubits(BandagedCubit[] cubits)
112
      {
113
      mTouchControl.setCubits(cubits);
114
      }
115

  
110 116
///////////////////////////////////////////////////////////////////////////////////////////////////
111 117

  
112 118
    public void resetCubits()

Also available in: Unified diff