Revision 70b6a155
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java | ||
---|---|---|
22 | 22 |
import android.opengl.GLES30; |
23 | 23 |
|
24 | 24 |
import org.distorted.library.main.DistortedFramebuffer; |
25 |
import org.distorted.library.main.DistortedOutputSurface; |
|
25 | 26 |
import org.distorted.library.main.DistortedRenderState; |
26 | 27 |
import org.distorted.library.program.DistortedProgram; |
27 | 28 |
import org.distorted.library.type.Data1D; |
... | ... | |
139 | 140 |
* |
140 | 141 |
* @y.exclude |
141 | 142 |
*/ |
142 |
public int apply(float[] uniforms, int index, DistortedFramebuffer[] buffers)
|
|
143 |
public int apply(float[] uniforms, int index, DistortedOutputSurface[] buffers)
|
|
143 | 144 |
{ |
144 | 145 |
if( mProgram1 ==null) |
145 | 146 |
{ |
... | ... | |
149 | 150 |
|
150 | 151 |
DistortedRenderState.useStencilMark(); |
151 | 152 |
|
152 |
DistortedFramebuffer buffer = buffers[mQualityLevel]; |
|
153 |
DistortedFramebuffer buffer = (DistortedFramebuffer)buffers[mQualityLevel];
|
|
153 | 154 |
|
154 | 155 |
buffer.setAsOutput(); |
155 | 156 |
|
Also available in: Unified diff
Internal API change around postprocessing.