@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Override public boolean isDeleted() { return this.framebuffer.isDeleted(); }
@Test public final void testFramebufferDeleteIdentitiesDraw() { final Interfaces i = this.getInterfaces("main"); final JCGLFramebuffersType g_fb = i.getFramebuffers(); final JCGLTexturesType g_tx = i.getTextures(); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); final List<JCGLTextureUnitType> us = g_tx.textureGetUnits(); final JCGLTextureUnitType u0 = us.get(0); final JCGLTexture2DType t = g_tx.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_DEPTH_16_2BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tx.textureUnitUnbind(u0); fbb.attachDepthTexture2D(t); final JCGLFramebufferType fb = g_fb.framebufferAllocate(fbb); Assert.assertEquals(Optional.of(fb), g_fb.framebufferDrawGetBound()); Assert.assertTrue(g_fb.framebufferDrawAnyIsBound()); Assert.assertTrue(g_fb.framebufferDrawIsBound(fb)); g_fb.framebufferDelete(fb); Assert.assertTrue(fb.isDeleted()); Assert.assertFalse(g_fb.framebufferDrawAnyIsBound()); }
@Test public final void testFramebufferDeleteIdentitiesDraw() { final Interfaces i = this.getInterfaces("main"); final JCGLFramebuffersType g_fb = i.getFramebuffers(); final JCGLTexturesType g_tx = i.getTextures(); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); final List<JCGLTextureUnitType> us = g_tx.textureGetUnits(); final JCGLTextureUnitType u0 = us.get(0); final JCGLTexture2DType t = g_tx.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_DEPTH_16_2BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tx.textureUnitUnbind(u0); fbb.attachDepthTexture2D(t); final JCGLFramebufferType fb = g_fb.framebufferAllocate(fbb); Assert.assertEquals(Optional.of(fb), g_fb.framebufferDrawGetBound()); Assert.assertTrue(g_fb.framebufferDrawAnyIsBound()); Assert.assertTrue(g_fb.framebufferDrawIsBound(fb)); g_fb.framebufferDelete(fb); Assert.assertTrue(fb.isDeleted()); Assert.assertFalse(g_fb.framebufferDrawAnyIsBound()); }
@Test public final void testFramebufferDeleteIdentitiesRead() { final Interfaces i = this.getInterfaces("main"); final JCGLFramebuffersType g_fb = i.getFramebuffers(); final JCGLTexturesType g_tx = i.getTextures(); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); final List<JCGLTextureUnitType> us = g_tx.textureGetUnits(); final JCGLTextureUnitType u0 = us.get(0); final JCGLTexture2DType t = g_tx.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_DEPTH_16_2BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tx.textureUnitUnbind(u0); fbb.attachDepthTexture2D(t); final JCGLFramebufferType fb = g_fb.framebufferAllocate(fbb); g_fb.framebufferDrawUnbind(); g_fb.framebufferReadBind(fb); Assert.assertEquals(Optional.of(fb), g_fb.framebufferReadGetBound()); Assert.assertTrue(g_fb.framebufferReadAnyIsBound()); Assert.assertTrue(g_fb.framebufferReadIsBound(fb)); g_fb.framebufferDelete(fb); Assert.assertTrue(fb.isDeleted()); Assert.assertFalse(g_fb.framebufferReadAnyIsBound()); }
@Test public final void testFramebufferDeleteIdentitiesRead() { final Interfaces i = this.getInterfaces("main"); final JCGLFramebuffersType g_fb = i.getFramebuffers(); final JCGLTexturesType g_tx = i.getTextures(); final JCGLFramebufferBuilderType fbb = g_fb.framebufferNewBuilder(); final List<JCGLTextureUnitType> us = g_tx.textureGetUnits(); final JCGLTextureUnitType u0 = us.get(0); final JCGLTexture2DType t = g_tx.texture2DAllocate( u0, 64L, 64L, JCGLTextureFormat.TEXTURE_FORMAT_DEPTH_16_2BPP, JCGLTextureWrapS.TEXTURE_WRAP_REPEAT, JCGLTextureWrapT.TEXTURE_WRAP_REPEAT, JCGLTextureFilterMinification.TEXTURE_FILTER_NEAREST, JCGLTextureFilterMagnification.TEXTURE_FILTER_NEAREST); g_tx.textureUnitUnbind(u0); fbb.attachDepthTexture2D(t); final JCGLFramebufferType fb = g_fb.framebufferAllocate(fbb); g_fb.framebufferDrawUnbind(); g_fb.framebufferReadBind(fb); Assert.assertEquals(Optional.of(fb), g_fb.framebufferReadGetBound()); Assert.assertTrue(g_fb.framebufferReadAnyIsBound()); Assert.assertTrue(g_fb.framebufferReadIsBound(fb)); g_fb.framebufferDelete(fb); Assert.assertTrue(fb.isDeleted()); Assert.assertFalse(g_fb.framebufferReadAnyIsBound()); }