Revision 015642fb
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/Distorted.java | ||
---|---|---|
51 | 51 |
*/ |
52 | 52 |
public static final int CLONE_BITMAP = 0x1; |
53 | 53 |
/** |
54 |
* When creating an instance of a DistortedObject from another instance, clone the PreShader Effects.
|
|
54 |
* When creating an instance of a DistortedObject from another instance, clone the Matrix Effects.
|
|
55 | 55 |
* <p> |
56 | 56 |
* This way we can have two different DistortedObjects with different Bitmaps behind them, both |
57 | 57 |
* always displayed in exactly the same place on the screen. Applying any matrix-based effect to |
58 | 58 |
* one of them automatically applies the effect to the other. Used in the copy constructor. |
59 | 59 |
*/ |
60 |
public static final int CLONE_PRESHADER = 0x2;
|
|
60 |
public static final int CLONE_MATRIX = 0x2;
|
|
61 | 61 |
/** |
62 | 62 |
* When creating an instance of a DistortedObject from another instance, clone the Vertex Effects. |
63 | 63 |
* <p> |
... | ... | |
74 | 74 |
* applies the effect to the other. Used in the copy constructor. |
75 | 75 |
*/ |
76 | 76 |
public static final int CLONE_FRAGMENT= 0x8; |
77 |
|
|
78 |
// Note: why no 'CLONE_POSTSHADER' constant? The only Postshader effects are the 'save to PNG file' |
|
79 |
// 'save to MP4 file'. Sharing those effects across multiple DistortedObject objects does not make any |
|
80 |
// sense - multiple Objects would then fight to get saved all to the same file. |
|
81 |
|
|
82 | 77 |
/** |
83 | 78 |
* When creating an instance of a DistortedNode from another instance, clone the children Nodes. |
84 | 79 |
* <p> |
... | ... | |
313 | 308 |
* Compiles the vertex and fragment shaders, establishes the addresses of all uniforms, and initialises all Bitmaps that have already |
314 | 309 |
* been created. |
315 | 310 |
* |
316 |
* @param context Context of the APpp using the library - used to open up Resources and read Shader code.
|
|
311 |
* @param context Context of the App using the library - used to open up Resources and read Shader code. |
|
317 | 312 |
* @throws FragmentCompilationException |
318 | 313 |
* @throws VertexCompilationException |
319 | 314 |
* @throws VertexUniformsException |
Also available in: Unified diff
Cleanup.