-
public class SkinningBuffer.Builder
-
-
Constructor Summary
Constructors Constructor Description SkinningBuffer.Builder()
-
Method Summary
Modifier and Type Method Description SkinningBuffer.BuilderboneCount(@IntRange(from = 1) int boneCount)Size of the skinning buffer in bones. SkinningBuffer.Builderinitialize(boolean initialize)The new buffer is created with identity bones SkinningBufferbuild(@NonNull() Engine engine)Creates and returns the SkinningBufferobject.-
-
Method Detail
-
boneCount
@NonNull() SkinningBuffer.Builder boneCount(@IntRange(from = 1) int boneCount)
Size of the skinning buffer in bones.
Due to limitation in the GLSL, the SkinningBuffer must always by a multiple of256, this adjustment is done automatically, but can causesome memory overhead. This memory overhead can be mitigated by using the same SkinningBuffer to store the bone information for multiple RenderPrimitives.
- Parameters:
boneCount- Number of bones the skinning buffer can hold.
-
initialize
@NonNull() SkinningBuffer.Builder initialize(boolean initialize)
The new buffer is created with identity bones
- Parameters:
initialize- true to initializing the buffer, false to not.
-
-
-
-