Class J3DBuffer

    • Constructor Summary

      Constructors 
      Constructor Description
      J3DBuffer()
      Constructs a J3DBuffer object and initializes it with a null NIO buffer object.
      J3DBuffer​(java.nio.Buffer buffer)
      Constructs a J3DBuffer object and initializes it with the specified NIO buffer object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.Buffer getBuffer()
      Retrieves the NIO buffer object from this J3DBuffer.
      void setBuffer​(java.nio.Buffer buffer)
      Sets the NIO buffer object in this J3DBuffer to the specified object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • J3DBuffer

        public J3DBuffer()
        Constructs a J3DBuffer object and initializes it with a null NIO buffer object. The NIO buffer object must be set to a non-null value before using this J3DBuffer object in a Java 3D node component.
        Throws:
        java.lang.UnsupportedOperationException - if the JVM does not support native access to direct NIO buffers
      • J3DBuffer

        public J3DBuffer​(java.nio.Buffer buffer)
        Constructs a J3DBuffer object and initializes it with the specified NIO buffer object.
        Parameters:
        buffer - the NIO buffer wrapped by this J3DBuffer
        Throws:
        java.lang.UnsupportedOperationException - if the JVM does not support native access to direct NIO buffers
        java.lang.IllegalArgumentException - if the specified buffer is not a direct buffer, or if the byte order of the specified buffer does not match the native byte order of the underlying platform.
    • Method Detail

      • setBuffer

        public void setBuffer​(java.nio.Buffer buffer)
        Sets the NIO buffer object in this J3DBuffer to the specified object.
        Parameters:
        buffer - the NIO buffer wrapped by this J3DBuffer
        Throws:
        java.lang.IllegalArgumentException - if the specified buffer is not a direct buffer, or if the byte order of the specified buffer does not match the native byte order of the underlying platform.
      • getBuffer

        public java.nio.Buffer getBuffer()
        Retrieves the NIO buffer object from this J3DBuffer.
        Returns:
        the current NIO buffer wrapped by this J3DBuffer