This code
(GL33/glUniform2fv ^int (location shader "offsets") ^float [] offsets)
produces this error:
No matching method glUniform2fv found taking 3 args for class org.lwjgl.opengl.GL33
I've tried removing the space:
(GL33/glUniform2fv ^int (location shader "offsets") ^float[] offsets)
to no avail.
Clojure seems to be mistaking the ^float [] type hint for a parameter - but not the ^int type hint.
What can I do about that?
^floats offsets? There is some documentation here: clojure.org/reference/java_interop#typehints^floatsis a convenient alias for the awkward underlying JVM name - which you can use instead, if you like:^"[F"