void makeCurrent () { EAGLContext.setCurrentContext(context); }
public EAGLContext(EAGLRenderingAPI api) { super((SkipInit) null); initObject(init(api)); } public EAGLContext(EAGLRenderingAPI api, EAGLSharegroup sharegroup) { super((SkipInit) null); initObject(init(api, sharegroup)); }
EAGLContext ctx = new EAGLContext(EAGLRenderingAPI.OpenGLES2); EAGLContext.setCurrentContext(ctx); plat = new RoboPlatform(config, bounds); view = new GLKView(bounds, ctx) {
context = new EAGLContext(EAGLRenderingAPI.OpenGLES3); if (context != null) gl20 = gl30 = new IOSGLES30(); context = new EAGLContext(EAGLRenderingAPI.OpenGLES2); gl20 = new IOSGLES20(); gl30 = null;
context = new EAGLContext(EAGLRenderingAPI.OpenGLES3); if (context != null) gl20 = gl30 = new IOSGLES30(); context = new EAGLContext(EAGLRenderingAPI.OpenGLES2); gl20 = new IOSGLES20(); gl30 = null;
public EAGLContext(EAGLRenderingAPI api, EAGLSharegroup sharegroup) { super((SkipInit) null); initObject(init(api, sharegroup)); } /*</constructors>*/
void makeCurrent () { EAGLContext.setCurrentContext(context); }
EAGLContext ctx = new EAGLContext(EAGLRenderingAPI.OpenGLES2); platform = new RoboPlatform(bounds, config); view = new GLKView(bounds, ctx) {
@Method(selector = "initWithAPI:") public EAGLContext(EAGLRenderingAPI api) { super((SkipInit) null); initObject(init(api)); } @Method(selector = "initWithAPI:sharegroup:")
void makeCurrent () { EAGLContext.setCurrentContext(context); }
context = new EAGLContext(EAGLRenderingAPI.OpenGLES3); if (context != null) gl20 = gl30 = new IOSGLES30(); context = new EAGLContext(EAGLRenderingAPI.OpenGLES2); gl20 = new IOSGLES20(); gl30 = null;
@Method(selector = "initWithAPI:sharegroup:") public EAGLContext(EAGLRenderingAPI api, EAGLSharegroup sharegroup) { super((SkipInit) null); initObject(init(api, sharegroup)); } /*</constructors>*/
@Override // from ViewController public void viewDidDisappear(boolean animated) { super.viewDidDisappear(animated); EAGLContext.setCurrentContext(null); }
@Method(selector = "initWithAPI:sharegroup:") public EAGLContext(EAGLRenderingAPI api, EAGLSharegroup sharegroup) { super((SkipInit) null); initObject(init(api, sharegroup)); } /*</constructors>*/
public void invoke (NSTimer timer) { // shutdown the GL view completely EAGLContext.setCurrentContext(null); // stop and release the AL resources (if audio was ever initialized) if (audio != null) audio.terminate(); } }, null, false);
@Method(selector = "initWithAPI:") public EAGLContext(EAGLRenderingAPI api) { super((SkipInit) null); initObject(init(api)); } @Method(selector = "initWithAPI:sharegroup:")
public void invoke (NSTimer timer) { // shutdown the GL view completely EAGLContext.setCurrentContext(null); // stop and release the AL resources (if audio was ever initialized) if (audio != null) audio.terminate(); } }, null, false);
@Override // from ViewController public void viewDidDisappear(boolean animated) { super.viewDidDisappear(animated); EAGLContext.setCurrentContext(null); }
@Override // from ViewController public void viewDidAppear(boolean animated) { super.viewDidAppear(animated); // platform.log().debug("viewDidAppear(" + animated + "): " + bounds); EAGLContext.setCurrentContext(view.getContext()); platform.graphics().ctx.viewDidAppear(); platform.graphics().setSize(getView().getBounds()); }