@Test public final void testNoDepthNoFramebufferTestDisable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferTestDisable(); }
@Test public final void testNoDepthNoFramebufferTestDisable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferTestDisable(); }
@Test public final void testNoDepthFramebufferTestDisable() { 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.depthBufferTestDisable(); }
@Test public final void testNoDepthFramebufferTestDisable() { 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.depthBufferTestDisable(); }
@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()); }
g_db.depthClampingEnable(); g_db.depthBufferWriteDisable(); g_db.depthBufferTestDisable(); g_v.viewportSet(area);