Class SkeletonDef


  • public final class SkeletonDef
    extends Table
    • Constructor Detail

      • SkeletonDef

        public SkeletonDef()
    • Method Detail

      • getRootAsSkeletonDef

        public static SkeletonDef getRootAsSkeletonDef​(java.nio.ByteBuffer _bb)
      • getRootAsSkeletonDef

        public static SkeletonDef getRootAsSkeletonDef​(java.nio.ByteBuffer _bb,
                                                       SkeletonDef obj)
      • __init

        public void __init​(int _i,
                           java.nio.ByteBuffer _bb)
      • __assign

        public SkeletonDef __assign​(int _i,
                                    java.nio.ByteBuffer _bb)
      • boneNames

        public java.lang.String boneNames​(int j)
        The names of each bone in the skeleton. Each bone in the skeleton can be uniquely identified by an index into this array.
      • boneNamesLength

        public int boneNamesLength()
      • boneParents

        public int boneParents​(int j)
        Effectively a map of a bone to its parent bone.
      • boneParentsLength

        public int boneParentsLength()
      • boneParentsAsByteBuffer

        public java.nio.ByteBuffer boneParentsAsByteBuffer()
      • boneParentsInByteBuffer

        public java.nio.ByteBuffer boneParentsInByteBuffer​(java.nio.ByteBuffer _bb)
      • boneTransforms

        public Mat4x3 boneTransforms​(int j)
        For information on how the matrices below are used for skinning, see RigSystem::UpdateShaderTransforms(). The "inverse bind matrices" for each bone. Transforms from mesh space to bone space so that skinning may be applied.
      • boneTransforms

        public Mat4x3 boneTransforms​(Mat4x3 obj,
                                     int j)
      • boneTransformsLength

        public int boneTransformsLength()
      • createSkeletonDef

        public static int createSkeletonDef​(FlatBufferBuilder builder,
                                            int bone_namesOffset,
                                            int bone_parentsOffset,
                                            int bone_transformsOffset)
      • startSkeletonDef

        public static void startSkeletonDef​(FlatBufferBuilder builder)
      • addBoneNames

        public static void addBoneNames​(FlatBufferBuilder builder,
                                        int boneNamesOffset)
      • createBoneNamesVector

        public static int createBoneNamesVector​(FlatBufferBuilder builder,
                                                int[] data)
      • startBoneNamesVector

        public static void startBoneNamesVector​(FlatBufferBuilder builder,
                                                int numElems)
      • addBoneParents

        public static void addBoneParents​(FlatBufferBuilder builder,
                                          int boneParentsOffset)
      • createBoneParentsVector

        public static int createBoneParentsVector​(FlatBufferBuilder builder,
                                                  byte[] data)
      • createBoneParentsVector

        public static int createBoneParentsVector​(FlatBufferBuilder builder,
                                                  java.nio.ByteBuffer data)
      • startBoneParentsVector

        public static void startBoneParentsVector​(FlatBufferBuilder builder,
                                                  int numElems)
      • addBoneTransforms

        public static void addBoneTransforms​(FlatBufferBuilder builder,
                                             int boneTransformsOffset)
      • startBoneTransformsVector

        public static void startBoneTransformsVector​(FlatBufferBuilder builder,
                                                     int numElems)