g_d.depthBufferTestEnable(d_opt.get()); break; if (g_d.depthBufferGetBits() > 0) { g_d.depthBufferTestEnable(d_opt.get()); if (g_d.depthBufferGetBits() > 0) { g_d.depthBufferTestDisable();
g_d.depthBufferWriteEnable(); break; if (g_d.depthBufferGetBits() > 0) { g_d.depthBufferWriteEnable(); if (g_d.depthBufferGetBits() > 0) { g_d.depthBufferWriteDisable();
g_d.depthClampingEnable(); break; if (g_d.depthBufferGetBits() > 0) { g_d.depthClampingEnable(); if (g_d.depthBufferGetBits() > 0) { g_d.depthClampingDisable();
@Test public final void testDepthWriteDisableRedundant() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertTrue(g_dep.depthBufferWriteIsEnabled()); g_dep.depthBufferWriteDisable(); Assert.assertFalse(g_dep.depthBufferWriteIsEnabled()); g_dep.depthBufferWriteDisable(); Assert.assertFalse(g_dep.depthBufferWriteIsEnabled()); }
@Test public final void testDepthWriteEnable() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertTrue(g_dep.depthBufferWriteIsEnabled()); g_dep.depthBufferWriteEnable(); Assert.assertTrue(g_dep.depthBufferWriteIsEnabled()); g_dep.depthBufferWriteDisable(); Assert.assertFalse(g_dep.depthBufferWriteIsEnabled()); }
@Test public final void testDepthTestWriteNonStrict() { final JCGLInterfaceGL33Type g = this.getGL33("main", 24, 8); final JCGLRenderStateMutable r = JCGLRenderStateMutable.create(); final JCGLDepthStateMutable ds = JCGLDepthStateMutable.create(); ds.setDepthStrict(JCGLDepthStrict.DEPTH_STRICT_DISABLED); ds.setDepthClamp(JCGLDepthClamping.DEPTH_CLAMP_ENABLED); ds.setDepthTest(Optional.of(JCGLDepthFunction.DEPTH_EQUAL)); ds.setDepthWrite(JCGLDepthWriting.DEPTH_WRITE_ENABLED); r.setDepthState(ds); JCGLRenderStates.activate(g, r); final JCGLDepthBuffersType g_d = g.getDepthBuffers(); Assert.assertTrue(g_d.depthBufferTestIsEnabled()); Assert.assertTrue(g_d.depthBufferWriteIsEnabled()); Assert.assertTrue(g_d.depthClampingIsEnabled()); }
@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 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(); g_v.viewportSet(area);
@Test public final void testNoDepthNoFramebufferWriteDisable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferWriteDisable(); }
@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 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 testDepthGetBitsNoFramebuffer24_8() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertEquals(24L, (long) g_dep.depthBufferGetBits()); }
@Test public final void testDepthWriteEnableRedundant() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); Assert.assertTrue(g_dep.depthBufferWriteIsEnabled()); g_dep.depthBufferWriteEnable(); Assert.assertTrue(g_dep.depthBufferWriteIsEnabled()); g_dep.depthBufferWriteEnable(); Assert.assertTrue(g_dep.depthBufferWriteIsEnabled()); }
@Test public final void testNoDepthNoFramebufferWriteEnable() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferWriteEnable(); }
@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 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 testDepthClear() { final Interfaces i = this.getInterfaces("main", 24, 8); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); g_dep.depthBufferClear(1.0f); }
@Test public final void testNoDepthNoFramebufferTestIsEnabled() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferTestIsEnabled(); }
@Test public final void testNoDepthNoFramebufferWriteIsEnabled() { final Interfaces i = this.getInterfaces("main", 0, 0); final JCGLDepthBuffersType g_dep = i.getDepthBuffers(); this.expected.expect(JCGLExceptionNoDepthBuffer.class); g_dep.depthBufferWriteIsEnabled(); }