public class Renderer extends Object
Constructor and Description |
---|
Renderer() |
Modifier and Type | Method and Description |
---|---|
static android.view.SurfaceView |
CreateLocalRenderer(android.content.Context context)
Create a video renderer for local stream.
|
static android.view.SurfaceView |
CreateRenderer()
Create a surface video renderer.
|
static android.view.SurfaceView |
CreateRenderer(boolean useOpenGLES2)
Create a surface or openGL video renderer.
|
static android.view.SurfaceHolder |
GetLocalRenderer()
Get the last local renderer created.
|
static boolean |
hasOpenGLES20(android.content.Context context)
Check if OpenGL ES 2.0 is available on current device.
|
public static android.view.SurfaceView CreateRenderer()
// Note used internally
public static android.view.SurfaceView CreateRenderer(boolean useOpenGLES2)
useOpenGLES2
- (boolean) True means use openGLES2.
// Note used internally
public static android.view.SurfaceView CreateLocalRenderer(android.content.Context context)
context
- (android.content.Context).
// Note used internally
public static android.view.SurfaceHolder GetLocalRenderer()
// Usage
SurfaceHolder holder = Renderer.GetLocalRenderer();
public static boolean hasOpenGLES20(android.content.Context context)
context
- (android.content.Context)
if ( Renderer.hasOpenGLES20() ) {
// Something
}
Copyright © 2015. All rights reserved.