Package org.lwjgl.assimp
Class AILight
- All Implemented Interfaces:
Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAILight(ByteBuffer container) Creates aAILightinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AILightcreate(long address) Returns a newAILightinstance for the specified memory address.static AILight.Buffercreate(long address, int capacity) Create aAILight.Bufferinstance at the specified memory.static @Nullable AILightcreateSafe(long address) static @Nullable AILight.BuffercreateSafe(long address, int capacity) floatfloatfloatfloatfloatmName()mSize()intmType()mUp()static floatnmAngleInnerCone(long struct) Unsafe version ofmAngleInnerCone().static floatnmAngleOuterCone(long struct) Unsafe version ofmAngleOuterCone().static floatnmAttenuationConstant(long struct) Unsafe version ofmAttenuationConstant().static floatnmAttenuationLinear(long struct) Unsafe version ofmAttenuationLinear().static floatnmAttenuationQuadratic(long struct) Unsafe version ofmAttenuationQuadratic().static AIColor3DnmColorAmbient(long struct) Unsafe version ofmColorAmbient().static AIColor3DnmColorDiffuse(long struct) Unsafe version ofmColorDiffuse().static AIColor3DnmColorSpecular(long struct) Unsafe version ofmColorSpecular().static AIVector3DnmDirection(long struct) Unsafe version ofmDirection().static AIStringnmName(long struct) Unsafe version ofmName().static AIVector3DnmPosition(long struct) Unsafe version ofmPosition().static AIVector2DnmSize(long struct) Unsafe version ofmSize().static intnmType(long struct) Unsafe version ofmType().static AIVector3DnmUp(long struct) Unsafe version ofmUp().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MNAME
public static final int MNAMEThe struct member offsets. -
MTYPE
public static final int MTYPEThe struct member offsets. -
MPOSITION
public static final int MPOSITIONThe struct member offsets. -
MDIRECTION
public static final int MDIRECTIONThe struct member offsets. -
MUP
public static final int MUPThe struct member offsets. -
MATTENUATIONCONSTANT
public static final int MATTENUATIONCONSTANTThe struct member offsets. -
MATTENUATIONLINEAR
public static final int MATTENUATIONLINEARThe struct member offsets. -
MATTENUATIONQUADRATIC
public static final int MATTENUATIONQUADRATICThe struct member offsets. -
MCOLORDIFFUSE
public static final int MCOLORDIFFUSEThe struct member offsets. -
MCOLORSPECULAR
public static final int MCOLORSPECULARThe struct member offsets. -
MCOLORAMBIENT
public static final int MCOLORAMBIENTThe struct member offsets. -
MANGLEINNERCONE
public static final int MANGLEINNERCONEThe struct member offsets. -
MANGLEOUTERCONE
public static final int MANGLEOUTERCONEThe struct member offsets. -
MSIZE
public static final int MSIZEThe struct member offsets.
-
-
Constructor Details
-
AILight
Creates aAILightinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
mName
- Returns:
- a
AIStringview of themNamefield.
-
mType
public int mType()- Returns:
- the value of the
mTypefield.
-
mPosition
- Returns:
- a
AIVector3Dview of themPositionfield.
-
mDirection
- Returns:
- a
AIVector3Dview of themDirectionfield.
-
mUp
- Returns:
- a
AIVector3Dview of themUpfield.
-
mAttenuationConstant
public float mAttenuationConstant()- Returns:
- the value of the
mAttenuationConstantfield.
-
mAttenuationLinear
public float mAttenuationLinear()- Returns:
- the value of the
mAttenuationLinearfield.
-
mAttenuationQuadratic
public float mAttenuationQuadratic()- Returns:
- the value of the
mAttenuationQuadraticfield.
-
mColorDiffuse
- Returns:
- a
AIColor3Dview of themColorDiffusefield.
-
mColorSpecular
- Returns:
- a
AIColor3Dview of themColorSpecularfield.
-
mColorAmbient
- Returns:
- a
AIColor3Dview of themColorAmbientfield.
-
mAngleInnerCone
public float mAngleInnerCone()- Returns:
- the value of the
mAngleInnerConefield.
-
mAngleOuterCone
public float mAngleOuterCone()- Returns:
- the value of the
mAngleOuterConefield.
-
mSize
- Returns:
- a
AIVector2Dview of themSizefield.
-
create
Returns a newAILightinstance for the specified memory address. -
createSafe
-
create
Create aAILight.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nmName
Unsafe version ofmName(). -
nmType
public static int nmType(long struct) Unsafe version ofmType(). -
nmPosition
Unsafe version ofmPosition(). -
nmDirection
Unsafe version ofmDirection(). -
nmUp
Unsafe version ofmUp(). -
nmAttenuationConstant
public static float nmAttenuationConstant(long struct) Unsafe version ofmAttenuationConstant(). -
nmAttenuationLinear
public static float nmAttenuationLinear(long struct) Unsafe version ofmAttenuationLinear(). -
nmAttenuationQuadratic
public static float nmAttenuationQuadratic(long struct) Unsafe version ofmAttenuationQuadratic(). -
nmColorDiffuse
Unsafe version ofmColorDiffuse(). -
nmColorSpecular
Unsafe version ofmColorSpecular(). -
nmColorAmbient
Unsafe version ofmColorAmbient(). -
nmAngleInnerCone
public static float nmAngleInnerCone(long struct) Unsafe version ofmAngleInnerCone(). -
nmAngleOuterCone
public static float nmAngleOuterCone(long struct) Unsafe version ofmAngleOuterCone(). -
nmSize
Unsafe version ofmSize().
-