def test_solid(self): a = primitives.square_solid(primitives.SquareFlags.TEXTURE_COORDINATES) self.assertEqual(a.primitive, MeshPrimitive.TRIANGLE_STRIP) self.assertFalse(a.is_indexed) self.assertEqual(a.attribute_count, 2) b = primitives.square_solid() self.assertEqual(b.primitive, MeshPrimitive.TRIANGLE_STRIP) self.assertFalse(b.is_indexed) self.assertEqual(b.attribute_count, 1)
def test_solid(self): a = primitives.square_solid(primitives.SquareTextureCoords.GENERATE) self.assertEqual(a.primitive, MeshPrimitive.TRIANGLE_STRIP) self.assertFalse(a.is_indexed()) self.assertTrue(a.has_texture_coords2d()) b = primitives.square_solid() self.assertEqual(b.primitive, MeshPrimitive.TRIANGLE_STRIP) self.assertFalse(b.is_indexed()) self.assertFalse(b.has_texture_coords2d())