Revision e6519ac8
Added by Leszek Koltunski about 6 years ago
src/main/java/org/distorted/library/main/DistortedScreen.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
23 | 23 |
|
24 |
import android.app.ActivityManager; |
|
25 |
import android.content.Context; |
|
26 |
import android.content.pm.ConfigurationInfo; |
|
27 | 24 |
import android.graphics.Bitmap; |
28 | 25 |
import android.graphics.Canvas; |
29 | 26 |
import android.graphics.Paint; |
30 |
import android.opengl.GLES30; |
|
31 |
import android.opengl.GLSurfaceView; |
|
27 |
import android.opengl.GLES31; |
|
32 | 28 |
|
33 | 29 |
import org.distorted.library.effect.MatrixEffectMove; |
34 | 30 |
import org.distorted.library.type.Static3D; |
... | ... | |
123 | 119 |
if (fpsTexture.setAsInput()) |
124 | 120 |
{ |
125 | 121 |
setAsOutput(time); |
126 |
GLES30.glColorMask(true,true,true,true);
|
|
127 |
GLES30.glDepthMask(false);
|
|
128 |
GLES30.glDisable(GLES30.GL_STENCIL_TEST);
|
|
129 |
GLES30.glDisable(GLES30.GL_DEPTH_TEST);
|
|
122 |
GLES31.glColorMask(true,true,true,true);
|
|
123 |
GLES31.glDepthMask(false);
|
|
124 |
GLES31.glDisable(GLES31.GL_STENCIL_TEST);
|
|
125 |
GLES31.glDisable(GLES31.GL_DEPTH_TEST);
|
|
130 | 126 |
fpsEffects.drawPriv(fpsW/2.0f, fpsH/2.0f, fpsMesh, this, time, 0); |
131 | 127 |
} |
132 | 128 |
} |
Also available in: Unified diff
Up library requirements to OpenGL ES 3.1 (needed for the upcoming GL_SHADER_STORAGE_BUFFER)