@Test public final void testNoDepthNoFramebufferClampDisable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthClampingDisable(); }
@Test public final void testNoDepthNoFramebufferClampDisable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthClampingDisable(); }
@Test public final void testNoDepthFramebufferClampDisable() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); final JCGLFramebuffersType g_fb = i.getFramebuffers(); final JCGLTexturesType g_tex = i.getTextures(); final JCGLFramebufferType fb = depthlessFramebuffer(g_fb, g_tex); Assert.assertTrue(g_fb.framebufferDrawIsBound(fb)); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthClampingDisable(); }
@Test public final void testNoDepthFramebufferClampDisable() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); final JCGLFramebuffersType g_fb = i.getFramebuffers(); final JCGLTexturesType g_tex = i.getTextures(); final JCGLFramebufferType fb = JCGLDepthBuffersContract.depthlessFramebuffer(g_fb, g_tex); Assert.assertTrue(g_fb.framebufferDrawIsBound(fb)); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthClampingDisable(); }
@Test public final void testDepthClamp() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertFalse(g_dep.depthClampingIsEnabled()); g_dep.depthClampingEnable(); Assert.assertTrue(g_dep.depthClampingIsEnabled()); g_dep.depthClampingDisable(); Assert.assertFalse(g_dep.depthClampingIsEnabled()); }
@Test public final void testDepthClamp() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertFalse(g_dep.depthClampingIsEnabled()); g_dep.depthClampingEnable(); Assert.assertTrue(g_dep.depthClampingIsEnabled()); g_dep.depthClampingDisable(); Assert.assertFalse(g_dep.depthClampingIsEnabled()); }