Revision 42e08626
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedObject.java | ||
---|---|---|
567 | 567 |
|
568 | 568 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
569 | 569 |
// Fragment-based effects |
570 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
571 |
/** |
|
572 |
* Creates macroblocks at and around point defined by the Region. |
|
573 |
* |
|
574 |
* @param size 1-dimensional Dynamic which, at any given time, returns the size of the macroblocks. |
|
575 |
* @param region Region this Effect is limited to. |
|
576 |
* @return ID of the effect added, or -1 if we failed to add one. |
|
577 |
*/ |
|
578 |
public long macroblock(Data1D size, Data4D region) |
|
579 |
{ |
|
580 |
return mF.add(EffectNames.MACROBLOCK, size, region); |
|
581 |
} |
|
582 |
|
|
583 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
584 |
/** |
|
585 |
* Creates macroblocks on the whole Object. |
|
586 |
* |
|
587 |
* @param size 1-dimensional Data which, at any given time, returns the size of the macroblocks. |
|
588 |
* @return ID of the effect added, or -1 if we failed to add one. |
|
589 |
*/ |
|
590 |
public long macroblock(Data1D size) |
|
591 |
{ |
|
592 |
return mF.add(EffectNames.MACROBLOCK, size); |
|
593 |
} |
|
594 |
|
|
595 | 570 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
596 | 571 |
/** |
597 | 572 |
* Makes a certain sub-region of the Object smoothly change all three of its RGB components. |
Also available in: Unified diff
Remove the MACROBLOCK Effect altogether.