Revision 1dfc9074
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/main/Distorted.java | ||
---|---|---|
25 | 25 |
import android.content.res.Resources; |
26 | 26 |
|
27 | 27 |
import org.distorted.library.effect.Effect; |
28 |
import org.distorted.library.effect.PostprocessEffectBlur; |
|
28 | 29 |
import org.distorted.library.program.*; |
29 | 30 |
|
30 | 31 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
88 | 89 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
89 | 90 |
/** |
90 | 91 |
* Have we called onCreate yet, ie have we initialized the library? |
91 |
* @return <code>true</code> if the library is initilized and ready for action. |
|
92 |
* @return <code>true</code> if the library is initialized and ready for action.
|
|
92 | 93 |
*/ |
93 | 94 |
public static boolean isInitialized() |
94 | 95 |
{ |
... | ... | |
121 | 122 |
|
122 | 123 |
final Resources resources = context.getResources(); |
123 | 124 |
DistortedEffects.createProgram(resources); |
124 |
EffectQueuePostprocess.createProgram(resources);
|
|
125 |
PostprocessEffectBlur.createProgram(resources);
|
|
125 | 126 |
EffectMessageSender.startSending(); |
126 | 127 |
|
127 | 128 |
mInitialized = true; |
Also available in: Unified diff
All knowledge about Postporcessing moved to the respective Effect classes.