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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
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
ConstructorsConstructorDescriptionAILight
(ByteBuffer container) Creates aAILight
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AILight
create
(long address) Returns a newAILight
instance for the specified memory address.static AILight.Buffer
create
(long address, int capacity) Create aAILight.Buffer
instance at the specified memory.static @Nullable AILight
createSafe
(long address) static @Nullable AILight.Buffer
createSafe
(long address, int capacity) float
float
float
float
float
mName()
mSize()
int
mType()
mUp()
static float
nmAngleInnerCone
(long struct) Unsafe version ofmAngleInnerCone()
.static float
nmAngleOuterCone
(long struct) Unsafe version ofmAngleOuterCone()
.static float
nmAttenuationConstant
(long struct) Unsafe version ofmAttenuationConstant()
.static float
nmAttenuationLinear
(long struct) Unsafe version ofmAttenuationLinear()
.static float
nmAttenuationQuadratic
(long struct) Unsafe version ofmAttenuationQuadratic()
.static AIColor3D
nmColorAmbient
(long struct) Unsafe version ofmColorAmbient()
.static AIColor3D
nmColorDiffuse
(long struct) Unsafe version ofmColorDiffuse()
.static AIColor3D
nmColorSpecular
(long struct) Unsafe version ofmColorSpecular()
.static AIVector3D
nmDirection
(long struct) Unsafe version ofmDirection()
.static AIString
nmName
(long struct) Unsafe version ofmName()
.static AIVector3D
nmPosition
(long struct) Unsafe version ofmPosition()
.static AIVector2D
nmSize
(long struct) Unsafe version ofmSize()
.static int
nmType
(long struct) Unsafe version ofmType()
.static AIVector3D
nmUp
(long struct) Unsafe version ofmUp()
.int
sizeof()
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 aAILight
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
. -
mName
- Returns:
- a
AIString
view of themName
field.
-
mType
public int mType()- Returns:
- the value of the
mType
field.
-
mPosition
- Returns:
- a
AIVector3D
view of themPosition
field.
-
mDirection
- Returns:
- a
AIVector3D
view of themDirection
field.
-
mUp
- Returns:
- a
AIVector3D
view of themUp
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
- Returns:
- a
AIColor3D
view of themColorDiffuse
field.
-
mColorSpecular
- Returns:
- a
AIColor3D
view of themColorSpecular
field.
-
mColorAmbient
- Returns:
- a
AIColor3D
view of themColorAmbient
field.
-
mAngleInnerCone
public float mAngleInnerCone()- Returns:
- the value of the
mAngleInnerCone
field.
-
mAngleOuterCone
public float mAngleOuterCone()- Returns:
- the value of the
mAngleOuterCone
field.
-
mSize
- Returns:
- a
AIVector2D
view of themSize
field.
-
create
Returns a newAILight
instance for the specified memory address. -
createSafe
-
create
Create aAILight.Buffer
instance 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()
.
-