-
public class SkinningBuffer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSkinningBuffer.Builder
-
Method Summary
Modifier and Type Method Description voidsetBonesAsMatrices(@NonNull() Engine engine, @NonNull() Buffer matrices, @IntRange(from = 0, to = 255) int boneCount, @IntRange(from = 0) int offset)Updates the bone transforms in the range [offset, offset + boneCount). voidsetBonesAsQuaternions(@NonNull() Engine engine, @NonNull() Buffer quaternions, @IntRange(from = 0, to = 255) int boneCount, @IntRange(from = 0) int offset)Updates the bone transforms in the range [offset, offset + boneCount). intgetBoneCount()longgetNativeObject()-
-
Method Detail
-
setBonesAsMatrices
void setBonesAsMatrices(@NonNull() Engine engine, @NonNull() Buffer matrices, @IntRange(from = 0, to = 255) int boneCount, @IntRange(from = 0) int offset)
Updates the bone transforms in the range [offset, offset + boneCount).
- Parameters:
engine- Engine instancematrices- A FloatBuffer containing boneCount 4x4 packed matrices (i.e.boneCount- Number of bones to setoffset- Index of the first bone to set
-
setBonesAsQuaternions
void setBonesAsQuaternions(@NonNull() Engine engine, @NonNull() Buffer quaternions, @IntRange(from = 0, to = 255) int boneCount, @IntRange(from = 0) int offset)
Updates the bone transforms in the range [offset, offset + boneCount).
- Parameters:
engine- Engine instancequaternions- A FloatBuffer containing boneCount transforms.boneCount- Number of bones to setoffset- Index of the first bone to set
-
getBoneCount
int getBoneCount()
-
getNativeObject
long getNativeObject()
-
-
-
-