On Thursday, October 12, 2017 at 10:03:04 AM UTC-4, Felipe Ferreira wrote:
> Rick C. Hodgin:
> > I had the same thought. I might use some shorter names for common use tokens, but apart from that, at first glance, it looked very nice.
>
> Yeah, the vector/quaternion/matrix functions could use names vec/quat/mat, for example. I didn't thought of that when I started, and I kept it going to not break a bunch of code depending on it.
If you have access to Windows and Visual Studio, there is a tool
called Visual Assist X which is an add-on for Visual Studio (all
versions). They have a feature (alt+shift+r or ctrl+shift+r, I
can't remember) which is refactor.
If you position your flashing caret on a structure name, then you
can press that key combination and it will bring up a dialogue
showing you all places it's used in code, and you can replace them
all by typing in a new name.
It will refactor everywhere. You can use it on most everything,
including function names, global or local variables, etc. You can
see an example of it used here:
http://www.visual-freepro.org/videos/2014_02_13__demonstrate_x86_debugger.ogv
If you can't view the video, use VLC (
http://www.videolan.org).
> Rick C. Hodgin:
> > I was impressed with such a nice offering to people.
>
> There's a lack of that kind of API for pure C. There's the "linmath.h" library, but missing a lot of features (also very noisy with all that use of macros for my taste). I had to gather references from many different places, since I'm not really a math guy.
It's excellent work and will benefit many people. You are to be
commended for such a thing. Very nicely done, Felipe.