public class GLRenderer
extends GLSurfaceView
Modifier and Type | Field and Description |
---|---|
protected ReentrantLock |
nativeLock |
protected long |
nativeReference |
protected boolean |
openGLCreated |
protected boolean |
surfaceCreated |
protected int |
surfaceHeight |
protected int |
surfaceWidth |
Constructor and Description |
---|
GLRenderer(Context context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
CreateOpenGL() |
protected int |
CreateOpenGLNative(long nativeObject,
int width,
int height) |
void |
DeRegisterNativeObject() |
protected void |
DrawNative(long nativeObject) |
protected void |
initialize() |
static boolean |
IsGLRenderer(Object renderWindow) |
void |
onDrawFrame(GL10 gl) |
void |
onSurfaceChanged(GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(GL10 gl10,
EGLConfig eglConfig) |
void |
ReDraw() |
void |
RegisterNativeObject(long nativeObject) |
protected boolean surfaceCreated
protected int surfaceWidth
protected int surfaceHeight
protected boolean openGLCreated
protected ReentrantLock nativeLock
protected long nativeReference
protected int CreateOpenGLNative(long nativeObject, int width, int height)
protected void DrawNative(long nativeObject)
protected void initialize()
protected boolean CreateOpenGL()
public void onDrawFrame(GL10 gl)
public void onSurfaceCreated(GL10 gl10, EGLConfig eglConfig)
public void onSurfaceChanged(GL10 gl, int width, int height)
public static boolean IsGLRenderer(Object renderWindow)
public void RegisterNativeObject(long nativeObject)
public void DeRegisterNativeObject()
public void ReDraw()
Copyright © 2017. All rights reserved.