Revision f338550a
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DActivity.java | ||
---|---|---|
244 | 244 |
|
245 | 245 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
246 | 246 |
|
247 |
public static void setSupportsRegion(boolean supports)
|
|
247 |
public void setSupportsRegion(boolean supports) |
|
248 | 248 |
{ |
249 |
mSupportsRegion = supports; |
|
249 |
if( mSupportsRegion != supports ) |
|
250 |
{ |
|
251 |
mSupportsRegion = supports; |
|
252 |
Effects3DSurfaceView view = (Effects3DSurfaceView) findViewById(R.id.effects3dSurfaceView); |
|
253 |
view.getRenderer().attachRegion(supports); |
|
254 |
} |
|
250 | 255 |
} |
251 | 256 |
|
252 | 257 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
253 | 258 |
|
254 |
public static void setSupportsCenter(boolean supports)
|
|
259 |
public void setSupportsCenter(boolean supports) |
|
255 | 260 |
{ |
256 |
mSupportsCenter = supports; |
|
261 |
if( mSupportsCenter != supports ) |
|
262 |
{ |
|
263 |
mSupportsCenter = supports; |
|
264 |
Effects3DSurfaceView view = (Effects3DSurfaceView) findViewById(R.id.effects3dSurfaceView); |
|
265 |
view.getRenderer().attachCenter(supports); |
|
266 |
} |
|
257 | 267 |
} |
258 | 268 |
|
259 | 269 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
523 | 533 |
mRegionY = 0; |
524 | 534 |
mRegionR = getWidth()/2; |
525 | 535 |
|
526 |
mSupportsRegion = true;
|
|
536 |
mSupportsRegion =false;
|
|
527 | 537 |
mSupportsCenter =false; |
538 |
/* |
|
539 |
Effects3DSurfaceView view = (Effects3DSurfaceView) findViewById(R.id.effects3dSurfaceView); |
|
540 |
view.getRenderer().attachRegion(false); |
|
541 |
view.getRenderer().attachCenter(false); |
|
542 |
*/ |
|
528 | 543 |
} |
529 | 544 |
|
530 | 545 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Some progress with fixing the efects3D regression. Not done yet.