elect
03/10/2017, 3:47 PMrun on MatrixStack so defined:
inline infix fun run(block: MatrixStack.() -> Any): MatrixStack {
push()
block()
pop()
return this
}
if I write:
stack.run {
translate(camTarget)
}
it works, but if I exploit the infix option
stack.run {
translate camTarget // error
}
none of the following functions can be called..