Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are float64 parsed, but only exposed as float32 ? #2

Open
Keenuts opened this issue Apr 13, 2018 · 1 comment
Open

Why are float64 parsed, but only exposed as float32 ? #2

Keenuts opened this issue Apr 13, 2018 · 1 comment

Comments

@Keenuts
Copy link
Contributor

Keenuts commented Apr 13, 2018

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 ?

@udhos
Copy link
Owner

udhos commented Apr 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants