- 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-nullShaderProgram
reference.FlexBatch.getShader()
is now nullable soCompliantBatch.setShader()
will be considered nullable in Kotlin. - Added ability to create
Batchable
s that render as points or lines. AddedPoint
andPoint3D
Batchable
s. - [Breaking] Added
Batchable.getPrimitiveType()
andBatchable.getIndicesPerPrimitive()
. For equivalent behavior to previous version, returnGL20.GL_TRIANGLES
and3
respectively. - [Breaking] Added types to
Quad
andPoly
that 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.Blending
to.utils.Blending
. - [Breaking] Removed protected
BatchableSorter.cameraPosition
field.
- 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()
.