dangmoody / HLML

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

C API #23

Closed dangmoody closed 4 years ago

dangmoody commented 4 years ago

Generator now generates two APIs: One for C and one for C++ with minimal differences between the two.

Added a HLML_IMPLEMENTATION #define (same as stb libraries) which needs to be included before the header in one place to add all of the function definitions.

SSE register constants have been replaced for #defines.

The C++ API now has function equivalents for all of its operator overloads.

C++ operator overloads have been completely separated from their functions, the same code for both gets generated from the same function in the generator code.

All C++ classes in the generator have been killed in favour of functions.