GLTextureView Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An implementation of TextureView that uses the dedicated surface for displaying OpenGL rendering.
public class GLTextureView : Android.Views.TextureView, Android.Views.TextureView.ISurfaceTextureListener, Android.Views.View.IOnLayoutChangeListener, IDisposable, Java.Interop.IJavaPeerable
- Inheritance
-
GLTextureView
- Derived
- Implements
Constructors
| Name | Description |
|---|---|
| GLTextureView(Context, IAttributeSet) |
Initializes a new instance of the GLTextureView class with the specified XML attributes. |
| GLTextureView(Context) |
Initializes a new instance of the GLTextureView class. |
Properties
| Name | Description |
|---|---|
| DebugFlags |
Gets or sets the current debug flags. |
| PreserveEGLContextOnPause |
Gets or sets a value indicating whether the EGL context is preserved when the TextureView is paused and resumed. |
| RenderMode |
Gets or sets the render mode. |
Methods
| Name | Description |
|---|---|
| Dispose(Boolean) |
Releases the unmanaged resources used by the GLTextureView and optionally releases the managed resources. |
| OnAttachedToWindow() |
Called when the view is attached to a window. |
| OnDetachedFromWindow() |
Called when the view is detached from a window. |
| OnLayoutChange(View, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Called when the layout bounds of a view changes due to layout processing. |
| OnPause() |
Inform the view that the activity is paused. |
| OnResume() |
Inform the view that the activity is resumed. |
| OnSurfaceTextureAvailable(SurfaceTexture, Int32, Int32) |
Invoked when a texture is ready for use. |
| OnSurfaceTextureDestroyed(SurfaceTexture) |
Invoked when the specified texture is about to be destroyed. |
| OnSurfaceTextureSizeChanged(SurfaceTexture, Int32, Int32) |
Invoked when the texture's buffers size changed. |
| OnSurfaceTextureUpdated(SurfaceTexture) |
Invoked when the specified texture is updated through Android.Graphics.SurfaceTexture.UpdateTexImage. |
| QueueEvent(Action) |
Queue an action to be run on the GL rendering thread. |
| QueueEvent(IRunnable) |
Queue a runnable to be run on the GL rendering thread. |
| RequestRender() |
Request that the renderer render a frame. |
| SetEGLConfigChooser(Boolean) |
Install a config chooser which will choose a config as close to 16-bit RGB as possible, with or without an optional depth buffer as close to 16-bits as possible. |
| SetEGLConfigChooser(GLTextureView+IEGLConfigChooser) |
Install a custom config chooser. |
| SetEGLConfigChooser(Int32, Int32, Int32, Int32, Int32, Int32) |
Install a config chooser which will choose a config with at least the specified depth size and stencil size, and exactly the specified red size, green size, blue size and alpha size. |
| SetEGLContextClientVersion(Int32) |
Inform the default context factory and default config chooser which context client version to pick. |
| SetEGLContextFactory(GLTextureView+IEGLContextFactory) |
Install a custom context factory. |
| SetEGLWindowSurfaceFactory(GLTextureView+IEGLWindowSurfaceFactory) |
Install a custom window surface factory. |
| SetGLWrapper(GLTextureView+IGLWrapper) |
Sets the GL wrapper. |
| SetRenderer(GLTextureView+IRenderer) |
Sets the renderer associated with this view. Also starts the thread that will call the renderer, which in turn causes the rendering to start. |