Package org.lwjgl.assimp
Class AIUVTransform
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiUVTransform {
{@link AIVector2D struct aiVector2D} mTranslation;
{@link AIVector2D struct aiVector2D} mScaling;
float mRotation;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIUVTransform(ByteBuffer container) Creates aAIUVTransforminstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIUVTransformcalloc()Returns a newAIUVTransforminstance allocated withmemCalloc.static AIUVTransform.Buffercalloc(int capacity) Returns a newAIUVTransform.Bufferinstance allocated withmemCalloc.static AIUVTransform.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIUVTransform.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIUVTransformcalloc(MemoryStack stack) Returns a newAIUVTransforminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIUVTransformDeprecated.static AIUVTransform.BuffercallocStack(int capacity) Deprecated.static AIUVTransform.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIUVTransformcallocStack(MemoryStack stack) Deprecated.static AIUVTransformcreate()Returns a newAIUVTransforminstance allocated withBufferUtils.static AIUVTransform.Buffercreate(int capacity) Returns a newAIUVTransform.Bufferinstance allocated withBufferUtils.static AIUVTransformcreate(long address) Returns a newAIUVTransforminstance for the specified memory address.static AIUVTransform.Buffercreate(long address, int capacity) Create aAIUVTransform.Bufferinstance at the specified memory.static @Nullable AIUVTransformcreateSafe(long address) static @Nullable AIUVTransform.BuffercreateSafe(long address, int capacity) static AIUVTransformmalloc()Returns a newAIUVTransforminstance allocated withmemAlloc.static AIUVTransform.Buffermalloc(int capacity) Returns a newAIUVTransform.Bufferinstance allocated withmemAlloc.static AIUVTransform.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIUVTransform.Bufferinstance allocated on the specifiedMemoryStack.static AIUVTransformmalloc(MemoryStack stack) Returns a newAIUVTransforminstance allocated on the specifiedMemoryStack.static AIUVTransformDeprecated.static AIUVTransform.BuffermallocStack(int capacity) Deprecated.static AIUVTransform.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIUVTransformmallocStack(MemoryStack stack) Deprecated.floatmScaling()static floatnmRotation(long struct) Unsafe version ofmRotation().static AIVector2DnmScaling(long struct) Unsafe version ofmScaling().static AIVector2DnmTranslation(long struct) Unsafe version ofmTranslation().intsizeof()Returnssizeof(struct).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. -
MTRANSLATION
public static final int MTRANSLATIONThe struct member offsets. -
MSCALING
public static final int MSCALINGThe struct member offsets. -
MROTATION
public static final int MROTATIONThe struct member offsets.
-
-
Constructor Details
-
AIUVTransform
Creates aAIUVTransforminstance 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).- Specified by:
sizeofin classStruct<AIUVTransform>
-
mTranslation
- Returns:
- a
AIVector2Dview of themTranslationfield.
-
mScaling
- Returns:
- a
AIVector2Dview of themScalingfield.
-
mRotation
public float mRotation()- Returns:
- the value of the
mRotationfield.
-
malloc
Returns a newAIUVTransforminstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIUVTransforminstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIUVTransforminstance allocated withBufferUtils. -
create
Returns a newAIUVTransforminstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIUVTransform.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIUVTransform.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIUVTransform.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIUVTransform.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newAIUVTransforminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIUVTransforminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIUVTransform.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIUVTransform.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmTranslation
Unsafe version ofmTranslation(). -
nmScaling
Unsafe version ofmScaling(). -
nmRotation
public static float nmRotation(long struct) Unsafe version ofmRotation().
-