Package org.lwjgl.assimp
Class AIScene
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiScene {
unsigned int mFlags;
struct aiNode * mRootNode;
unsigned int mNumMeshes;
struct aiMesh ** mMeshes;
unsigned int mNumMaterials;
struct aiMaterial ** mMaterials;
unsigned int mNumAnimations;
struct aiAnimation ** mAnimations;
unsigned int mNumTextures;
struct aiTexture ** mTextures;
unsigned int mNumLights;
struct aiLight ** mLights;
unsigned int mNumCameras;
struct aiCamera ** mCameras;
struct aiMetadata * mMetaData;
struct aiString mName;
unsigned int mNumSkeletons;
struct aiSkeleton ** mSkeletons;
char * mPrivate;
}-
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 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
ConstructorsConstructorDescriptionAIScene(ByteBuffer container) Creates aAISceneinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIScenecalloc()Returns a newAISceneinstance allocated withmemCalloc.static AIScene.Buffercalloc(int capacity) Returns a newAIScene.Bufferinstance allocated withmemCalloc.static AIScene.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIScene.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIScenecalloc(MemoryStack stack) Returns a newAISceneinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIScenecreate()Returns a newAISceneinstance allocated withBufferUtils.static AIScene.Buffercreate(int capacity) Returns a newAIScene.Bufferinstance allocated withBufferUtils.static AIScenecreate(long address) Returns a newAISceneinstance for the specified memory address.static AIScene.Buffercreate(long address, int capacity) Create aAIScene.Bufferinstance at the specified memory.static @Nullable AIScenecreateSafe(long address) static @Nullable AIScene.BuffercreateSafe(long address, int capacity) static AIScenemalloc()Returns a newAISceneinstance allocated withmemAlloc.static AIScene.Buffermalloc(int capacity) Returns a newAIScene.Bufferinstance allocated withmemAlloc.static AIScene.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIScene.Bufferinstance allocated on the specifiedMemoryStack.static AIScenemalloc(MemoryStack stack) Returns a newAISceneinstance allocated on the specifiedMemoryStack.@Nullable PointerBuffermAnimations(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themAnimationsfield.@Nullable PointerBuffermCameras()mCameras(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themCamerasfield.intmFlags()mFlags(int value) Sets the specified value to themFlagsfield.@Nullable PointerBuffermLights()mLights(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themLightsfield.@Nullable PointerBuffermMaterials(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themMaterialsfield.@Nullable PointerBuffermMeshes()mMeshes(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themMeshesfield.@Nullable AIMetaDatamMetaData(@Nullable AIMetaData value) Sets the address of the specifiedAIMetaDatato themMetaDatafield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.intintintintintintint@Nullable AINodeSets the address of the specifiedAINodeto themRootNodefield.@Nullable PointerBuffermSkeletons(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themSkeletonsfield.@Nullable PointerBuffermTextures(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themTexturesfield.static @Nullable PointerBuffernmAnimations(long struct) Unsafe version ofmAnimations.static voidnmAnimations(long struct, @Nullable PointerBuffer value) Unsafe version ofmAnimations.static @Nullable PointerBuffernmCameras(long struct) Unsafe version ofmCameras.static voidnmCameras(long struct, @Nullable PointerBuffer value) Unsafe version ofmCameras.static intnmFlags(long struct) Unsafe version ofmFlags().static voidnmFlags(long struct, int value) Unsafe version ofmFlags.static @Nullable PointerBuffernmLights(long struct) Unsafe version ofmLights.static voidnmLights(long struct, @Nullable PointerBuffer value) Unsafe version ofmLights.static @Nullable PointerBuffernmMaterials(long struct) Unsafe version ofmMaterials.static voidnmMaterials(long struct, @Nullable PointerBuffer value) Unsafe version ofmMaterials.static @Nullable PointerBuffernmMeshes(long struct) Unsafe version ofmMeshes.static voidnmMeshes(long struct, @Nullable PointerBuffer value) Unsafe version ofmMeshes.static @Nullable AIMetaDatanmMetaData(long struct) Unsafe version ofmMetaData().static voidnmMetaData(long struct, @Nullable AIMetaData value) Unsafe version ofmMetaData.static AIStringnmName(long struct) Unsafe version ofmName().static voidUnsafe version ofmName.static intnmNumAnimations(long struct) Unsafe version ofmNumAnimations().static voidnmNumAnimations(long struct, int value) Sets the specified value to themNumAnimationsfield of the specifiedstruct.static intnmNumCameras(long struct) Unsafe version ofmNumCameras().static voidnmNumCameras(long struct, int value) Sets the specified value to themNumCamerasfield of the specifiedstruct.static intnmNumLights(long struct) Unsafe version ofmNumLights().static voidnmNumLights(long struct, int value) Sets the specified value to themNumLightsfield of the specifiedstruct.static intnmNumMaterials(long struct) Unsafe version ofmNumMaterials().static voidnmNumMaterials(long struct, int value) Sets the specified value to themNumMaterialsfield of the specifiedstruct.static intnmNumMeshes(long struct) Unsafe version ofmNumMeshes().static voidnmNumMeshes(long struct, int value) Sets the specified value to themNumMeshesfield of the specifiedstruct.static intnmNumSkeletons(long struct) Unsafe version ofmNumSkeletons().static voidnmNumSkeletons(long struct, int value) Sets the specified value to themNumSkeletonsfield of the specifiedstruct.static intnmNumTextures(long struct) Unsafe version ofmNumTextures().static voidnmNumTextures(long struct, int value) Sets the specified value to themNumTexturesfield of the specifiedstruct.static ByteBuffernmPrivate(long struct, int capacity) static voidnmPrivate(long struct, ByteBuffer value) static @Nullable AINodenmRootNode(long struct) Unsafe version ofmRootNode().static voidnmRootNode(long struct, @Nullable AINode value) Unsafe version ofmRootNode.static @Nullable PointerBuffernmSkeletons(long struct) Unsafe version ofmSkeletons.static voidnmSkeletons(long struct, @Nullable PointerBuffer value) Unsafe version ofmSkeletons.static @Nullable PointerBuffernmTextures(long struct) Unsafe version ofmTextures.static voidnmTextures(long struct, @Nullable PointerBuffer value) Unsafe version ofmTextures.set(int mFlags, @Nullable AINode mRootNode, @Nullable PointerBuffer mMeshes, @Nullable PointerBuffer mMaterials, @Nullable PointerBuffer mAnimations, @Nullable PointerBuffer mTextures, @Nullable PointerBuffer mLights, @Nullable PointerBuffer mCameras, @Nullable AIMetaData mMetaData, AIString mName, @Nullable PointerBuffer mSkeletons) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MFLAGS
public static final int MFLAGSThe struct member offsets. -
MROOTNODE
public static final int MROOTNODEThe struct member offsets. -
MNUMMESHES
public static final int MNUMMESHESThe struct member offsets. -
MMESHES
public static final int MMESHESThe struct member offsets. -
MNUMMATERIALS
public static final int MNUMMATERIALSThe struct member offsets. -
MMATERIALS
public static final int MMATERIALSThe struct member offsets. -
MNUMANIMATIONS
public static final int MNUMANIMATIONSThe struct member offsets. -
MANIMATIONS
public static final int MANIMATIONSThe struct member offsets. -
MNUMTEXTURES
public static final int MNUMTEXTURESThe struct member offsets. -
MTEXTURES
public static final int MTEXTURESThe struct member offsets. -
MNUMLIGHTS
public static final int MNUMLIGHTSThe struct member offsets. -
MLIGHTS
public static final int MLIGHTSThe struct member offsets. -
MNUMCAMERAS
public static final int MNUMCAMERASThe struct member offsets. -
MCAMERAS
public static final int MCAMERASThe struct member offsets. -
MMETADATA
public static final int MMETADATAThe struct member offsets. -
MNAME
public static final int MNAMEThe struct member offsets. -
MNUMSKELETONS
public static final int MNUMSKELETONSThe struct member offsets. -
MSKELETONS
public static final int MSKELETONSThe struct member offsets. -
MPRIVATE
public static final int MPRIVATEThe struct member offsets.
-
-
Constructor Details
-
AIScene
Creates aAISceneinstance 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). -
mFlags
public int mFlags()- Returns:
- the value of the
mFlagsfield.
-
mRootNode
- Returns:
- a
AINodeview of the struct pointed to by themRootNodefield.
-
mNumMeshes
public int mNumMeshes()- Returns:
- the value of the
mNumMeshesfield.
-
mMeshes
- Returns:
- a
PointerBufferview of the data pointed to by themMeshesfield.
-
mNumMaterials
public int mNumMaterials()- Returns:
- the value of the
mNumMaterialsfield.
-
mMaterials
- Returns:
- a
PointerBufferview of the data pointed to by themMaterialsfield.
-
mNumAnimations
public int mNumAnimations()- Returns:
- the value of the
mNumAnimationsfield.
-
mAnimations
- Returns:
- a
PointerBufferview of the data pointed to by themAnimationsfield.
-
mNumTextures
public int mNumTextures()- Returns:
- the value of the
mNumTexturesfield.
-
mTextures
- Returns:
- a
PointerBufferview of the data pointed to by themTexturesfield.
-
mNumLights
public int mNumLights()- Returns:
- the value of the
mNumLightsfield.
-
mLights
- Returns:
- a
PointerBufferview of the data pointed to by themLightsfield.
-
mNumCameras
public int mNumCameras()- Returns:
- the value of the
mNumCamerasfield.
-
mCameras
- Returns:
- a
PointerBufferview of the data pointed to by themCamerasfield.
-
mMetaData
- Returns:
- a
AIMetaDataview of the struct pointed to by themMetaDatafield.
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mNumSkeletons
public int mNumSkeletons()- Returns:
- the value of the
mNumSkeletonsfield.
-
mSkeletons
- Returns:
- a
PointerBufferview of the data pointed to by themSkeletonsfield.
-
mFlags
Sets the specified value to themFlagsfield. -
mRootNode
Sets the address of the specifiedAINodeto themRootNodefield. -
mMeshes
Sets the address of the specifiedPointerBufferto themMeshesfield. -
mMaterials
Sets the address of the specifiedPointerBufferto themMaterialsfield. -
mAnimations
Sets the address of the specifiedPointerBufferto themAnimationsfield. -
mTextures
Sets the address of the specifiedPointerBufferto themTexturesfield. -
mLights
Sets the address of the specifiedPointerBufferto themLightsfield. -
mCameras
Sets the address of the specifiedPointerBufferto themCamerasfield. -
mMetaData
Sets the address of the specifiedAIMetaDatato themMetaDatafield. -
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mSkeletons
Sets the address of the specifiedPointerBufferto themSkeletonsfield. -
set
public AIScene set(int mFlags, @Nullable AINode mRootNode, @Nullable PointerBuffer mMeshes, @Nullable PointerBuffer mMaterials, @Nullable PointerBuffer mAnimations, @Nullable PointerBuffer mTextures, @Nullable PointerBuffer mLights, @Nullable PointerBuffer mCameras, @Nullable AIMetaData mMetaData, AIString mName, @Nullable PointerBuffer mSkeletons) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newAISceneinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAISceneinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAISceneinstance allocated withBufferUtils. -
create
Returns a newAISceneinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIScene.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIScene.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIScene.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIScene.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAISceneinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAISceneinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIScene.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIScene.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmFlags
public static int nmFlags(long struct) Unsafe version ofmFlags(). -
nmRootNode
Unsafe version ofmRootNode(). -
nmNumMeshes
public static int nmNumMeshes(long struct) Unsafe version ofmNumMeshes(). -
nmMeshes
Unsafe version ofmMeshes. -
nmNumMaterials
public static int nmNumMaterials(long struct) Unsafe version ofmNumMaterials(). -
nmMaterials
Unsafe version ofmMaterials. -
nmNumAnimations
public static int nmNumAnimations(long struct) Unsafe version ofmNumAnimations(). -
nmAnimations
Unsafe version ofmAnimations. -
nmNumTextures
public static int nmNumTextures(long struct) Unsafe version ofmNumTextures(). -
nmTextures
Unsafe version ofmTextures. -
nmNumLights
public static int nmNumLights(long struct) Unsafe version ofmNumLights(). -
nmLights
Unsafe version ofmLights. -
nmNumCameras
public static int nmNumCameras(long struct) Unsafe version ofmNumCameras(). -
nmCameras
Unsafe version ofmCameras. -
nmMetaData
Unsafe version ofmMetaData(). -
nmName
Unsafe version ofmName(). -
nmNumSkeletons
public static int nmNumSkeletons(long struct) Unsafe version ofmNumSkeletons(). -
nmSkeletons
Unsafe version ofmSkeletons. -
nmPrivate
-
nmFlags
public static void nmFlags(long struct, int value) Unsafe version ofmFlags. -
nmRootNode
Unsafe version ofmRootNode. -
nmNumMeshes
public static void nmNumMeshes(long struct, int value) Sets the specified value to themNumMeshesfield of the specifiedstruct. -
nmMeshes
Unsafe version ofmMeshes. -
nmNumMaterials
public static void nmNumMaterials(long struct, int value) Sets the specified value to themNumMaterialsfield of the specifiedstruct. -
nmMaterials
Unsafe version ofmMaterials. -
nmNumAnimations
public static void nmNumAnimations(long struct, int value) Sets the specified value to themNumAnimationsfield of the specifiedstruct. -
nmAnimations
Unsafe version ofmAnimations. -
nmNumTextures
public static void nmNumTextures(long struct, int value) Sets the specified value to themNumTexturesfield of the specifiedstruct. -
nmTextures
Unsafe version ofmTextures. -
nmNumLights
public static void nmNumLights(long struct, int value) Sets the specified value to themNumLightsfield of the specifiedstruct. -
nmLights
Unsafe version ofmLights. -
nmNumCameras
public static void nmNumCameras(long struct, int value) Sets the specified value to themNumCamerasfield of the specifiedstruct. -
nmCameras
Unsafe version ofmCameras. -
nmMetaData
Unsafe version ofmMetaData. -
nmName
Unsafe version ofmName. -
nmNumSkeletons
public static void nmNumSkeletons(long struct, int value) Sets the specified value to themNumSkeletonsfield of the specifiedstruct. -
nmSkeletons
Unsafe version ofmSkeletons. -
nmPrivate
-
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-