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.

    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;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and 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
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor and 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 and Description
      float b()
      Returns the value of the b field.
      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()
      Returns the value of the g field.
      float r()
      Returns the value of the r field.
      int sizeof() 
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • 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()
        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.