Project

General

Profile

« Previous | Next » 

Revision 61ec8208

Added by Leszek Koltunski over 7 years ago

Allow more than the default number of concurrent VERTEX and FRAGMENT effects in Effects3D.

View differences:

src/main/java/org/distorted/library/Distorted.java
447 447
///////////////////////////////////////////////////////////////////////////////////////////////////
448 448
/**
449 449
 * Sets the maximum number of Matrix effects that can be applied to a single DistortedObject at one time.
450
 * This can fail if the value of 'max' is outside permitted range. 
450
 * This can fail if:
451
 * <ul>
452
 * <li>the value of 'max' is outside permitted range (0 &le; max &le; Byte.MAX_VALUE)
453
 * <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called
454
 *     before the Vertex Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this
455
 *     time only decreasing the value of 'max' is permitted.
456
 * <li>Furthermore, this needs to be called before any DistortedObject gets created.
457
 * </ul>
451 458
 * 
452 459
 * @param max new maximum number of simultaneous Matrix Effects. Has to be a non-negative number not greater
453 460
 *            than Byte.MAX_VALUE 
......
463 470
 * Sets the maximum number of Vertex effects that can be applied to a single DistortedObject at one time.
464 471
 * This can fail if:
465 472
 * <ul>
466
 * <li>the value of 'max' is outside permitted range
473
 * <li>the value of 'max' is outside permitted range (0 &le; max &le; Byte.MAX_VALUE)
467 474
 * <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called 
468 475
 *     before the Vertex Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this
469
 *     time only decreasing the value of 'max' is permitted.  
476
 *     time only decreasing the value of 'max' is permitted.
477
* <li>Furthermore, this needs to be called before any DistortedObject gets created.
470 478
 * </ul>
471 479
 * 
472 480
 * @param max new maximum number of simultaneous Vertex Effects. Has to be a non-negative number not greater
......
483 491
 * Sets the maximum number of Fragment effects that can be applied to a single DistortedObject at one time.
484 492
 * This can fail if:
485 493
 * <ul>
486
 * <li>the value of 'max' is outside permitted range
494
 * <li>the value of 'max' is outside permitted range (0 &le; max &le; Byte.MAX_VALUE)
487 495
 * <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called 
488 496
 *     before the Fragment Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this
489
 *     time only decreasing the value of 'max' is permitted.  
497
 *     time only decreasing the value of 'max' is permitted.
498
 * <li>Furthermore, this needs to be called before any DistortedObject gets created.
490 499
 * </ul>
491 500
 * 
492 501
 * @param max new maximum number of simultaneous Fragment Effects. Has to be a non-negative number not greater

Also available in: Unified diff