public class GlTextureView
extends TextureView
Modifier and Type | Field and Description |
---|---|
protected PictureGlLayer |
glGround |
Constructor and Description |
---|
GlTextureView(Context context) |
GlTextureView(Context context,
AttributeSet attrs) |
GlTextureView(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
void |
onSurfaceTextureAvailable(SurfaceTexture surface,
int width,
int height) |
boolean |
onSurfaceTextureDestroyed(SurfaceTexture surface) |
void |
onSurfaceTextureSizeChanged(SurfaceTexture surface,
int width,
int height) |
void |
onSurfaceTextureUpdated(SurfaceTexture surface) |
void |
requestRender(java.lang.Runnable runnable) |
void |
runWithGlContext(java.lang.Runnable r) |
void |
setSurfaceTextureListener(SurfaceTextureListener listener) |
protected PictureGlLayer glGround
public GlTextureView(@NonNull Context context)
public GlTextureView(@NonNull Context context, AttributeSet attrs)
public GlTextureView(@NonNull Context context, AttributeSet attrs, int defStyle)
protected void onAttachedToWindow()
protected void onDetachedFromWindow()
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height)
public boolean onSurfaceTextureDestroyed(SurfaceTexture surface)
public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height)
public void onSurfaceTextureUpdated(SurfaceTexture surface)
@AnyThread public void requestRender(java.lang.Runnable runnable)
@AnyThread public void runWithGlContext(@NonNull java.lang.Runnable r)
public void setSurfaceTextureListener(SurfaceTextureListener listener)