Project

General

Profile

« Previous | Next » 

Revision 43814a57

Added by Leszek Koltunski over 3 years ago

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.

View differences:

src/main/java/org/distorted/library/effect/MatrixEffect.java
19 19

  
20 20
package org.distorted.library.effect;
21 21

  
22
import org.distorted.library.effectqueue.EffectQueue;
23

  
22 24
///////////////////////////////////////////////////////////////////////////////////////////////////
23 25
/**
24 26
 * Abstract class that represents an Effect that works by modifying the ModelView matrix.
......
44 46
 */
45 47
  public abstract void apply(float[] matrixP, float[] matrixV, float[] uniforms, int index);
46 48

  
49
///////////////////////////////////////////////////////////////////////////////////////////////////
50
/**
51
 * Only for use by the library itself.
52
 *
53
 * @y.exclude
54
 */
55
  public void addQueue(EffectQueue queue)
56
    {
57
    // NO OP
58
    }
59

  
60
///////////////////////////////////////////////////////////////////////////////////////////////////
61
/**
62
 * Only for use by the library itself.
63
 *
64
 * @y.exclude
65
 */
66
  public void remQueue(EffectQueue queue)
67
    {
68
    // NO OP
69
    }
70

  
47 71
///////////////////////////////////////////////////////////////////////////////////////////////////
48 72
// empty function for completeness
49 73

  

Also available in: Unified diff