Project

General

Profile

« Previous | Next » 

Revision 1585ba24

Added by Leszek Koltunski over 5 years ago

Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)

Also corresponding changes to the applications.

View differences:

src/main/java/org/distorted/examples/effects3d/Effects3DTab.java
169 169
    View view = eff.createView(mChildren);
170 170
    layout.addView(view);
171 171

  
172
    if( mEffectNames[mEffectAdd].supportsCenter() )
172
    if( mEffectNames[mEffectAdd].getCenterDimension() > 0 )
173 173
      {
174 174
      View center = eff.createCenter(mChildren);
175 175
      layout.addView(center);
176 176
      }
177 177

  
178
    if( mEffectNames[mEffectAdd].supportsRegion() )
178
    if( mEffectNames[mEffectAdd].getRegionDimension() > 0 )
179 179
      {
180 180
      View region = eff.createRegion(mChildren);
181 181
      layout.addView(region);

Also available in: Unified diff