Revision b329f352
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedProjection.java | ||
---|---|---|
3 | 3 |
import android.opengl.Matrix; |
4 | 4 |
|
5 | 5 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
6 |
|
|
7 |
public class DistortedProjection |
|
6 |
/** |
|
7 |
* Only used within the Distorted Library itself. |
|
8 |
*/ |
|
9 |
class DistortedProjection |
|
8 | 10 |
{ |
9 | 11 |
int width,height,depth,distance; |
10 | 12 |
float[] projectionMatrix; |
... | ... | |
14 | 16 |
// render to FBO we invert the texture upside down because its vertex coords |
15 | 17 |
// are purposefully set upside down in DistortedBackground; so each time we |
16 | 18 |
// render through FBO we need to invert it once more to counter this effect) |
17 |
|
|
18 |
|
|
19 |
|
|
19 | 20 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
20 | 21 |
|
21 | 22 |
public DistortedProjection(boolean inv) |
Also available in: Unified diff
Improvements for Javadoc