Project

General

Profile

« Previous | Next » 

Revision 2f20ae3a

Added by Leszek Koltunski over 7 years ago

Around the World: setRace

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
51 51
   AroundTheWorldRenderer(GLSurfaceView view)
52 52
      {
53 53
      mView = view;
54
      mEffects = new AroundTheWorldEffectsManager();
54 55
      }
55 56

  
56 57
///////////////////////////////////////////////////////////////////////////////////////////////////
57
   
58

  
59
   public AroundTheWorldEffectsManager getManager()
60
     {
61
     return mEffects;
62
     }
63

  
64
///////////////////////////////////////////////////////////////////////////////////////////////////
65

  
58 66
   public void onDrawFrame(GL10 glUnused) 
59 67
      {
60 68
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
......
108 116
        }
109 117

  
110 118
      mObject = new DistortedBitmap(bitmap.getWidth(),bitmap.getHeight(),30);
111
      mEffects = new AroundTheWorldEffectsManager(mObject);
112 119

  
113 120
      mObjWidth = mObject.getWidth();
114 121
      mObjHeight= mObject.getHeight();
115 122

  
123
      mEffects.setSize(mObjWidth,mObjHeight);
124

  
116 125
      mObject.setBitmap(bitmap);
126
      mEffects.apply(mObject);
117 127

  
118 128
      try
119 129
        {

Also available in: Unified diff