Revision bc208a9c
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/effect/Effect.java | ||
---|---|---|
48 | 48 |
private final static float[] mUnity= new float[MAX_UNITY_DIM*NUM_EFFECTS]; |
49 | 49 |
private final static int[] mUnityDim = new int[NUM_EFFECTS]; |
50 | 50 |
|
51 |
int mTag; |
|
52 |
|
|
51 | 53 |
static boolean[] mEnabled = new boolean[NUM_EFFECTS]; |
52 | 54 |
|
53 | 55 |
static |
... | ... | |
65 | 67 |
mCenterDim = name.getCenterDimension(); |
66 | 68 |
mRegionDim = name.getRegionDimension(); |
67 | 69 |
|
70 |
mTag = 0xffffffff; |
|
71 |
|
|
68 | 72 |
int n = name.ordinal(); |
69 | 73 |
float[] u = name.getUnity(); |
70 | 74 |
int l = u.length; |
... | ... | |
130 | 134 |
return null; |
131 | 135 |
} |
132 | 136 |
|
137 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
138 |
/** |
|
139 |
* Only for use by the library itself. |
|
140 |
* |
|
141 |
* @y.exclude |
|
142 |
*/ |
|
143 |
public int getTag() |
|
144 |
{ |
|
145 |
return mTag; |
|
146 |
} |
|
147 |
|
|
133 | 148 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
134 | 149 |
// PUBLIC API |
135 | 150 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Introduce 'tags' (soon to be renamed to 'associations') to Mesh and VertexEffect.
A 'tag' is a way to associate a Vertex Effect only to a subgroup of a given Mesh's vertices (more precisely, only to an arbitrary subset of its Components)