Revision 59759251
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
31 | 31 |
import org.distorted.library.Distorted; |
32 | 32 |
import org.distorted.library.DistortedBitmap; |
33 | 33 |
import org.distorted.library.EffectTypes; |
34 |
import org.distorted.library.type.Dynamic1D; |
|
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 |
|
... | ... | |
133 | 135 |
mText.move( new Static3D(lisaWidth/6,lisaHeight/3,0) ); |
134 | 136 |
mText.scale( new Static3D(factor,factor,factor) ); |
135 | 137 |
mText.sink(0.5f, new Static2D( textWidth/2, textHeight/2), 5000, 0.0f); |
136 |
mLisa.macroblock(4, 10000, 0.0f); |
|
138 |
|
|
139 |
Dynamic1D macroblockDyn = new Dynamic1D(); |
|
140 |
macroblockDyn.setDuration(10000); |
|
141 |
macroblockDyn.setCount(0); |
|
142 |
macroblockDyn.add(new Static1D(1)); |
|
143 |
macroblockDyn.add(new Static1D(5)); |
|
144 |
|
|
145 |
mLisa.macroblock(macroblockDyn); |
|
137 | 146 |
|
138 | 147 |
try |
139 | 148 |
{ |
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.