g_d.depthBufferTestEnable(d_opt.get()); break; g_d.depthBufferTestEnable(d_opt.get());
@Test public final void testNoDepthNoFramebufferTestEnable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferTestEnable(JCGLDepthFunction.DEPTH_EQUAL); }
@Test public final void testNoDepthNoFramebufferTestEnable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferTestEnable(JCGLDepthFunction.DEPTH_EQUAL); }
@Test public final void testNoDepthFramebufferTestEnable() { 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.depthBufferTestEnable(JCGLDepthFunction.DEPTH_EQUAL); }
@Test public final void testNoDepthFramebufferTestEnable() { 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.depthBufferTestEnable(JCGLDepthFunction.DEPTH_EQUAL); }
@Test public final void testDepthTestEnable() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertFalse(g_dep.depthBufferTestIsEnabled()); g_dep.depthBufferTestEnable(JCGLDepthFunction.DEPTH_EQUAL); Assert.assertTrue(g_dep.depthBufferTestIsEnabled()); g_dep.depthBufferTestDisable(); Assert.assertFalse(g_dep.depthBufferTestIsEnabled()); }
@Test public final void testDepthTestEnable() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertFalse(g_dep.depthBufferTestIsEnabled()); g_dep.depthBufferTestEnable(JCGLDepthFunction.DEPTH_EQUAL); Assert.assertTrue(g_dep.depthBufferTestIsEnabled()); g_dep.depthBufferTestDisable(); Assert.assertFalse(g_dep.depthBufferTestIsEnabled()); }