Revision 59759251
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.Distorted; |
31 | 31 |
import org.distorted.library.DistortedBitmap; |
32 | 32 |
import org.distorted.library.EffectTypes; |
33 |
import org.distorted.library.type.Dynamic1D; |
|
33 | 34 |
import org.distorted.library.type.Dynamic3D; |
35 |
import org.distorted.library.type.Static1D; |
|
34 | 36 |
import org.distorted.library.type.Static2D; |
35 | 37 |
import org.distorted.library.type.Static3D; |
36 | 38 |
import org.distorted.library.type.Static4D; |
... | ... | |
163 | 165 |
bmp[0].sink(10.0f, RegionEye, pLeft , 2000, 0.0f); |
164 | 166 |
bmp[0].sink(10.0f, RegionEye, pRight, 2000, 0.0f); |
165 | 167 |
bmp[1].distort(mDI, pNose1); |
166 |
bmp[2].macroblock(50, 3000, 0.0f); |
|
168 |
|
|
169 |
Dynamic1D macroblockDyn = new Dynamic1D(); |
|
170 |
macroblockDyn.setDuration(3000); |
|
171 |
macroblockDyn.setCount(0); |
|
172 |
macroblockDyn.add(new Static1D(1)); |
|
173 |
macroblockDyn.add(new Static1D(50)); |
|
174 |
|
|
175 |
bmp[2].macroblock(macroblockDyn); |
|
167 | 176 |
|
168 | 177 |
try |
169 | 178 |
{ |
Also available in: Unified diff
Major push towards simplifying DistortedObject's public API.
All Fragment effects are using the new API - the 'DataND' marker interfaces.