Revision cbb1de9d
Added by Leszek Koltunski over 3 years ago
| src/main/java/org/distorted/library/main/DistortedFramebuffer.java | ||
|---|---|---|
| 344 | 344 |
{
|
| 345 | 345 |
return mColorH[0]; |
| 346 | 346 |
} |
| 347 |
|
|
| 348 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 349 |
/** |
|
| 350 |
* Bind one of the underlying FBOs to GL_READ_FRAMEBUFFER. |
|
| 351 |
* Useful for a subsequent glReadBuffer / glReadPixels. |
|
| 352 |
* |
|
| 353 |
* @param fbo which of the underlying FBOs to bind. |
|
| 354 |
* @return <code>true</code> if successful. |
|
| 355 |
*/ |
|
| 356 |
public boolean setAsReadFramebuffer(int fbo) |
|
| 357 |
{
|
|
| 358 |
if( fbo>=0 && fbo<mNumFBOs ) |
|
| 359 |
{
|
|
| 360 |
GLES30.glBindFramebuffer(GLES30.GL_READ_FRAMEBUFFER, mFBOH[fbo]); |
|
| 361 |
return true; |
|
| 362 |
} |
|
| 363 |
|
|
| 364 |
return false; |
|
| 365 |
} |
|
| 347 | 366 |
} |
Also available in: Unified diff
Create the bandaged 3x3 icon: something works, the shape is drawn, but it's entirely black. Investigate.