open class TextureView : TextureView, ISurface
Rajawali version of a TextureView. If you plan on using Rajawali with a TextureView, it is imperative that you extend this class or life cycle events may not function as you expect.
Author
Jared Woolston (jwoolston@tenkiv.com)
abstract class BaseConfigChooser : IRajawaliEglConfigChooser |
|
open class ComponentSizeChooser : TextureView.BaseConfigChooser
Choose a configuration with exactly the specified r,g,b,a sizes, and at least the specified depth and stencil sizes. |
|
class RendererDelegate : SurfaceTextureListener |
TextureView(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)
Rajawali version of a TextureView. If you plan on using Rajawali with a TextureView, it is imperative that you extend this class or life cycle events may not function as you expect. |
var antiAliasingConfig: ISurface.ANTI_ALIASING_CONFIG |
|
var bitsAlpha: Int |
|
var bitsBlue: Int |
|
var bitsDepth: Int |
|
var bitsGreen: Int |
|
var bitsRed: Int |
|
var frameRateTexture: Double |
|
var mRenderMode: Int |
|
var multiSampleCount: Int |
|
var preserveEGLContextOnPause: Boolean
Control whether the EGL context is preserved when the TextureView is paused and resumed. |
|
var rendererDelegate: TextureView.RendererDelegate? |
|
var renderModeInternal: Int
The rendering mode. |
open fun finalize(): Unit |
|
open fun getRenderMode(): Int |
|
open fun onAttachedToWindow(): Unit
This method is used as part of the View class and is not normally called or subclassed by clients of TextureView. |
|
open fun onDetachedFromWindow(): Unit |
|
open fun onPause(): Unit
Inform the view that the activity is paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Must not be called before a renderer has been set. |
|
open fun onResume(): Unit
Inform the view that the activity is resumed. The owner of this view must call this method when the activity is resumed. Calling this method will recreate the OpenGL display and resume the rendering thread. Must not be called before a renderer has been set. |
|
open fun onVisibilityChanged(changedView: View, visibility: Int): Unit |
|
open fun queueEvent(runnable: Runnable): Unit
Queue a runnable to be run on the GL rendering thread. This can be used to communicate with the Renderer on the rendering thread. Must not be called before a renderer has been set. |
|
open fun requestRenderUpdate(): Unit |
|
open fun setAntiAliasingMode(config: ISurface.ANTI_ALIASING_CONFIG): Unit |
|
open fun setEGLConfigChooser(configChooser: IRajawaliEglConfigChooser): Unit
Install a custom EGLConfigChooser. open fun setEGLConfigChooser(redSize: Int, greenSize: Int, blueSize: Int, alphaSize: Int, depthSize: Int, stencilSize: Int): Unit
Install a config chooser which will choose a config with at least the specified depthSize and stencilSize, and exactly the specified redSize, greenSize, blueSize and alphaSize. |
|
open fun setEGLContextClientVersion(version: Int): Unit
Inform the default EGLContextFactory and default EGLConfigChooser which EGLContext client version to pick. |
|
open fun setEGLContextFactory(factory: EGLContextFactory): Unit
Install a custom EGLContextFactory. |
|
open fun setEGLWindowSurfaceFactory(factory: EGLWindowSurfaceFactory): Unit
Install a custom EGLWindowSurfaceFactory. |
|
open fun setFrameRate(rate: Double): Unit |
|
open fun setRenderMode(mode: Int): Unit |
|
open fun setSampleCount(count: Int): Unit |
|
open fun setSurfaceRenderer(renderer: ISurfaceRenderer): Unit |