@Test public final void testFloatingArrayAlreadyAssigned() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); b.setStrictChecking(true); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); this.expected.expect(JCGLExceptionAttributeAlreadyAssigned.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }
@Test public final void testIntegralArrayAlreadyAssigned() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); b.setStrictChecking(true); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 0L); this.expected.expect(JCGLExceptionAttributeAlreadyAssigned.class); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 0L); Assert.fail(); }
@Test public final void testFloatingArrayAlreadyAssigned() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); b.setStrictChecking(true); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); this.expected.expect(JCGLExceptionAttributeAlreadyAssigned.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }
@Test public final void testIntegralArrayAlreadyAssigned() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); b.setStrictChecking(true); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 0L); this.expected.expect(JCGLExceptionAttributeAlreadyAssigned.class); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 0L); Assert.fail(); }