Revision 02ef26bc
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedObject.java | ||
---|---|---|
739 | 739 |
*/ |
740 | 740 |
public long distort(Data3D vector, Data2D center) |
741 | 741 |
{ |
742 |
return mV.add(EffectNames.DISTORT, vector, center); |
|
742 |
return mV.add(EffectNames.DISTORT, vector, center, null);
|
|
743 | 743 |
} |
744 | 744 |
|
745 | 745 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
753 | 753 |
*/ |
754 | 754 |
public long deform(Data3D vector, Data2D center) |
755 | 755 |
{ |
756 |
return mV.add(EffectNames.DEFORM, vector, center); |
|
756 |
return mV.add(EffectNames.DEFORM, vector, center, null);
|
|
757 | 757 |
} |
758 | 758 |
|
759 | 759 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
822 | 822 |
* @param center 2-dimensional Data that, at any given time, returns the Center of the Effect. |
823 | 823 |
* @return ID of the effect added, or -1 if we failed to add one. |
824 | 824 |
*/ |
825 |
public long wave(Data3D wave, Data2D center)
|
|
825 |
public long wave(Data4D wave, Data2D center)
|
|
826 | 826 |
{ |
827 |
return mV.add(EffectNames.WAVE, wave, center); |
|
827 |
return mV.add(EffectNames.WAVE, wave, center, null);
|
|
828 | 828 |
} |
829 | 829 |
|
830 | 830 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
838 | 838 |
* @param region Region that masks the Effect. |
839 | 839 |
* @return ID of the effect added, or -1 if we failed to add one. |
840 | 840 |
*/ |
841 |
public long wave(Data3D wave, Data2D center, Data4D region)
|
|
841 |
public long wave(Data4D wave, Data2D center, Data4D region)
|
|
842 | 842 |
{ |
843 | 843 |
return mV.add(EffectNames.WAVE, wave, center, region); |
844 | 844 |
} |
Also available in: Unified diff
Preparation to make the WAVE effect fully 3D