dangmoody / HLML

Auto-generated maths library for C and C++ based on HLSL/Cg
24 stars 1 forks source link

Remove "comp_" prefix in favour of just "c" #45

Closed dangmoody closed 3 years ago

dangmoody commented 3 years ago

Typing comp_ every time for a component-wise transformation can be a little bit of a PITA. Typing c would be easier.

For example, instead of typing:

float4_comp_addv( &a, &b );

It would be easier to type:

float4_caddv( &a, &b );

I'm still not 100% sure this is something worth doing. What do we think?

dangmoody commented 3 years ago

I'm finding more and more that while comp_ is perhaps a little bit easier to read than just c the extra typing isn't really worth it.

This'll probably get done in the next release unless I start getting protests from users about this.

dangmoody commented 3 years ago

Done.