Tabnine Logo
JCGLIndexBuffersType.indexBufferGetCurrentlyBound
Code IndexAdd Tabnine to your IDE (free)

How to use
indexBufferGetCurrentlyBound
method
in
com.io7m.jcanephora.core.api.JCGLIndexBuffersType

Best Java code snippets using com.io7m.jcanephora.core.api.JCGLIndexBuffersType.indexBufferGetCurrentlyBound (Showing top 6 results out of 315)

origin: com.io7m.jcanephora/com.io7m.jcanephora.tests

@Test
public final void testIndexBufferBindIdentity()
{
 final Interfaces i = this.getIndexBuffers("name");
 final JCGLIndexBuffersType gi = i.getIndexBuffers();
 final JCGLArrayObjectsType ga = i.getArrayObjects();
 final JCGLArrayObjectUsableType a0 = ga.arrayObjectGetDefault();
 final Set<JCGLReferableType> a0_refs = a0.references();
 final JCGLIndexBufferType i0 = gi.indexBufferAllocate(
  1000L,
  JCGLUnsignedType.TYPE_UNSIGNED_BYTE,
  JCGLUsageHint.USAGE_STATIC_DRAW);
 final Set<JCGLReferenceContainerType> i0_refs = i0.referringContainers();
 Assert.assertEquals(Optional.of(i0), gi.indexBufferGetCurrentlyBound());
 Assert.assertEquals(Optional.of(i0), a0.indexBufferBound());
 Assert.assertEquals(1L, (long) a0_refs.size());
 Assert.assertTrue(a0_refs.contains(i0));
 Assert.assertEquals(1L, (long) i0_refs.size());
 Assert.assertTrue(i0_refs.contains(a0));
 gi.indexBufferUnbind();
 Assert.assertEquals(a0, ga.arrayObjectGetCurrentlyBound());
 Assert.assertEquals(Optional.empty(), gi.indexBufferGetCurrentlyBound());
 Assert.assertEquals(Optional.empty(), a0.indexBufferBound());
 Assert.assertEquals(0L, (long) a0_refs.size());
 Assert.assertEquals(0L, (long) a0_refs.size());
 Assert.assertEquals(0L, (long) i0_refs.size());
}
origin: com.io7m.jcanephora/io7m-jcanephora-tests

Assert.assertEquals(Optional.of(i0), gi.indexBufferGetCurrentlyBound());
Assert.assertEquals(Optional.of(i0), a1.getIndexBufferBound());
Assert.assertEquals(0L, (long) a0_refs.size());
Assert.assertEquals(Optional.empty(), gi.indexBufferGetCurrentlyBound());
Assert.assertEquals(Optional.empty(), a1.getIndexBufferBound());
Assert.assertEquals(0L, (long) a0_refs.size());
origin: com.io7m.jcanephora/io7m-jcanephora-tests

Assert.assertEquals(Optional.of(ib), ai_1.getIndexBufferBound());
Assert.assertEquals(Optional.of(ib), ai_2.getIndexBufferBound());
Assert.assertEquals(Optional.of(ib), gi.indexBufferGetCurrentlyBound());
origin: com.io7m.jcanephora/com.io7m.jcanephora.tests

Assert.assertEquals(Optional.of(ib), ai_1.indexBufferBound());
Assert.assertEquals(Optional.of(ib), ai_2.indexBufferBound());
Assert.assertEquals(Optional.of(ib), gi.indexBufferGetCurrentlyBound());
origin: com.io7m.jcanephora/io7m-jcanephora-tests

Assert.assertEquals(Optional.of(i), gi.indexBufferGetCurrentlyBound());
Assert.assertEquals(Optional.of(i), ai.getIndexBufferBound());
origin: com.io7m.jcanephora/com.io7m.jcanephora.tests

Assert.assertEquals(Optional.of(i), gi.indexBufferGetCurrentlyBound());
Assert.assertEquals(Optional.of(i), ai.indexBufferBound());
com.io7m.jcanephora.core.apiJCGLIndexBuffersTypeindexBufferGetCurrentlyBound

Popular methods of JCGLIndexBuffersType

  • indexBufferAllocate
    Allocate and bind an index buffer of indices values of type type, informing the implementation that
  • indexBufferDelete
    Deletes the buffer referenced by a. Calling this method will unbind a iff it is bound.
  • indexBufferUpdate
    Perform the index buffer update u.
  • indexBufferUnbind
    Unbind the current index buffer. If no buffer is bound, this call has no effect.
  • indexBufferBind
    Bind the given index buffer.
  • indexBufferRead
  • indexBufferReallocate
    Reallocate the storage associated with the index buffer i. This is intended to facilitate streaming

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now