[Pas2js] Typecasting parser bug
Ryan Joseph
ryan at thealchemistguild.com
Tue May 15 14:42:21 CEST 2018
> On May 15, 2018, at 6:59 PM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>
> writeln(TJSFloat32List(@projTransform.CopyList))
That’s a really sneaky bug. I wonder if there’s a way to throw an error or something. It’s not even about writeln either I don’t think. Without the @ the function SetUniformMat4 will get a string of JavaScript code instead of an array.
I tried using @ but I get an error;
shader.SetUniformMat4('projTransform', TJSFloat32List(@projTransform.CopyList)); — Illegal type conversion: "function type" to "array TJSFloat32List”
Regards,
Ryan Joseph
More information about the Pas2js
mailing list