- Added FlexBatch constructor that takes a Batchable provider parameter instead of creating the batchaable instance with reflection. This ensures the constructor is called in code, so it will not be removed by minification (Proguard/R8).
- Deprecated the original FlexBatch constructor.
- Updated to libGDX 1.12.0
- Exposed an optional optimization for custom batchables who have vertex attributes that never change
regardless of what is drawn. For example, quads that always share a full-screen texture use the same
texture coordinates for every batchable instance, so these don't need to be reapplied for every item
submitted for drawing. See
Batchable.applyAll()docs for explanation.
- Updated to libGDX 1.9.11
- Removed nullability annotations to support GWT.
- [Breaking] Removed Quad3D and LitQuad3D constructors that have blending parameters because they falsely imply
that blend state is inherent to the instance whereas the
refresh()method always resets blending to opaque. - Added
FlexBatch.requireShader()to obtain non-nullShaderProgramreference.FlexBatch.getShader()is now nullable soCompliantBatch.setShader()will be considered nullable in Kotlin. - Added ability to create
Batchables that render as points or lines. AddedPointandPoint3DBatchables. - [Breaking] Added
Batchable.getPrimitiveType()andBatchable.getIndicesPerPrimitive(). For equivalent behavior to previous version, returnGL20.GL_TRIANGLESand3respectively. - [Breaking] Added types to
QuadandPolythat represent the returned type in chain methods. Effectively no change toPoly2D,Quad2D, orQuad3D, as they extend the base class with the appropriate types. - [Breaking] Renamed
FixedSizeBatchable.populateTriangleIndices()topopulateIndices(). RenamedFixedSizeBatchable.getTrianglesPerBatchable()toFixedSizeBatchable.getPrimitivesPerBatchable(). - [Breaking] Moved
Quad3D.Blendingto.utils.Blending. - [Breaking] Removed protected
BatchableSorter.cameraPositionfield.
- Updated to libGDX 1.9.10
- Added Jetbrains nullability annotations for nicer Kotlin interop.
- [Breaking]
SortableBatchable.hasEquivalentTextures()moved toBatchable. - [Breaking] Rename
AttributesOffset.udpate()toAttributesOffset.update().