Class AIColor3D

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

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

    Layout

    
     struct aiColor3D {
         float r();
         float g();
         float b();
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AIColor3D.Buffer
      An array of AIColor3D structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
      • Nested classes/interfaces inherited from class org.lwjgl.system.Struct

        org.lwjgl.system.Struct.StructValidation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int B
      G
      R
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      AIColor3D​(java.nio.ByteBuffer container)
      Creates a AIColor3D instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float b()
      The blue color value
      static AIColor3D create​(long address)
      Returns a new AIColor3D instance for the specified memory address.
      static AIColor3D.Buffer create​(long address, int capacity)
      Create a AIColor3D.Buffer instance at the specified memory.
      static AIColor3D createSafe​(long address)
      Like create, but returns null if address is NULL.
      static AIColor3D.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      float g()
      The green color value
      static float nb​(long struct)
      Unsafe version of b().
      static float ng​(long struct)
      Unsafe version of g().
      static float nr​(long struct)
      Unsafe version of r().
      float r()
      The red color value
      int sizeof()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull, validate
    • 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • r

        public float r()
        The red color value
      • g

        public float g()
        The green color value
      • b

        public float b()
        The blue color value
      • 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().