Revision ab12f06b
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/Distorted.java | ||
---|---|---|
280 | 280 |
* When OpenGL context gets created, you need to call this method so that the library can initialise its internal data structures. |
281 | 281 |
* I.e. best called from GLSurfaceView.onSurfaceCreated(). |
282 | 282 |
* <p> |
283 |
* Compiles the vertex and fragment shaders, establishes the addresses of all uniforms, and initialises all Bitmaps that have already |
|
284 |
* been created. |
|
283 |
* Compiles the vertex and fragment shaders, establishes the addresses of all uniforms. |
|
285 | 284 |
* |
286 | 285 |
* @param context Context of the App using the library - used to open up Resources and read Shader code. |
287 | 286 |
* @throws FragmentCompilationException |
... | ... | |
392 | 391 |
* <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called |
393 | 392 |
* before the Vertex Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this |
394 | 393 |
* time only decreasing the value of 'max' is permitted. |
395 |
* <li>Furthermore, this needs to be called before any DistortedEffects gets created.
|
|
394 |
* <li>Furthermore, this needs to be called before any instances of the DistortedEffects class get created.
|
|
396 | 395 |
* </ul> |
397 | 396 |
* |
398 | 397 |
* @param max new maximum number of simultaneous Matrix Effects. Has to be a non-negative number not greater |
... | ... | |
413 | 412 |
* <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called |
414 | 413 |
* before the Vertex Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this |
415 | 414 |
* time only decreasing the value of 'max' is permitted. |
416 |
* <li>Furthermore, this needs to be called before any DistortedEffects get created.
|
|
415 |
* <li>Furthermore, this needs to be called before any instances of the DistortedEffects class get created.
|
|
417 | 416 |
* </ul> |
418 | 417 |
* |
419 | 418 |
* @param max new maximum number of simultaneous Vertex Effects. Has to be a non-negative number not greater |
... | ... | |
434 | 433 |
* <li>We try to increase the value of 'max' when it is too late to do so already. It needs to be called |
435 | 434 |
* before the Fragment Shader gets compiled, i.e. before the call to {@link #onSurfaceCreated}. After this |
436 | 435 |
* time only decreasing the value of 'max' is permitted. |
437 |
* <li>Furthermore, this needs to be called before any DistortedEffects get created.
|
|
436 |
* <li>Furthermore, this needs to be called before any instances of the DistortedEffects class get created.
|
|
438 | 437 |
* </ul> |
439 | 438 |
* |
440 | 439 |
* @param max new maximum number of simultaneous Fragment Effects. Has to be a non-negative number not greater |
Also available in: Unified diff
Some more minor fixes.