Methods Summary |
---|
public void | dispose()
synchronized (byId) {
byId.remove(new Integer(nativeId));
this.nativeId = 0;
}
|
public java.lang.Thread | getBoundThread()
return boundThread;
|
public EGLDisplay | getDisplay()
return display;
|
public EGLSurface | getDrawSurface()
return drawSurface;
|
EGLSurfaceImpl | getDrawSurfaceImpl()
return (EGLSurfaceImpl)getDrawSurface();
|
public javax.microedition.khronos.opengles.GL | getGL()
synchronized (this) {
if (gl == null) {
if (!GLConfiguration.supportsGL11) {
gl = new GL10Impl(this);
} else {
gl = new GL11Impl(this);
}
}
return gl;
}
|
public static javax.microedition.khronos.egl.EGLContextImpl | getInstance(int nativeId)
synchronized (byId) {
WeakReference ref = (WeakReference)byId.get(new Integer(nativeId));
EGLContextImpl context = ref != null ?
(EGLContextImpl)ref.get() : null;
if (context == null) {
return new EGLContextImpl(nativeId);
} else {
return context;
}
}
|
public EGLSurface | getReadSurface()
return readSurface;
|
public boolean | isDestroyed()
return destroyed;
|
public int | nativeId()
return nativeId;
|
public void | setBoundThread(java.lang.Thread boundThread)
this.boundThread = boundThread;
|
public void | setDestroyed(boolean destroyed)
this.destroyed = destroyed;
|
public void | setDisplay(EGLDisplayImpl display)
this.display = display;
|
public void | setDrawSurface(EGLSurfaceImpl drawSurface)
this.drawSurface = drawSurface;
|
public void | setReadSurface(EGLSurfaceImpl readSurface)
this.readSurface = readSurface;
|
public java.lang.String | toString()For debugging purposes, prints the native context ID.
return "EGLContextImpl[" + nativeId + "]";
|