Skip to content

Instantly share code, notes, and snippets.

@ilya-t
ilya-t / GLTextureView.java
Last active May 16, 2024 12:18
TextureView implementation for displaying openGL rendering
import android.content.Context;
import android.graphics.SurfaceTexture;
import android.opengl.GLSurfaceView;
import android.opengl.GLUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.TextureView;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLConfig;