org.rajawali3d.view / TextureView

TextureView

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)

Types

BaseConfigChooser

abstract class BaseConfigChooser : IRajawaliEglConfigChooser

ComponentSizeChooser

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.

RendererDelegate

class RendererDelegate : SurfaceTextureListener

Constructors

<init>

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.

Properties

antiAliasingConfig

var antiAliasingConfig: ISurface.ANTI_ALIASING_CONFIG

bitsAlpha

var bitsAlpha: Int

bitsBlue

var bitsBlue: Int

bitsDepth

var bitsDepth: Int

bitsGreen

var bitsGreen: Int

bitsRed

var bitsRed: Int

frameRateTexture

var frameRateTexture: Double

mRenderMode

var mRenderMode: Int

multiSampleCount

var multiSampleCount: Int

preserveEGLContextOnPause

var preserveEGLContextOnPause: Boolean

Control whether the EGL context is preserved when the TextureView is paused and resumed.

rendererDelegate

var rendererDelegate: TextureView.RendererDelegate?

renderModeInternal

var renderModeInternal: Int

The rendering mode.

Functions

finalize

open fun finalize(): Unit

getRenderMode

open fun getRenderMode(): Int

onAttachedToWindow

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.

onDetachedFromWindow

open fun onDetachedFromWindow(): Unit

onPause

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.

onResume

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.

onVisibilityChanged

open fun onVisibilityChanged(changedView: View, visibility: Int): Unit

queueEvent

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.

requestRenderUpdate

open fun requestRenderUpdate(): Unit

setAntiAliasingMode

open fun setAntiAliasingMode(config: ISurface.ANTI_ALIASING_CONFIG): Unit

setEGLConfigChooser

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.

setEGLContextClientVersion

open fun setEGLContextClientVersion(version: Int): Unit

Inform the default EGLContextFactory and default EGLConfigChooser which EGLContext client version to pick.

setEGLContextFactory

open fun setEGLContextFactory(factory: EGLContextFactory): Unit

Install a custom EGLContextFactory.

setEGLWindowSurfaceFactory

open fun setEGLWindowSurfaceFactory(factory: EGLWindowSurfaceFactory): Unit

Install a custom EGLWindowSurfaceFactory.

setFrameRate

open fun setFrameRate(rate: Double): Unit

setRenderMode

open fun setRenderMode(mode: Int): Unit

setSampleCount

open fun setSampleCount(count: Int): Unit

setSurfaceRenderer

open fun setSurfaceRenderer(renderer: ISurfaceRenderer): Unit