@Test public final void testNoDepthNoFramebufferClampEnable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthClampingEnable(); }
@Test public final void testNoDepthNoFramebufferClampEnable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthClampingEnable(); }
g_d.depthClampingEnable(); break; g_d.depthClampingEnable();
@Test public final void testNoDepthFramebufferClampEnable() { 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.depthClampingEnable(); }
@Test public final void testNoDepthFramebufferClampEnable() { 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.depthClampingEnable(); }
@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()); }
JCGLFaceSelection.FACE_BACK, JCGLFaceWindingOrder.FRONT_FACE_COUNTER_CLOCKWISE); g_db.depthClampingEnable(); g_db.depthBufferWriteDisable(); g_db.depthBufferTestDisable();