Class AIColor3D

  • All Implemented Interfaces:
    Pointer

    public class AIColor3D
    extends Struct
    Represents a color in Red-Green-Blue space.

    Member documentation

    • r – The red color value
    • g – The green color value
    • b – The blue color value

    Layout

    
     struct aiColor3D {
         float r;
         float g;
         float b;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • R, G, B

        The struct member offsets.
    • Constructor Detail

      • AIColor3D

        public AIColor3D​(java.nio.ByteBuffer container)
        Creates a AIColor3D instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • r

        public float r()
        Returns the value of the r field.
      • g

        public float g()
        Returns the value of the g field.
      • b

        public float b()
        Returns the value of the b field.
      • create

        public static AIColor3D create​(long address)
        Returns a new AIColor3D instance for the specified memory address.
      • createSafe

        @Nullable
        public static AIColor3D createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static AIColor3D.Buffer create​(long address,
                                              int capacity)
        Create a AIColor3D.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static AIColor3D.Buffer createSafe​(long address,
                                                  int capacity)
        Like create, but returns null if address is NULL.
      • nr

        public static float nr​(long struct)
        Unsafe version of r().
      • ng

        public static float ng​(long struct)
        Unsafe version of g().
      • nb

        public static float nb​(long struct)
        Unsafe version of b().