Project

General

Profile

« Previous | Next » 

Revision 86eb00a9

Added by Leszek Koltunski over 7 years ago

Initial version of the first post-processing effect - BLUR - ready for the first app!

View differences:

src/main/java/org/distorted/library/Distorted.java
90 90
    
91 91
    }
92 92

  
93
///////////////////////////////////////////////////////////////////////////////////////////////////
94

  
95
  static DistortedFramebuffer getFBO(int w, int h)
96
    {
97
    // TODO: a static factory of Framebuffers.
98

  
99
    return null;
100
    }
101

  
102 93
///////////////////////////////////////////////////////////////////////////////////////////////////
103 94

  
104 95
  static boolean isInitialized()
......
106 97
    return (mMainProgramAttributes!=null);
107 98
    }
108 99

  
109
///////////////////////////////////////////////////////////////////////////////////////////////////
110
/**
111
 * Release all internal memory caches (in particular the FBOs used as buffers for postprocessing)
112
 */
113
  public static void clean()
114
    {
115
    // TODO
116
    }
117

  
118 100
///////////////////////////////////////////////////////////////////////////////////////////////////
119 101
/**
120 102
 * When OpenGL context gets created, you need to call this method so that the library can initialise its internal data structures.
......
209 191
    EffectMessageSender.stopSending();
210 192

  
211 193
    mMainProgramAttributes = null;
194
    mPostProgramAttributes = null;
212 195
    }
213 196
  }

Also available in: Unified diff