Revision da9b3f07
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/main/EffectQueueFragment.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import android.opengl.GLES30; |
23 | 23 |
|
24 |
import org.distorted.library.effect.Effect; |
|
24 |
import org.distorted.library.effect.EffectType;
|
|
25 | 25 |
import org.distorted.library.effect.FragmentEffect; |
26 | 26 |
import org.distorted.library.message.EffectMessage; |
27 | 27 |
|
... | ... | |
30 | 30 |
class EffectQueueFragment extends EffectQueue |
31 | 31 |
{ |
32 | 32 |
private static final int NUM_UNIFORMS = FragmentEffect.NUM_UNIFORMS; |
33 |
private static final int INDEX = Effect.FRAGMENT;
|
|
33 |
private static final int INDEX = EffectType.FRAGMENT.ordinal();
|
|
34 | 34 |
private static int mNumEffectsH; |
35 | 35 |
private static int mNameH; |
36 | 36 |
private static int mUniformsH; |
... | ... | |
68 | 68 |
for(int j=0; j<mNumListeners; j++) |
69 | 69 |
EffectMessageSender.newMessage( mListeners.elementAt(j), EffectMessage.EFFECT_FINISHED, mEffects[i].getID(), mID); |
70 | 70 |
|
71 |
if( FragmentEffect.isUnity( mEffects[i].getName(), mUniforms, NUM_UNIFORMS*i) )
|
|
71 |
if( mEffects[i].isUnity( mUniforms, NUM_UNIFORMS*i) )
|
|
72 | 72 |
remove(i--); |
73 | 73 |
} |
74 | 74 |
} |
Also available in: Unified diff
Progress with support for Effect classes.
The library compiles now!