java.lang.Object |
↳ |
org.opencdnunion.media.streamer.util.gles.GLRender |
Class Overview
OpenGL render thread manager.
Support GLSurfaceView and TextureView.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
int
STATE_IDLE
Constant Value:
0
(0x00000000)
public
static
final
int
STATE_READY
Constant Value:
1
(0x00000001)
public
static
final
int
STATE_RELEASED
Constant Value:
2
(0x00000002)
public
static
final
int
VIEW_TYPE_GLSURFACEVIEW
Constant Value:
1
(0x00000001)
public
static
final
int
VIEW_TYPE_NONE
Constant Value:
0
(0x00000000)
public
static
final
int
VIEW_TYPE_OFFSCREEN
Constant Value:
3
(0x00000003)
public
static
final
int
VIEW_TYPE_TEXTUREVIEW
Constant Value:
2
(0x00000002)
Public Constructors
public
GLRender
(EGLContext eglContext)
Public Methods
public
Object
getCurrentView
()
public
EGLContext
getEGL10Context
()
public
android.opengl.EGLContext
getEGLContext
()
public
int
getViewType
()
public
void
init
(GLSurfaceView glSurfaceView)
Init GLRender manager, must be called before GLSurfaceView created.
Parameters
glSurfaceView |
dedicated GLSurfaceView
|
public
void
init
(int width, int height)
Init GLRender manager with offscreen surface.
Parameters
width |
offscreen width |
height |
offscreen height
|
public
void
init
(TextureView textureView)
Init GLRender manager, must be called before TextureView ready.
Parameters
textureView |
dedicated TextureView
|
public
boolean
isGLRenderThread
()
public
void
queueDrawFrameAppends
(Runnable r)
public
void
queueEvent
(Runnable r)
public
void
requestRender
()
public
void
setInitEGL10Context
(EGLContext eglContext)