Class AILight

All Implemented Interfaces:
Pointer

public class AILight extends Struct<AILight>

 struct aiLight {
     {@link AIString struct aiString} mName;
     aiLightSourceType mType;
     {@link AIVector3D struct aiVector3D} mPosition;
     {@link AIVector3D struct aiVector3D} mDirection;
     {@link AIVector3D struct aiVector3D} mUp;
     float mAttenuationConstant;
     float mAttenuationLinear;
     float mAttenuationQuadratic;
     {@link AIColor3D struct aiColor3D} mColorDiffuse;
     {@link AIColor3D struct aiColor3D} mColorSpecular;
     {@link AIColor3D struct aiColor3D} mColorAmbient;
     float mAngleInnerCone;
     float mAngleOuterCone;
     {@link AIVector2D struct aiVector2D} mSize;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MNAME

      public static final int MNAME
      The struct member offsets.
    • MTYPE

      public static final int MTYPE
      The struct member offsets.
    • MPOSITION

      public static final int MPOSITION
      The struct member offsets.
    • MDIRECTION

      public static final int MDIRECTION
      The struct member offsets.
    • MUP

      public static final int MUP
      The struct member offsets.
    • MATTENUATIONCONSTANT

      public static final int MATTENUATIONCONSTANT
      The struct member offsets.
    • MATTENUATIONLINEAR

      public static final int MATTENUATIONLINEAR
      The struct member offsets.
    • MATTENUATIONQUADRATIC

      public static final int MATTENUATIONQUADRATIC
      The struct member offsets.
    • MCOLORDIFFUSE

      public static final int MCOLORDIFFUSE
      The struct member offsets.
    • MCOLORSPECULAR

      public static final int MCOLORSPECULAR
      The struct member offsets.
    • MCOLORAMBIENT

      public static final int MCOLORAMBIENT
      The struct member offsets.
    • MANGLEINNERCONE

      public static final int MANGLEINNERCONE
      The struct member offsets.
    • MANGLEOUTERCONE

      public static final int MANGLEOUTERCONE
      The struct member offsets.
    • MSIZE

      public static final int MSIZE
      The struct member offsets.
  • Constructor Details

    • AILight

      public AILight(ByteBuffer container)
      Creates a AILight 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<AILight>
    • mName

      public AIString mName()
      Returns:
      a AIString view of the mName field.
    • mType

      public int mType()
      Returns:
      the value of the mType field.
    • mPosition

      public AIVector3D mPosition()
      Returns:
      a AIVector3D view of the mPosition field.
    • mDirection

      public AIVector3D mDirection()
      Returns:
      a AIVector3D view of the mDirection field.
    • mUp

      public AIVector3D mUp()
      Returns:
      a AIVector3D view of the mUp field.
    • mAttenuationConstant

      public float mAttenuationConstant()
      Returns:
      the value of the mAttenuationConstant field.
    • mAttenuationLinear

      public float mAttenuationLinear()
      Returns:
      the value of the mAttenuationLinear field.
    • mAttenuationQuadratic

      public float mAttenuationQuadratic()
      Returns:
      the value of the mAttenuationQuadratic field.
    • mColorDiffuse

      public AIColor3D mColorDiffuse()
      Returns:
      a AIColor3D view of the mColorDiffuse field.
    • mColorSpecular

      public AIColor3D mColorSpecular()
      Returns:
      a AIColor3D view of the mColorSpecular field.
    • mColorAmbient

      public AIColor3D mColorAmbient()
      Returns:
      a AIColor3D view of the mColorAmbient field.
    • mAngleInnerCone

      public float mAngleInnerCone()
      Returns:
      the value of the mAngleInnerCone field.
    • mAngleOuterCone

      public float mAngleOuterCone()
      Returns:
      the value of the mAngleOuterCone field.
    • mSize

      public AIVector2D mSize()
      Returns:
      a AIVector2D view of the mSize field.
    • create

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

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

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

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

      public static AIString nmName(long struct)
      Unsafe version of mName().
    • nmType

      public static int nmType(long struct)
      Unsafe version of mType().
    • nmPosition

      public static AIVector3D nmPosition(long struct)
      Unsafe version of mPosition().
    • nmDirection

      public static AIVector3D nmDirection(long struct)
      Unsafe version of mDirection().
    • nmUp

      public static AIVector3D nmUp(long struct)
      Unsafe version of mUp().
    • nmAttenuationConstant

      public static float nmAttenuationConstant(long struct)
      Unsafe version of mAttenuationConstant().
    • nmAttenuationLinear

      public static float nmAttenuationLinear(long struct)
      Unsafe version of mAttenuationLinear().
    • nmAttenuationQuadratic

      public static float nmAttenuationQuadratic(long struct)
      Unsafe version of mAttenuationQuadratic().
    • nmColorDiffuse

      public static AIColor3D nmColorDiffuse(long struct)
      Unsafe version of mColorDiffuse().
    • nmColorSpecular

      public static AIColor3D nmColorSpecular(long struct)
      Unsafe version of mColorSpecular().
    • nmColorAmbient

      public static AIColor3D nmColorAmbient(long struct)
      Unsafe version of mColorAmbient().
    • nmAngleInnerCone

      public static float nmAngleInnerCone(long struct)
      Unsafe version of mAngleInnerCone().
    • nmAngleOuterCone

      public static float nmAngleOuterCone(long struct)
      Unsafe version of mAngleOuterCone().
    • nmSize

      public static AIVector2D nmSize(long struct)
      Unsafe version of mSize().