Revision 43814a57
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/effectqueue/EffectQueueVertex.java | ||
---|---|---|
67 | 67 |
mUniformsH[variant] = GLES30.glGetUniformLocation( mProgramH, "vUniforms"); |
68 | 68 |
} |
69 | 69 |
|
70 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
71 |
/** |
|
72 |
* Not part of public API, do not document (public only because has to be called from DistortedEffects) |
|
73 |
* |
|
74 |
* @y.exclude |
|
75 |
*/ |
|
76 |
public void setAssociation(long effectID) |
|
77 |
{ |
|
78 |
for(int j=0; j<mNumEffects; j++) |
|
79 |
{ |
|
80 |
if (mEffects[j].getID() == effectID) |
|
81 |
{ |
|
82 |
mEffects[j].writeAssociations(mIntUniforms, NUM_INT_UNIFORMS*j+1, NUM_INT_UNIFORMS*j+3); |
|
83 |
} |
|
84 |
} |
|
85 |
} |
|
86 |
|
|
87 | 70 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
88 | 71 |
/** |
89 | 72 |
* Not part of public API, do not document (public only because has to be used in Meshes) |
Also available in: Unified diff
Fix the fact that the static DistortedEffects.mAllQueues was global, shared between all Activities.
Completely replace this mechanism with a non-static list of links from a VertexEffect to all VertexEffectQueues this effect is a member of.