FakeTextureUnit( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Index", Ranges.NATURAL_INTEGER, "Valid indices"); }
FakeFramebufferColorAttachmentPoint( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Attachment point", Ranges.NATURAL_INTEGER, "Valid attachment points"); }
LWJGL3FramebufferDrawBuffer( final LWJGL3Context in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Draw buffer", Ranges.NATURAL_INTEGER, "Valid draw buffers"); }
LWJGL3FramebufferColorAttachmentPoint( final LWJGL3Context in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Attachment point", Ranges.NATURAL_INTEGER, "Valid attachment points"); }
FakeTextureUnit( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Index", Ranges.NATURAL_INTEGER, "Valid indices"); }
FakeFramebufferDrawBuffer( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Draw buffer", Ranges.NATURAL_INTEGER, "Valid draw buffers"); }
LWJGL3FramebufferDrawBuffer( final LWJGL3Context in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Draw buffer", Ranges.NATURAL_INTEGER, "Valid draw buffers"); }
FakeFramebufferDrawBuffer( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Draw buffer", Ranges.NATURAL_INTEGER, "Valid draw buffers"); }
FakeFramebufferColorAttachmentPoint( final FakeContext in_context, final int in_index) { super(in_context); this.index = RangeCheck.checkIncludedInInteger( in_index, "Attachment point", Ranges.NATURAL_INTEGER, "Valid attachment points"); }
@Override public Optional<JCGLArrayVertexAttributeType> getAttributeAt( final int index) { RangeCheck.checkIncludedInInteger( index, "Attribute index_buffer", FakeArrayObjects.this.valid_attribs, "Valid attribute indices"); return Optional.ofNullable(this.attribs[index]); }
@Override public Optional<JCGLArrayVertexAttributeType> getAttributeAt( final int index) { RangeCheck.checkIncludedInInteger( index, "Attribute index_buffer", FakeArrayObjects.this.valid_attribs, "Valid attribute indices"); return Optional.ofNullable(this.attribs[index]); }
protected FakeObjectShared( final FakeContext in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
protected LWJGL3ObjectUnshared( final LWJGL3Context in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
protected LWJGL3ObjectUnshared( final LWJGL3Context in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
protected LWJGL3ObjectShared( final LWJGL3Context in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
protected FakeObjectUnshared( final FakeContext in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
protected LWJGL3ObjectShared( final LWJGL3Context in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
protected FakeObjectShared( final FakeContext in_context, final int in_id) { this.context = NullCheck.notNull(in_context, "Context"); this.id = RangeCheck.checkIncludedInInteger( in_id, "Identifier", Ranges.POSITIVE_INTEGER, "Valid OpenGL identifiers"); }
@Override public void draw( final JCGLPrimitives p, final int first, final int count) throws JCGLException { NullCheck.notNull(p, "Primitives"); RangeCheck.checkIncludedInInteger( first, "First", Ranges.NATURAL_INTEGER, "Valid index"); RangeCheck.checkIncludedInInteger( count, "Count", Ranges.NATURAL_INTEGER, "Valid counts"); GL11.glDrawArrays(LWJGL3TypeConversions.primitiveToGL(p), first, count); }
@Override public void draw( final JCGLPrimitives p, final int first, final int count) throws JCGLException { NullCheck.notNull(p); RangeCheck.checkIncludedInInteger( first, "First", Ranges.NATURAL_INTEGER, "Valid index"); RangeCheck.checkIncludedInInteger( count, "Count", Ranges.NATURAL_INTEGER, "Valid counts"); GL11.glDrawArrays(LWJGL3TypeConversions.primitiveToGL(p), first, count); }