Class DirectNioBuffersSet

java.lang.Object
com.ardor3d.util.geom.jogl.DirectNioBuffersSet

public final class DirectNioBuffersSet extends Object
DirectNioBuffersSet is a helper class for generating reusable long-lived direct nio buffers mainly for the renderer based on JOGL and its helpers. Those buffers replace many short-lived ones that had no chance to be garbage collected when the VM runs out of memory on its native heap but only when it runs out of memory on its Java heap. This class is not thread-safe.
  • Constructor Details

    • DirectNioBuffersSet

      public DirectNioBuffersSet()
  • Method Details

    • getSingleIntBuffer

      public IntBuffer getSingleIntBuffer()
    • getDualIntBuffer

      public IntBuffer getDualIntBuffer()
    • getSingleFloatBuffer

      public FloatBuffer getSingleFloatBuffer()
    • getTransformBuffer

      public FloatBuffer getTransformBuffer()
    • getFboColorAttachmentBuffer

      public IntBuffer getFboColorAttachmentBuffer()
    • getInfoLogBuffer

      public ByteBuffer getInfoLogBuffer()
    • getTextureIdsBuffer

      public IntBuffer getTextureIdsBuffer()
    • getVboIdsBuffer

      public IntBuffer getVboIdsBuffer()