gwob icon indicating copy to clipboard operation
gwob copied to clipboard

Why are float64 parsed, but only exposed as float32 ?

Open Keenuts opened this issue 7 years ago • 1 comments

The parsing is made using float64. But once inserted in public structures, it's exposed as float32, why ?

Shouldn't we switch all the exposed float to 64 bit long floats ?

Keenuts avatar Apr 13 '18 15:04 Keenuts

Well, when I put the package in place, I actually needed the vertex data as float32 for WebGL. That's why it the struct Obj has the member Coord as []float32. I suppose a more complete approach would offer an API to allow the user to specify the desired float type as either float32 or float64.

udhos avatar Apr 13 '18 17:04 udhos