Glimpse Authors
on
Version 1.1.0 has been released.
Major Changes In v1.1.0 API
Java 11
Glimpse now targets Java 11.
Core
- Support for
Boolean
uniform shader parameters (uniform value in shader is still anInt
, with a value ofGL_TRUE
orGL_FALSE
):- New method:
GlimpseAdapter.glUniform(Int, Boolean)
. - New method:
BaseProgramExecutor.glUniform(GlimpseAdapter, String, Boolean)
.
- New method:
- New method:
ProgramExecutor.dispose(GlimpseAdapter)
, disposing also referencedProgram
. - Deprecated method:
without parameters.ProgramExecutor.dispose()
Texture.Builder
now sets texture parameters.- New method:
Texture.Builder.setTextureFilter(TextureMinFilter, TextureMagFilter)
. - New method:
Texture.Builder.setTextureWrap(TextureWrap, TextureWrap)
.
- New method:
- Added support for framebuffers.
- Added support for bitangents shader attribute.
Annotation Processor
- Implemented KSP processor for shader parameters:
plugins { // Replace Kapt plugin with KSP: id("com.google.devtools.ksp") version "1.6.10-1.0.4" } dependencies { // Replace any Kapt processors with glimpse-processor-ksp: ksp("graphics.glimpse:glimpse-processor-ksp:1.1.0") }
- Kapt processors are now incremental (isolating).
Compose UI
- Additional parameters in composable
GlimpseView
function:modifier
– the modifier to be applied to the layout.onClick
– called when the view has been clicked.update
– the callback to be invoked after the layout is inflated.
- BREAKING CHANGE: Removed
fromzOrderOnTop
GlimpseView
composable function. CallzOrderOnTop = …
insideupdate
block instead. - New composable
GlimpseView
function with separate functional parameters instead of singlecallback
reference.
Other Changes
Read the Release Notes for full list of changes.