Revision 46e25345
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
125 | 125 |
} |
126 | 126 |
|
127 | 127 |
mList.add(this); |
128 |
android.util.Log.e("FBO", "created ("+mWidth+","+mHeight+") "+fboIds[0]); |
|
128 |
//android.util.Log.e("FBO", "created ("+mWidth+","+mHeight+") "+fboIds[0]);
|
|
129 | 129 |
|
130 | 130 |
return true; |
131 | 131 |
} |
... | ... | |
137 | 137 |
{ |
138 | 138 |
if( texIds[0]>=0 ) |
139 | 139 |
{ |
140 |
android.util.Log.e("FBO", "deleting ("+mWidth+","+mHeight+") "+fboIds[0]); |
|
140 |
//android.util.Log.e("FBO", "deleting ("+mWidth+","+mHeight+") "+fboIds[0]);
|
|
141 | 141 |
|
142 | 142 |
GLES20.glDeleteTextures(1, texIds, 0); |
143 | 143 |
GLES20.glDeleteFramebuffers(1, fboIds, 0); |
... | ... | |
240 | 240 |
*/ |
241 | 241 |
public void markForDeletion() |
242 | 242 |
{ |
243 |
android.util.Log.e("FBO", "marking for deletion ("+mWidth+","+mHeight+") "+fboIds[0]); |
|
243 |
//android.util.Log.e("FBO", "marking for deletion ("+mWidth+","+mHeight+") "+fboIds[0]);
|
|
244 | 244 |
|
245 | 245 |
mListMarked = true; |
246 | 246 |
mMarked = true; |
src/main/java/org/distorted/library/DistortedTexture.java | ||
---|---|---|
233 | 233 |
|
234 | 234 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
235 | 235 |
/** |
236 |
* Returns the height of the DistortedObject.
|
|
236 |
* Returns the height of the Texture.
|
|
237 | 237 |
* |
238 | 238 |
* @return height of the object, in pixels. |
239 | 239 |
*/ |
... | ... | |
244 | 244 |
|
245 | 245 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
246 | 246 |
/** |
247 |
* Returns the width of the DistortedObject.
|
|
247 |
* Returns the width of the Texture.
|
|
248 | 248 |
* |
249 | 249 |
* @return width of the Object, in pixels. |
250 | 250 |
*/ |
... | ... | |
255 | 255 |
|
256 | 256 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
257 | 257 |
/** |
258 |
* Returns the depth of the DistortedObject.
|
|
258 |
* Returns the depth of the Texture.
|
|
259 | 259 |
* <p> |
260 | 260 |
* Admittedly quite a strange method. Why do we need to pass a Grid to it? Because one cannot determine |
261 | 261 |
* 'depth' of a texture when rendered based only on the texture itself, that depends on the Grid it is |
Also available in: Unified diff
Minor.