@Test public final void testLoadIntegerSigned16_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_SHORT; final int component_count = 3; final int vertex_count = 3; final String name = "integer16_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerUnsigned8_4() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_UNSIGNED_BYTE; final int component_count = 4; final int vertex_count = 3; final String name = "unsigned8_4.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerUnsigned16_2() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_UNSIGNED_SHORT; final int component_count = 2; final int vertex_count = 3; final String name = "unsigned16_2.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerUnsigned32_1() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_UNSIGNED_INT; final int component_count = 1; final int vertex_count = 3; final String name = "unsigned32_1.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerSigned8_1() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_BYTE; final int component_count = 1; final int vertex_count = 3; final String name = "integer8_1.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerSigned32_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_INT; final int component_count = 3; final int vertex_count = 3; final String name = "integer32_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerUnsigned8_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_UNSIGNED_BYTE; final int component_count = 3; final int vertex_count = 3; final String name = "unsigned8_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerUnsigned32_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_UNSIGNED_INT; final int component_count = 3; final int vertex_count = 3; final String name = "unsigned32_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadFloat32_2() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_FLOAT; final int component_count = 2; final int vertex_count = 3; final String name = "float32_2.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadFloat32_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_FLOAT; final int component_count = 3; final int vertex_count = 3; final String name = "float32_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadFloat32_4() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_FLOAT; final int component_count = 4; final int vertex_count = 3; final String name = "float32_4.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadFloat16_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_HALF_FLOAT; final int component_count = 3; final int vertex_count = 3; final String name = "float16_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadFloat16_4() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_HALF_FLOAT; final int component_count = 4; final int vertex_count = 3; final String name = "float16_4.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerSigned8_3() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_BYTE; final int component_count = 3; final int vertex_count = 3; final String name = "integer8_3.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerSigned16_2() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_SHORT; final int component_count = 2; final int vertex_count = 3; final String name = "integer16_2.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerSigned32_2() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_INT; final int component_count = 2; final int vertex_count = 3; final String name = "integer32_2.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerSigned32_4() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_INT; final int component_count = 4; final int vertex_count = 3; final String name = "integer32_4.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testLoadIntegerUnsigned16_4() throws Exception { final JCGLContextType c = this.newContext("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); final JCGLScalarType type = JCGLScalarType.TYPE_UNSIGNED_SHORT; final int component_count = 4; final int vertex_count = 3; final String name = "unsigned16_4.smft"; this.check(g, type, component_count, vertex_count, name); }
@Test public final void testContextDestroyedGetGL33() { final JCGLContextType c0 = this.newContext("main"); Assert.assertTrue(c0.contextIsCurrent()); c0.contextReleaseCurrent(); c0.contextDestroy(); this.expected.expect(JCGLExceptionDeleted.class); c0.contextGetGL33(); }
@Test public final void testCreateDelete() { final JCGLContextType c = this.newGL33Context("main", 24, 8); final JCGLInterfaceGL33Type g = c.contextGetGL33(); R2MainContract.LOG.debug("creating"); final R2MainType m = this.newMain(g); Assert.assertFalse(m.isDeleted()); R2MainContract.LOG.debug("deleting"); m.delete(g); Assert.assertTrue(m.isDeleted()); }