SKGLTextureView 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 GLTextureView that uses the dedicated surface for displaying a hardware-accelerated SKSurface.
public class SKGLTextureView : SkiaSharp.Views.Android.GLTextureView
- Inheritance
Constructors
| Name | Description |
|---|---|
| SKGLTextureView(Context, IAttributeSet) |
Initializes a new instance of the SKGLTextureView class with the specified XML attributes. |
| SKGLTextureView(Context) |
Initializes a new instance of the SKGLTextureView class. |
Properties
| Name | Description |
|---|---|
| CanvasSize |
Gets the current canvas size. |
| DebugFlags |
Gets or sets the current debug flags. (Inherited from GLTextureView) |
| GRContext |
Gets the current GPU context. |
| PreserveEGLContextOnPause |
Gets or sets a value indicating whether the EGL context is preserved when the TextureView is paused and resumed. (Inherited from GLTextureView) |
| RenderMode |
Gets or sets the render mode. (Inherited from GLTextureView) |
Methods
| Name | Description |
|---|---|
| Dispose(Boolean) |
Releases the unmanaged resources used by the GLTextureView and optionally releases the managed resources. (Inherited from GLTextureView) |
| OnAttachedToWindow() |
Called when the view is attached to a window. (Inherited from GLTextureView) |
| OnDetachedFromWindow() |
Called when the view is detached from a window. (Inherited from GLTextureView) |
| OnLayoutChange(View, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Called when the layout bounds of a view changes due to layout processing. (Inherited from GLTextureView) |
| OnPaintSurface(SKPaintGLSurfaceEventArgs) |
Implement this to draw on the canvas. |
| OnPause() |
Inform the view that the activity is paused. (Inherited from GLTextureView) |
| OnResume() |
Inform the view that the activity is resumed. (Inherited from GLTextureView) |
| OnSurfaceTextureAvailable(SurfaceTexture, Int32, Int32) |
Invoked when a texture is ready for use. (Inherited from GLTextureView) |
| OnSurfaceTextureDestroyed(SurfaceTexture) |
Invoked when the specified texture is about to be destroyed. (Inherited from GLTextureView) |
| OnSurfaceTextureSizeChanged(SurfaceTexture, Int32, Int32) |
Invoked when the texture's buffers size changed. (Inherited from GLTextureView) |
| OnSurfaceTextureUpdated(SurfaceTexture) |
Invoked when the specified texture is updated through Android.Graphics.SurfaceTexture.UpdateTexImage. (Inherited from GLTextureView) |
| QueueEvent(Action) |
Queue an action to be run on the GL rendering thread. (Inherited from GLTextureView) |
| QueueEvent(IRunnable) |
Queue a runnable to be run on the GL rendering thread. (Inherited from GLTextureView) |
| RequestRender() |
Request that the renderer render a frame. (Inherited from GLTextureView) |
| 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. (Inherited from GLTextureView) |
| SetEGLConfigChooser(GLTextureView+IEGLConfigChooser) |
Install a custom config chooser. (Inherited from GLTextureView) |
| 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. (Inherited from GLTextureView) |
| SetEGLContextClientVersion(Int32) |
Inform the default context factory and default config chooser which context client version to pick. (Inherited from GLTextureView) |
| SetEGLContextFactory(GLTextureView+IEGLContextFactory) |
Install a custom context factory. (Inherited from GLTextureView) |
| SetEGLWindowSurfaceFactory(GLTextureView+IEGLWindowSurfaceFactory) |
Install a custom window surface factory. (Inherited from GLTextureView) |
| SetGLWrapper(GLTextureView+IGLWrapper) |
Sets the GL wrapper. (Inherited from GLTextureView) |
| 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. (Inherited from GLTextureView) |
Events
| Name | Description |
|---|---|
| PaintSurface |
Occurs when the surface needs to be redrawn. |