Revision da99dd30
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
48 | 48 |
private static boolean mListMarked = false; |
49 | 49 |
private static LinkedList<DistortedFramebuffer> mList = new LinkedList<>(); |
50 | 50 |
|
51 |
private float mX, mY, mFOV; |
|
52 |
|
|
53 |
int[] texIds = new int[1]; |
|
54 |
int[] fboIds = new int[1]; |
|
51 |
private int[] texIds = new int[1]; |
|
52 |
private int[] fboIds = new int[1]; |
|
55 | 53 |
|
56 | 54 |
private boolean mMarked; |
57 | 55 |
|
56 |
// Projection stuff |
|
57 |
private float mX, mY, mFOV; |
|
58 | 58 |
int mWidth,mHeight,mDepth; |
59 | 59 |
float mDistance; |
60 | 60 |
float[] mProjectionMatrix; |
... | ... | |
124 | 124 |
texIds[0] = TEXTURE_NOT_CREATED_YET; |
125 | 125 |
} |
126 | 126 |
|
127 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
128 |
|
|
129 |
void setAsOutput() |
|
130 |
{ |
|
131 |
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboIds[0]); |
|
132 |
} |
|
133 |
|
|
134 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
135 |
|
|
136 |
void setAsInput() |
|
137 |
{ |
|
138 |
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texIds[0]); |
|
139 |
} |
|
140 |
|
|
127 | 141 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
128 | 142 |
|
129 | 143 |
private void createProjection() |
Also available in: Unified diff
Clean up DFramebuffer's API