@Override public boolean isDeleted() { return this.matrix_vao.isDeleted(); } }
@Override public boolean isDeleted() { return this.data_vao.isDeleted(); }
@Test public final void testArrayDeleteIdentity() { final Interfaces i = this.getInterfaces("main"); final JCGLArrayBuffersType ga = i.getArrayBuffers(); final JCGLArrayObjectsType go = i.getArrayObjects(); final JCGLArrayBufferType a = ga.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); final JCGLArrayObjectType ai = go.arrayObjectAllocate(b); go.arrayObjectDelete(ai); Assert.assertTrue(ai.isDeleted()); final Set<JCGLReferableType> ai_refs = ai.references(); Assert.assertEquals(0L, (long) ai_refs.size()); final Set<JCGLReferenceContainerType> a_refs = a.referringContainers(); Assert.assertEquals(0L, (long) a_refs.size()); }
@Test public final void testArrayDeleteIdentity() { final Interfaces i = this.getInterfaces("main"); final JCGLArrayBuffersType ga = i.getArrayBuffers(); final JCGLArrayObjectsType go = i.getArrayObjects(); final JCGLArrayBufferType a = ga.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); final JCGLArrayObjectType ai = go.arrayObjectAllocate(b); go.arrayObjectDelete(ai); Assert.assertTrue(ai.isDeleted()); final Set<JCGLReferableType> ai_refs = ai.getReferences(); Assert.assertEquals(0L, (long) ai_refs.size()); final Set<JCGLReferenceContainerType> a_refs = a.getReferringContainers(); Assert.assertEquals(0L, (long) a_refs.size()); }
Assert.assertFalse(ai.isDeleted()); Assert.assertEquals( (long) b.getMaximumVertexAttributes(),
Assert.assertFalse(ai.isDeleted()); Assert.assertEquals( (long) b.getMaximumVertexAttributes(),