Revision da9b3f07
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/MatrixEffectScale.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
public class MatrixEffectScale extends MatrixEffect |
29 | 29 |
{ |
30 |
private static final String NAME = "SCALE"; |
|
31 |
private static final float[] UNITIES = new float[] {1.0f,1.0f,1.0f}; |
|
32 |
private static final int DIMENSION = 3; |
|
30 |
private static final float[] UNITIES = new float[] {1.0f,1.0f,1.0f}; |
|
31 |
private static final int DIMENSION = 3; |
|
33 | 32 |
private static final boolean SUPPORTS_CENTER = false; |
34 | 33 |
private static final boolean SUPPORTS_REGION = false; |
35 | 34 |
|
... | ... | |
42 | 41 |
*/ |
43 | 42 |
public MatrixEffectScale(Data3D scale) |
44 | 43 |
{ |
45 |
super(SCALE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
|
|
44 |
super(EffectName.SCALE,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,UNITIES);
|
|
46 | 45 |
|
47 | 46 |
if( scale instanceof Static3D) |
48 | 47 |
{ |
... | ... | |
62 | 61 |
*/ |
63 | 62 |
public MatrixEffectScale(float scale) |
64 | 63 |
{ |
65 |
super(SCALE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
|
|
64 |
super(EffectName.SCALE,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,UNITIES);
|
|
66 | 65 |
|
67 | 66 |
mStatic0 = new Static3D(scale,scale,scale); |
68 | 67 |
} |
Also available in: Unified diff
Progress with support for Effect classes.
The library compiles now!