Project

General

Profile

« Previous | Next » 

Revision cdd6333d

Added by Leszek Koltunski almost 8 years ago

Move the 'Save' effect to the Application and remove the 'OTHER' effect queue

View differences:

src/main/java/org/distorted/library/EffectNames.java
53 53
  CONTRAST         ( EffectTypes.FRAGMENT,   new float[] {1.0f}           ),
54 54
  SMOOTH_CONTRAST  ( EffectTypes.FRAGMENT,   new float[] {1.0f}           ),
55 55
  HUE              ( EffectTypes.FRAGMENT,   new float[] {0.0f}           ),
56
  SMOOTH_HUE       ( EffectTypes.FRAGMENT,   new float[] {0.0f}           ),
56
  SMOOTH_HUE       ( EffectTypes.FRAGMENT,   new float[] {0.0f}           );
57 57
  // add new Fragment effects here...
58 58

  
59
  SAVE_PNG         ( EffectTypes.OTHER   ,   null                         ),      // OTHER Effects don't have Unities.
60
  SAVE_MP4         ( EffectTypes.OTHER   ,   null                         );      //
61
  // add new Other effects here...
62

  
63 59
///////////////////////////////////////////////////////////////////////////////////////////////////
64 60
  
65 61
  private static final int MAXDIM = 4;  // maximum supported dimension of an effect  
......
110 106
    {
111 107
    if( ordinal<DISTORT.ordinal()     ) return EffectTypes.MATRIX;
112 108
    if( ordinal<MACROBLOCK.ordinal()  ) return EffectTypes.VERTEX;
113
    if( ordinal<SAVE_PNG.ordinal()    ) return EffectTypes.FRAGMENT;
114 109

  
115
    return EffectTypes.OTHER;
110
    return EffectTypes.FRAGMENT;
116 111
    }
117 112

  
118 113
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff