Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Nairou

Member Since 23 May 2003
Offline Last Active Nov 22 2014 10:42 AM

Posts I've Made

In Topic: Good C (not C++) math library?

10 November 2014 - 04:55 PM

Which brings up another question -- how much C11 do you expect to get out of MSVC? The situation has improved, and is still improving, but to this point in time even C99 compatibility is far from bulletproof.

It's mostly a hope at this point. I'm still planning the project, haven't started coding it yet. And I do most of my development on Linux, but will build on MSVC when it's far enough along to get other people to test it. So my hope is that C11 support will have improved some by then. smile.png

 

If it hasn't, then there's always MinGW, but I'm trying not to rule out MSVC at this stage.


In Topic: Good C (not C++) math library?

10 November 2014 - 03:11 PM

I haven't used it myself, but I found this after about a minute of searching the web: http://simdx86.sourceforge.net/

 

Would that do?

It has potential, but the LGPL license and the fact that it only compiles with GCC (not MSVC) make it unattractive for my project...


In Topic: Good C (not C++) math library?

10 November 2014 - 02:12 PM

Good idea. If I don't end up finding an existing library, I might look into doing that...


In Topic: Good C (not C++) math library?

10 November 2014 - 01:18 PM

Unfortunately, GLM itself is C++ only, not C.

 

This is the problem I'm having, all of the good ones I know of are C++ only. :)


In Topic: Good C (not C++) math library?

10 November 2014 - 12:23 PM

Good points. What I'm looking for would be primarily for use in 3D calculations, for 3D games. So just small vectors, small matrices, and quaternions. And operations like building translation/rotation/viewport matrices, generating camera projection/ortho matrices, quaternion interpolation, etc.

 

I know with C++ the math libraries can do operator overloading to make them feel natural, and I wouldn't have any of that in a C library, but that's fine. Even if the library was limited to integers and floats (and didn't mix them), since it doesn't have the template abstraction, it would be fine. When you're doing matrix operations with the goal of feeding it to the GPU, there isn't a lot of variety needed.

 

Simple enough set of requirements that I could probably write my own library if I had to, but I don't have the math optimization experience necessary to make the library as fast as it would need to be.


PARTNERS