Project

General

Profile

« Previous | Next » 

Revision e3abaab9

Added by Leszek Koltunski over 1 year ago

Purchase Pane: further progress.

View differences:

src/main/java/org/distorted/purchase/PurchaseRenderer.java
12 12
import android.opengl.GLSurfaceView;
13 13

  
14 14
import org.distorted.library.effect.EffectType;
15
import org.distorted.library.effect.PostprocessEffectGlow;
15
import org.distorted.library.effect.VertexEffectQuaternion;
16
import org.distorted.library.effect.VertexEffectRotate;
16 17
import org.distorted.library.main.DistortedLibrary;
17 18
import org.distorted.library.main.DistortedScreen;
19
import org.distorted.library.mesh.MeshBase;
20
import org.distorted.objectlib.effects.BaseEffect;
18 21
import org.distorted.objectlib.main.ObjectControl;
19
import org.distorted.overlays.OverlayStars;
22
import org.distorted.overlays.OverlayGeneric;
20 23

  
21 24
import javax.microedition.khronos.egl.EGLConfig;
22 25
import javax.microedition.khronos.opengles.GL10;
......
75 78
   @Override
76 79
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
77 80
      {
78
      DistortedLibrary.setMax(EffectType.VERTEX, ObjectControl.MAX_QUATS+1);
79
      OverlayStars.enableEffects();
80
      PostprocessEffectGlow.enable();
81
      DistortedLibrary.setMax(EffectType.VERTEX,ObjectControl.MAX_QUATS+1);
82
      MeshBase.setMaxEffComponents(ObjectControl.MAX_MOVING_PARTS);
83

  
84
      VertexEffectRotate.enable();
85
      VertexEffectQuaternion.enable();
86
      BaseEffect.Type.enableEffects();
87
      OverlayGeneric.enableEffects();
81 88

  
82 89
      DistortedLibrary.onSurfaceCreated(mView.getContext(),this,1);
83 90
      DistortedLibrary.setCull(true);

Also available in: Unified diff