Class AIUVTransform

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class AIUVTransform extends Struct<AIUVTransform> implements NativeResource
Defines how an UV channel is transformed.

This is just a helper structure for the Assimp._AI_MATKEY_UVTRANSFORM_BASE key. See its documentation for more details.

Typically you'll want to build a matrix of this information. However, we keep separate scaling/translation/rotation values to make it easier to process and optimize UV transformations internally.

Layout


 struct aiUVTransform {
     struct aiVector2D mTranslation();
     struct aiVector2D mScaling();
     float mRotation();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MTRANSLATION
      The struct member offsets.
    • MSCALING

      public static final int MSCALING
      The struct member offsets.
    • MROTATION

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

    • AIUVTransform

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