@Test public final void testDrawBadCount() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.draw(JCGLPrimitives.PRIMITIVE_TRIANGLES, 0, -1); }
@Test public final void testDrawBadFirst() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.draw(JCGLPrimitives.PRIMITIVE_TRIANGLES, -1, 1); }
@Override public <M> void onInstanceBillboarded( final R2MaterialOpaqueBillboardedType<M> material, final R2InstanceBillboardedType i) { this.shader_billboarded.onValidate(); this.array_objects.arrayObjectBind(i.arrayObject()); this.draw.draw(JCGLPrimitives.PRIMITIVE_POINTS, 0, i.enabledCount()); }
@Test public final void testDrawBadFirst() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.draw(JCGLPrimitives.PRIMITIVE_TRIANGLES, -1, 1); }
@Test public final void testDrawBadCount() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.draw(JCGLPrimitives.PRIMITIVE_TRIANGLES, 0, -1); }
@Override public <M> void onInstanceBillboarded( final R2MaterialOpaqueBillboardedType<M> material, final R2InstanceBillboardedType i) { final R2ShaderInstanceBillboardedUsableType<M> s = material.shader(); s.onValidate(); this.array_objects.arrayObjectBind(i.arrayObject()); this.draw.draw(JCGLPrimitives.PRIMITIVE_POINTS, 0, i.enabledCount()); }
try { g_ao.arrayObjectBind(ao); g_d.draw(JCGLPrimitives.PRIMITIVE_LINES, 0, segments.size() * 2); } finally { g_ao.arrayObjectUnbind();
shader.onValidate(); g_ao.arrayObjectBind(b.instance().arrayObject()); g_dr.draw( JCGLPrimitives.PRIMITIVE_POINTS, 0, b.instance().enabledCount()); } finally {
g.getDraw().draw(JCGLPrimitives.PRIMITIVE_LINES, 0, 6); }};