Project

General

Profile

« Previous | Next » 

Revision 6dff7924

Added by Leszek Koltunski over 2 years ago

Minor.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java
28 28
import android.widget.Toast;
29 29

  
30 30
import org.distorted.dialogs.RubikDialogBandagedSave;
31
import org.distorted.library.effect.EffectType;
31 32
import org.distorted.library.effect.PostprocessEffectBorder;
32 33
import org.distorted.library.main.DistortedEffects;
33 34
import org.distorted.library.main.DistortedFramebuffer;
......
36 37
import org.distorted.library.main.DistortedScreen;
37 38

  
38 39
import org.distorted.library.main.InternalOutputSurface;
40
import org.distorted.library.mesh.MeshBase;
39 41
import org.distorted.library.type.Static1D;
40 42
import org.distorted.library.type.Static3D;
41 43
import org.distorted.library.type.Static4D;
......
274 276
   @Override
275 277
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
276 278
      {
279
      DistortedLibrary.setMax(EffectType.VERTEX,25);
280
      MeshBase.setMaxEffComponents(26);
281

  
277 282
      DistortedLibrary.onSurfaceCreated(mView.getContext(),this,1);
283
      DistortedLibrary.setCull(true);
278 284
      }
279 285

  
280 286
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/bandaged/BandagedPlayRenderer.java
26 26
import org.distorted.library.effect.VertexEffectRotate;
27 27
import org.distorted.library.main.DistortedLibrary;
28 28
import org.distorted.library.main.DistortedScreen;
29
import org.distorted.library.mesh.MeshBase;
29 30
import org.distorted.objectlib.effects.BaseEffect;
30 31

  
31 32
import javax.microedition.khronos.egl.EGLConfig;
......
74 75
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
75 76
      {
76 77
      DistortedLibrary.setMax(EffectType.VERTEX,25);
78
      MeshBase.setMaxEffComponents(26);
77 79
      VertexEffectRotate.enable();
78 80
      VertexEffectQuaternion.enable();
79 81
      BaseEffect.Type.enableEffects();
80 82

  
81 83
      DistortedLibrary.onSurfaceCreated(mView.getContext(),this,1);
84
      DistortedLibrary.setCull(true);
82 85
      }
83 86

  
84 87
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/tutorials/TutorialRenderer.java
80 80
      BaseEffect.Type.enableEffects();
81 81

  
82 82
      DistortedLibrary.onSurfaceCreated(mView.getContext(),this,1);
83
      DistortedLibrary.setCull(true);
83 84
      }
84 85

  
85 86
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff