use of com.jme3.renderer.opengl.GLDebugES in project jmonkeyengine by jMonkeyEngine.
the class OGLESContext method initInThread.
protected void initInThread() {
created.set(true);
logger.fine("OGLESContext create");
logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName());
// Setup unhandled Exception Handler
Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable thrown) {
listener.handleError("Exception thrown in " + thread.toString(), thrown);
}
});
timer = new NanoTimer();
Object gl = new AndroidGL();
// gl = GLTracer.createGlesTracer((GL)gl, (GLExt)gl);
// gl = new GLDebugES((GL)gl, (GLExt)gl);
renderer = new GLRenderer((GL) gl, (GLExt) gl, (GLFbo) gl);
renderer.initialize();
JmeSystem.setSoftTextDialogInput(this);
needClose.set(false);
}
use of com.jme3.renderer.opengl.GLDebugES in project jmonkeyengine by jMonkeyEngine.
the class IGLESContext method create.
@Override
public void create(boolean waitFor) {
logger.log(Level.FINE, "IGLESContext create");
GL gl = new IosGL();
GLExt glext = (GLExt) gl;
// if (settings.getBoolean("GraphicsDebug")) {
gl = new GLDebugES(gl, glext, (GLFbo) glext);
glext = (GLExt) gl;
// }
renderer = new GLRenderer(gl, glext, (GLFbo) glext);
renderer.initialize();
input = new IosInputHandler();
timer = new NanoTimer();
//synchronized (createdLock){
created.set(true);
//createdLock.notifyAll();
//}
listener.initialize();
if (waitFor) {
//waitFor(true);
}
logger.log(Level.FINE, "IGLESContext created");
}
Aggregations