@Test public final void testContextReleaseNotCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); this.expected.expect(JCGLExceptionContextNotCurrent.class); c0.contextReleaseCurrent(); }
@Test public final void testContextReleaseNotCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); this.expected.expect(JCGLExceptionContextNotCurrent.class); c0.contextReleaseCurrent(); }
@Test public final void testContextDestroyedReleaseCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextReleaseCurrent(); }
@Test public final void testContextDestroyedReleaseCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextReleaseCurrent(); }
@Test public final void testContextDestroyedIsCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextIsCurrent(); }
@Test public final void testContextDestroyedGetShares() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetShares(); }
@Test public final void testContextDestroyedDestroy() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextDestroy(); }
@Test public final void testContextDestroyedMakeCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextMakeCurrent(); }
@Test public final void testContextDestroyedGetGL33() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetGL33(); }
@Test public final void testContextDestroyedDestroy() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextDestroy(); }
@Test public final void testContextDestroyedIsCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextIsCurrent(); }
@Test public final void testContextDestroyedMakeCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextMakeCurrent(); }
@Test public final void testContextDestroyedGetImplementation() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetImplementation(); }
@Test public final void testContextDestroyedGetImplementation() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetImplementation(); }
@Test public final void testContextDestroyedGetShares() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetShares(); }
@Test public final void testContextDestroyedGetGL33() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetGL33(); }
@Test public final void testContextMakeCurrentIsCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); Assert.assertFalse(c0.contextIsCurrent()); c0.contextMakeCurrent(); Assert.assertTrue(c0.contextIsCurrent()); }
@Test public final void testContextMakeCurrentIsCurrent() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); Assert.assertFalse(c0.contextIsCurrent()); c0.contextMakeCurrent(); Assert.assertTrue(c0.contextIsCurrent()); }
@Test public final void testArrayBindShared() { final JCGLSharedContextPair<JCGLArrayBuffersType> p = this.getArrayBuffersSharedWith("main", "alt"); final JCGLContextType ca = p.getMasterContext(); final JCGLContextType cb = p.getSlaveContext(); final JCGLArrayBuffersType ga = p.getMasterValue(); final JCGLArrayBuffersType gb = p.getSlaveValue(); Assert.assertTrue(ca.contextIsCurrent()); Assert.assertFalse(cb.contextIsCurrent()); final JCGLArrayBufferType a = ga.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); ca.contextReleaseCurrent(); cb.contextMakeCurrent(); gb.arrayBufferBind(a); }
@Test public final void testGeometryShaderDeleteSharedContext() { final JCGLSharedContextPair<JCGLShadersType> cp = this.getShadersSharedWith("main", "alt"); final JCGLContextType c0 = cp.getMasterContext(); final JCGLShadersType s0 = cp.getMasterValue(); final JCGLContextType c1 = cp.getSlaveContext(); final JCGLShadersType s1 = cp.getSlaveValue(); Assert.assertTrue(c0.contextIsCurrent()); Assert.assertFalse(c1.contextIsCurrent()); final JCGLGeometryShaderType g = s0.shaderCompileGeometry("valid0", this.getShaderLines("valid0.geom")); c0.contextReleaseCurrent(); c1.contextMakeCurrent(); s1.shaderDeleteGeometry(g); Assert.assertTrue(g.isDeleted()); }