You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be best if go-gl was consistant with typing. I much prefer the slice over the array. Anyone have any opinions on which type would be best?
Over the long term how do we resolve differences in typing?
leb
The text was updated successfully, but these errors were encountered:
This is definitely wrong, since it wants 4 floats.
The slice is definitely better than an array. The reason is that it's trivial to go from an array to a slice (array[:]) but difficult to go from a slice to an array (requires unsafe or a copy). The only question is whether we want to bounds check the slice, I'd prefer not, but it's not a huge deal either way.
For the function ClipPlane the equation argument doesn't look like it was translated correctly from C.
It is:
I would prefer to change it to:
which is similar to current Materialfv call but I could also change it to use a type of similar to the one used for:
I think it would be best if go-gl was consistant with typing. I much prefer the slice over the array. Anyone have any opinions on which type would be best?
Over the long term how do we resolve differences in typing?
leb
The text was updated successfully, but these errors were encountered: